51單片機利用定時器中斷製做秒錶

單片機利用定時器中斷製做秒錶 #include #define LED P0 sbit LA=P2^4; //對應着138譯碼器C,B,A端口 sbit LB=P2^3; sbit LC=P2^2; sbit start=P3^1;//三個鍵控制開關和暫停 sbit pulse=P3^0; sbit end=P3^2; char count; //中斷次數定義 unsigned int s
相關文章
相關標籤/搜索