📄 pcf.lst
字号:
C51 COMPILER V7.50 PCF 02/21/2012 18:24:44 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE PCF
OBJECT MODULE PLACED IN pcf.OBJ
COMPILER INVOKED BY: D:\Program Files\Keil\C51\BIN\C51.EXE pcf.c BROWSE DEBUG OBJECTEXTEND
line level source
1 #include "reg52.h"
2 #include "pcf8563.h"
3 #include "1602.h"
4 //#include "myfun.h"
5
6 struct DownCounter dcounter;
7 struct Time time;
8 void delay1(unsigned int tme)
9 {
10 1 while(tme--);
11 1
12 1
13 1 }
14
15 void main()
16 {
17 1 time.year=10; //向time中装入要设置的时间数据
18 1 time.month=1;
19 1 time.day=22;
20 1 time.hour=14;
21 1 time.minute=25;
22 1 time.second=45;
23 1 time.week=5;
24 1 P8563_Set_Time(); //设置时间,即将time中的时间数据写入PCF8563
25 1
26 1 while(1)
27 1 {
28 2
29 2 // P8563_Read_Time(); //读取时间
30 2 // P1=~time.second;
31 2 //P2=~time.second;
32 2 //delay1(6000);
33 2 init();
34 2 P8563_Read_Time(); //读取时间
35 2 write_com(0x80);
36 2 delay2(2);
37 2 write_data(time.second/10+0x30);
38 2 write_data(time.second%10+0x30);
39 2 write_com(0x83);
40 2 delay2(2);
41 2 write_data(time.minute/10+0x30);
42 2 write_data(time.minute%10+0x30);
43 2
44 2 }
45 1 // while(1);
46 1
47 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 202 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = 9 ----
C51 COMPILER V7.50 PCF 02/21/2012 18:24:44 PAGE 2
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -