📄 time.lst
字号:
C51 COMPILER V7.20 TIME 02/20/2006 10:13:57 PAGE 1
C51 COMPILER V7.20, COMPILATION OF MODULE TIME
OBJECT MODULE PLACED IN .\output\time.obj
COMPILER INVOKED BY: D:\keil c51 v7.09\C51\BIN\C51.EXE time.c BROWSE DEBUG OBJECTEXTEND PRINT(.\list\time.lst) OBJECT(.\
-output\time.obj)
line level source
1 #ifndef _TIME_C_
2 #define _TIME_C_
3
4 #include "serial.h"
5 #include "api.h"
6
7 #define RC7017_SEND_TIME 20
8 #define SYSTEM_LIGHT 100
9 #define SYSTEM_TIME_COUNTER 200
10 #define KEY_VOICE_TIME 5
11
12
13 void Time0_Interrupt(void) interrupt TIME0_INTERRUPT_VECTOR
14 {
15 1
16 1 TH0 = 0xb8; //初始化定时器0
17 1 TL0 = 0x00; //22.1184MHz时钟下定时时间为10ms
18 1
19 1 gSystemInfo.system_time_counter = (gSystemInfo.system_time_counter + 1)%SYSTEM_TIME_COUNTER;
20 1
21 1 if( gSystemInfo.reboot_flag == SYSTEM_NORMAL )
22 1 {
23 2 if( !(gSystemInfo.system_time_counter%gSystemInfo.run_time) )
24 2 run_flag = enable;
25 2 }
26 1
27 1 if( !(gSystemInfo.system_time_counter%RC7017_SEND_TIME) )
28 1 gSystemInfo.rc7017sendflag = SENDING;
29 1
30 1 if( !(gSystemInfo.system_time_counter%SYSTEM_LIGHT) )
31 1 gSystemInfo.light_process_flag = TASK_EXECUTE;
32 1
33 1 if( gIoSerial.ReveiveOverTime < RECEIVE_TIME_OVER )
34 1 {
35 2 gIoSerial.ReveiveOverTime ++;
36 2 if( gIoSerial.ReveiveOverTime >= RECEIVE_TIME_OUT )
37 2 {
38 3 emulateStopReceive();
39 3 gIoSerial.ReceiceLength = gIoSerial.Iocounter;
40 3 gIoSerial.Iocounter = 0;
41 3 gIoSerial.ReveiveStatus = RECEIVE_OVER;
42 3 gIoSerial.ReveiveOverTime = RECEIVE_TIME_OVER;
43 3 }
44 2 }
45 1
46 1 #if _LCD_MENU_
47 1 if( !(gSystemInfo.system_time_counter%KEY_VOICE_TIME) )
48 1 {
49 2 menu_key_scan();
50 2 }
51 1
52 1 if( !(gSystemInfo.system_time_counter%MENU_STATUS_PROCESS) )
53 1 menu_process_flag = enable;
54 1
C51 COMPILER V7.20 TIME 02/20/2006 10:13:57 PAGE 2
55 1 if( !gSystemInfo.system_time_counter )
56 1 menu_init_flag = enable;
57 1 #endif
58 1 }
59
60
61
62 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 198 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
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 + -