摘要: #include <reg52.h>sbit LED = P1^1;unsigned char count;void main(){ TMOD = 0x01; //工作方式1 ,T/C 0 是一个16位定时器 / 计数器 TH0 = 0x3c; TL0 = 0xb0; EA = 1; ET0 = 1; TR0 = 1; LED = 0; while(1) { }}void T1_timer() interrupt 1{ TH0 = 0x3c; TL0 = 0xb0; count++; if(count ==... 阅读全文
posted @ 2012-02-20 22:15 一浩瀚星空一 阅读(665) 评论(1) 推荐(0) 编辑