📄 otimer.lst
字号:
C51 COMPILER V7.02b OTIMER 06/03/2004 14:00:29 PAGE 1
C51 COMPILER V7.02b, COMPILATION OF MODULE OTIMER
OBJECT MODULE PLACED IN OTimer.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE OTimer.c BROWSE DEBUG OBJECTEXTEND
stmt level source
1 /************************************************
2 Name : OTimer.c
3 Describ : 定时器
4 CreateBy : 彭恩文
5 LastModify: 彭恩文
6 modified by , 11/2/2003
7 *************************************************/
8 #include "fx2.h"
9 #include "fx2regs.h"
10 #include "OTimer.h"
11 #include "led.h"
12
13 #define OTimer_Macro_MaxLogicTimerNum 8 /*最大逻辑定时器数量*/
14
15
16 #define OTimer_Macro_1msTH 0xD1 /*CLKOUT(48M)/4,24M晶振,1ms定时器中断定时值*/
17 #define OTimer_Macro_1msTL 0x20 /*1ms定时器中断定时值*/
18
19 #define OK 1
20 #define ERROR 0
21
22 #define IDLE PCON |= 1
23
24 BYTE OTimer_RD_1msCounter ; //1ms 计数
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -