基于C8051F单片机的跑马灯程序
#include //C8051F31X系列头文件
#define SYSCLK 24500000 //SYSCLK frequency in 24.5MHz
#define T0_1ms 65536L-1*(SYSCLK/12000L)
#define TH0S T0_1ms>>8
#define TL0S T0_1ms
unsigned char dat;
bit flag;
unsigned int count;
2021-09-17 17:40:20
3KB
C8051F
1