C language 5 1 single chip microcomputer digital tube countdown, based on 5 1 single chip microcomputer digital tube display countdown.
Wedding planning granules
reprint
watch out for
0 likes 1493 people to read.
Based on the countdown displayed by 5 1 single chip microcomputer * * * digital tube, members can share it and read it online. For more information about countdown based on 5 1 single chip microcomputer * * * digital tube display (2-page collector's edition), please search online in the assembly drawing.
1, based on 5 1 MCU * * * digital display countdown # contains unsigned characters = 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x07, 0x7f, 0x6f, d 1, d2, G. Signed int time =10; Invalid delay (unsigned character I); void sm()d 1 = time/ 10; D2 = time%10; p 1 = SD 1; P3 = 0x 00; Delay (2); P3 = 0x 0 1; p 1 = sd2; Delay (2); void main()TMOD = 0x 0 1; TH0 = 0x3cTL0 = 0xb0EA = 1; ET0 = 1; TR0 = 1; And (1) sm (); Void int 1 () interrupt1count+; if(count = 20)count = 0; Time-; if(time =- 1)time = g; g = 3; y+; if(y = 2)y = 0; g = 10; Void delay (unsigned char i) unsigned char j, k; for(k = 0; ki; k+)for(j = 0; j 10; j+); .