Build target 'Target 1'
compiling 时钟.c...
linking...
***WARNING L15:MUL
tiPLE CALL TO SEGMENT
SEGMENT: ?PR?RESPONS?_____
CALLER1: ?PR?TIMER0?_____
CALLER2: ?C_C51STARTUP
creating hex file from "时钟“....
"时钟”-0 Error(s), 1Warning(s).
请问一下,这个问题要怎么解决????
void timer0() interrupt 1 //定时器0中断服务程序
{
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
count++;
if(count==20)
{
count=0;
miao++;
if(miao==60)
{
miao=0;
fen++;
if(fen==60)
{
fen=0;
shi++;
if(shi==24)
{
shi=0;
}
write_sfm(4,shi);
write_add(3,shi);
}
write_sfm(7,fen);
write_add(2,fen);
}
write_sfm(10,miao);
write_add(1,miao);
}
}
一周热门 更多>