#include "STC12.h"
// STC12C5A60S2 @ 22.0184Mhz 精确延时
void delay_10us(unsigned char n) {
unsigned char i, j;
for (j = ; j < n; j++)
for (i = ; i < ; i++);
}
void delay_1ms(unsigned int n) {
unsigned int i, j, k;
for (k = ; k<n; k++)
for (j = ; j<; j++)
for (i = ; i<; i++);
}
void delay_10ms(unsigned int n) {
unsigned int i, j, k;
for (k = ; k<n; k++)
for (j = ; j<; j++)
for (i = ; i<; i++);
}
void delay_100ms(unsigned int n) {
unsigned int i, j, k;
for (k = ; k<n; k++)
for (j = ; j<; j++)
for (i = ; i<; i++);
}