You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

220 lines
6.1 KiB

C51 COMPILER V9.54 STC_8_DELAY 09/06/2024 11:24:45 PAGE 1
C51 COMPILER V9.54, COMPILATION OF MODULE STC_8_DELAY
OBJECT MODULE PLACED IN ..\out\stc_8_delay.obj
COMPILER INVOKED BY: E:\KeilC51\C51\BIN\C51.EXE ..\source\cpu\stc_8_delay.c LARGE OMF2 OPTIMIZE(0,SIZE) BROWSE ORDER NOI
-NTPROMOTE INCDIR(..\source\bsp;..\source\msp;..\source\app;..\source\clib;..\source\cpu;..\source\ctask;..\source\tpc;..
-\source\asp;..\source\debug;..\source\msp\uart;..\source\msp\simiic;..\source\bsp\oled;..\source\bsp\TTSSbsp) DEBUG PRIN
-T(..\out\stc_8_delay.lst) TABS(2) OBJECT(..\out\stc_8_delay.obj)
line level source
1 ////20220626_22154 CCmodify stc-isp的经过实测不准确
2 #include "bsp_config.h"
*** WARNING C320 IN LINE 51 OF ..\source\bsp\TTSSbsp\bsp_config.h: "MainFre_22M"
3
4
5 /////SYMBOL: L0_Del
6 void Lc_delay_nop(U8 i)
7 {
8 1 U8 m;
9 1 for(m=i;m>0;m--)
10 1 {
11 2 NOP();
12 2 }
13 1 }
14
15
16 #if(MainFre_5M == D_sys_MainFre)
void Delay100us() //@5.5296MHz
{
unsigned char i;
_nop_();
i = 182;
while (--i);
}
void Delay1ms() //@5.5296MHz
{
unsigned char i, j;
_nop_();
_nop_();
i = 8;
j = 43;
do
{
while (--j);
} while (--i);
}
#elif(MainFre_11M == D_sys_MainFre)
void Delay1us() //@11.0592MHz
{
_nop_();
_nop_();
_nop_();
}
void Delay1ms() //@11.0592MHz
C51 COMPILER V9.54 STC_8_DELAY 09/06/2024 11:24:45 PAGE 2
{
unsigned char i, j;
i = 15;
j = 90;
do
{
while (--j);
} while (--i);
}
void Delay100us() //@11.0592MHz
{
unsigned char i, j;
i = 2;
j = 109;
do
{
while (--j);
} while (--i);
}
#elif(MainFre_22M == D_sys_MainFre)
76
77
78 void Delay1ms() //@22.1184MHz
79 {
80 1 unsigned char i, j;
81 1
82 1 i = 29;
83 1 i = 10;
84 1 ////j = 183;
85 1 j = 52;//830/35;
86 1 do
87 1 {
88 2 while (--j);
89 2 } while (--i);
90 1 }
91 void Delay1us() //@22.1184MHz
92 {
93 1 unsigned char i;
94 1
95 1 _nop_();
96 1 i = 5;
97 1 while (--i);
98 1 }
99
100
101 void Delay100us() //@22.1184MHz
102 {
103 1 unsigned char i, j;
104 1
105 1 i = 3;
106 1 j = 221;
107 1 do
108 1 {
109 2 while (--j);
110 2 } while (--i);
111 1 }
112 void Delay500us() //@22.1184MHz
113 {
C51 COMPILER V9.54 STC_8_DELAY 09/06/2024 11:24:45 PAGE 3
114 1 unsigned char i, j;
115 1
116 1 i = 15;
117 1 j = 90;
118 1 do
119 1 {
120 2 while (--j);
121 2 } while (--i);
122 1 }
123
124
125
126 #elif(MainFre_44M == D_sys_MainFre)
void Delay1ms()
{
unsigned char i, j;
i = 15;
////j = 183;
j = 102;//830/35;
do
{
while (--j);
} while (--i);
}
void Delay1us() //
{
unsigned char i;
_nop_();
i = 10;
while (--i);
}
void Delay100us() //
{
unsigned char i, j;
i = 3;
j = 221;
do
{
while (--j);
} while (--i);
}
void Delay500us() //@
{
unsigned char i, j;
i = 15;
j = 180;
do
{
while (--j);
} while (--i);
}
#elif(MainFre_27M == D_sys_MainFre)
C51 COMPILER V9.54 STC_8_DELAY 09/06/2024 11:24:45 PAGE 4
#else ///MainFre_11M
#endif//D_sys_MainFre)
181
182
183
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 159 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 9 ----
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
EDATA SIZE = ---- ----
HDATA SIZE = ---- ----
XDATA CONST SIZE = ---- ----
FAR CONST SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)