1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| //#include "STC15Wxx.h"
| #include "STC15F2K60S2.H"
| #include "intrins.h"
|
| void Delay1ms() //@22.1184MHz
| {
| unsigned char data i, j;
|
| _nop_();
| _nop_();
| i = 22;
| j = 128;
| do
| {
| while (--j);
| } while (--i);
| }
|
|
| void Delay_ms(unsigned int n)
| {
| while(n--)
| {
| Delay1ms();
| }
|
| }
|
|