📄 ds1302.lst
字号:
C51 COMPILER V7.20 DS1302 05/13/2007 18:18:44 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE DS1302
OBJECT MODULE PLACED IN DS1302.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE DS1302.C BROWSE DEBUG OBJECTEXTEND
line level source
1 #include <at89x51.H>
*** WARNING C318 IN LINE 1 OF DS1302.C: can't open file 'at89x51.H'
2
3 #include "DS1302.H"
*** ERROR C202 IN LINE 18 OF DS1302.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 19 OF DS1302.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 20 OF DS1302.H: 'P1': undefined identifier
*** ERROR C202 IN LINE 21 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 22 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 51 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 54 OF DS1302.H: 'DS1302_IO': undefined identifier
*** ERROR C202 IN LINE 55 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 56 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 57 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 66 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 67 OF DS1302.H: 'ACC7': undefined identifier
*** ERROR C202 IN LINE 68 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 69 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 71 OF DS1302.H: 'ACC': undefined identifier
*** ERROR C202 IN LINE 76 OF DS1302.H: 'DS1302_RST': undefined identifier
*** ERROR C202 IN LINE 77 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 78 OF DS1302.H: 'DS1302_RST': undefined identifier
*** ERROR C202 IN LINE 81 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 82 OF DS1302.H: 'DS1302_RST': undefined identifier
*** ERROR C202 IN LINE 88 OF DS1302.H: 'DS1302_RST': undefined identifier
*** ERROR C202 IN LINE 89 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 90 OF DS1302.H: 'DS1302_RST': undefined identifier
*** ERROR C202 IN LINE 93 OF DS1302.H: 'DS1302_CLK': undefined identifier
*** ERROR C202 IN LINE 94 OF DS1302.H: 'DS1302_RST': undefined identifier
4
5 void Delay1ms(unsigned int count)
6 {
7 1 unsigned int i,j;
8 1 for(i=0;i<count;i++)
9 1 for(j=0;j<120;j++);
10 1 }
11
12 main()
13 {
14 1 SYSTEMTIME CurrentTime;
15 1 P2=0x00;
*** ERROR C202 IN LINE 15 OF DS1302.C: 'P2': undefined identifier
16 1 initial();
17 1
18 1 Delay1ms(100);//等LCD启动
19 1 lcd_init();
20 1 Initial_DS1302();
21 1
22 1
23 1 while(1)
24 1 {
25 2 DS1302_GetTime(&CurrentTime);
26 2 DateToStr(&CurrentTime);
27 2 TimeToStr(&CurrentTime);
28 2 str1[0]=CurrentTime.DateString[0];
C51 COMPILER V7.20 DS1302 05/13/2007 18:18:44 PAGE 2
29 2 str1[1]=CurrentTime.DateString[1];
30 2 str1[2]=CurrentTime.DateString[2];
31 2 str1[3]=CurrentTime.DateString[3];
32 2 str1[4]=CurrentTime.DateString[4];
33 2 str1[5]=CurrentTime.DateString[5];
34 2 str1[6]=CurrentTime.DateString[6];
35 2 str1[7]=CurrentTime.DateString[7];
36 2
37 2 str2[0]=CurrentTime.TimeString[0];
38 2 str2[1]=CurrentTime.TimeString[1];
39 2 str2[2]=CurrentTime.TimeString[2];
40 2 str2[3]=CurrentTime.TimeString[3];
41 2 str2[4]=CurrentTime.TimeString[4];
42 2 str2[5]=CurrentTime.TimeString[5];
43 2 str2[6]=CurrentTime.TimeString[6];
44 2 str2[7]=CurrentTime.TimeString[7];
45 2 display_a_string(0,str1); //0表示显示在第一行
46 2 display_a_string(1,str2);//1表示显示在第二行
47 2 Delay1ms(300);
48 2 }
49 1 }
C51 COMPILATION COMPLETE. 1 WARNING(S), 26 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -