2011
10-01
10-01
使用定时器中断实现间隔1s流水灯闪烁一次 NEW
#include <reg52.h>#include <intrins.h>//#define uint unsigned int#define uchar unsigned charuchar temp,a;void main(){TMOD=0x01;TH0=(65536-50000)/256;TL0=(65536-50000)%256;EA=1;ET0=1;TR0=1;temp=0xfe;P1=0xfe;while(1){ if(a==20){ a...
Read More >