thannara123
Advanced Member level 5
#include <REGX51.H>
void msdelay(unsigned int);
vid(clock);
void set();
void dispaly(unsigned char);
void msdelay(unsigned int itime)
{
unsigned int i,j;
for(i=0; i<itime; i++)
{
for(j=0; j<100; j++)
{ } }
}
void clock ()
{
P1_0 = 1;
P1_0 = 0;
}
void display(unsigned char c)
{
P0 = c;
msdelay(1);
// clock();
}
void set()
{
P1_1 = 0;
P1_1 = 1;
}
void main(void)
{
void set();
P0 = 0x00;
P1 = 0x00;
display(0x88);
display(0x94);
display(0x02);
display(0x01);
display(0x01);
display(0x81);
display(0x58);
display(0x10);
set();
}
when i run the above program the keil shows some warning what is that
Build target 'Target 1'
compiling ledstil.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?CLOCK?LEDSTIL
Program Size: data=9.0 xdata=0 code=114
creating hex file from "ledstiill"...
"ledstiill" - 0 Error(s), 1 Warning(s).
please help me
void msdelay(unsigned int);
vid(clock);
void set();
void dispaly(unsigned char);
void msdelay(unsigned int itime)
{
unsigned int i,j;
for(i=0; i<itime; i++)
{
for(j=0; j<100; j++)
{ } }
}
void clock ()
{
P1_0 = 1;
P1_0 = 0;
}
void display(unsigned char c)
{
P0 = c;
msdelay(1);
// clock();
}
void set()
{
P1_1 = 0;
P1_1 = 1;
}
void main(void)
{
void set();
P0 = 0x00;
P1 = 0x00;
display(0x88);
display(0x94);
display(0x02);
display(0x01);
display(0x01);
display(0x81);
display(0x58);
display(0x10);
set();
}
when i run the above program the keil shows some warning what is that
Build target 'Target 1'
compiling ledstil.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?CLOCK?LEDSTIL
Program Size: data=9.0 xdata=0 code=114
creating hex file from "ledstiill"...
"ledstiill" - 0 Error(s), 1 Warning(s).
please help me