#include "stc8.h"
#include "intrins.h"
#include "lcd_lite.h"
#include "mhz.h"
#include "3231.h"
#include "h.h"
int count1=0;
int secondss=0;
void main(){
//fountion('s',y,m,d,w,h,mi,s);
int y=20;
int m=4;
int d=11;
int w=6;
int h=21;
int mi=32;
int s=30;
init();
P14=0;
Time0_Init();
show();
while(1){
EA = 0;
if(P53==0)
{fountion('s',y,m,d,w,h,mi,s);}
fountion('r',20,3,4,3,12,10,50);
LCDnum2(2,get_time(3));//week
LCDnum2(6,get_time(6));//data
LCDnum2(10,get_time(5));
LCDnum2(14,get_time(4));
LCDnum2(2+0x40,get_time(2));//time
LCDnum2(6+0x40,get_time(1));
LCDnum2(10+0x40,get_time(0));
LCDnum4(12+0x40,count1);
if(get_time(0)!=secondss){count1++;if(count1>2400)count1=0;secondss=get_time(0);}
EA = 1;}}
警告如下
Rebuild started: Project: lite
Rebuild target 'Target 1'
assembling STARTUP.A51...
compiling main.c...
compiling 3231.c...
compiling delay.c...
compiling lcd_lite.c...
compiling mhz.c...
linking...
*** WARNING L16: UNCALLED SEGMENT, IGNORED FOR OVERLAY PROCESS
SEGMENT: ?C_INITSEG
Program Size: data=78.0 xdata=0 code=2274
creating hex file from "lite"...
"lite" - 0 Error(s), 1 Warning(s).
Build Time Elapsed: 00:00:00
请大家帮帮忙谢谢!
|