📄 misc.lst
字号:
C51 COMPILER V8.01 MISC 11/28/2006 08:08:05 PAGE 1
C51 COMPILER V8.01, COMPILATION OF MODULE MISC
OBJECT MODULE PLACED IN ..\..\1out\misc.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\kernal\misc.c BROWSE INCDIR(..\..\inc;..\..\mslib;..\..\Device;..\..\
-kernal;..\..\msFunc;..\..\pc;..\..\tv) DEBUG OBJECTEXTEND PRINT(..\..\1out\misc.lst) OBJECT(..\..\1out\misc.obj)
line level source
1 #define _MISC_C_
2
3 #include <intrins.h>
4 #include "types.h"
5 #include "board.h"
6 #include "global.h"
7 #include "misc.h"
8 #include "mcu.h"
9 void Delay4us(void)
10 {
11 1 #if MCU_XTAL_CLK_MHZ>=20
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
_nop_();
#endif
19 1 }
20
21 void ForceDelay1ms(WORD msNums)
22 { WORD t;
23 1
24 1 if (msNums>0)
25 1 { while (msNums--)
26 2 { t=DELAY_1MS_PERIOD;
27 3 while (t--);
28 3 }
29 2 }
30 1 }
31
32 /////////////////////////////////////////
33 // delay 1 millisecond.
34 //
35 // Arguments: wValue - delay counter
36 /////////////////////////////////////////
37 #ifdef DELAY1MS_USE_TIMER0 // Use timer0
void Delay1ms(WORD wValue)
{
if( EA )
{ // Use timer0
if( wValue <= 1 )
wValue = 2;
g_wDelay1msCounter = wValue;
while( g_wDelay1msCounter )
{
} // while
}
else
{
WORD wCount; // loop counter
while (wValue--)
{
C51 COMPILER V8.01 MISC 11/28/2006 08:08:05 PAGE 2
wCount = DELAY_1MS_PERIOD; // reset loop counter
while (wCount--) ;
} // while
}
}
#else
61 void Delay1ms(WORD wValue)
62 {
63 1 WORD wCount; // loop counter
64 1
65 1 while (wValue--)
66 1 {
67 2 wCount = DELAY_1MS_PERIOD; // reset loop counter
68 2 //wCount = g_ucTestCnt; // reset loop counter
69 2
70 2 WatchDogClear();
71 2 while (wCount--) ;
72 2 } // while
73 1 }
74 #endif
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 79 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- ----
PDATA SIZE = ---- ----
DATA SIZE = ---- 4
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 + -