#include<reg51.h>
void Delay(int Time_ms);
void main(void)
{
SCON = 0x40;
TMOD = 0x20;
PCON = 0x00;
TH1 = 0xF4;
TL1 = 0xF4;
TI = 0;
TR1 = 1;
while(1)
{
SBUF = P1;
while(TI == 0);
TI = 0;
Delay(200);
}
return;
}
void Delay(int Time_ms)
{
int i;
unsigned char j;
for(i=0;i<Time_ms;i++)
{
for(j=0;j<150;j++)
{
}
}
}
compiling LYFS.c...
linking...
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: _DELAY
MODULE: LYFS.obj (LYFS)
*** ERROR L104: MULTIPLE PUBLIC DEFINITIONS
SYMBOL: MAIN
MODULE: LYFS.obj (LYFS)
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?_DELAY?LANYA
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?PR?MAIN?LYFS
*** ERROR L118: REFERENCE MADE TO ERRONEOUS EXTERNAL
SYMBOL: MAIN
MODULE: C:\KEIL\C51\LIB\C51S.LIB (?C_INIT)
ADDRESS: 0033H
Program Size: data=10.0 xdata=0 code=327
目标未创建
|