Description: 1 Basic part:
(1) use the 51 P1 port as the data output port, and the P2 port is the co Yin digital tube bit selection signal, and the timer 0 is used to realize the timing and display of seconds.
(2) after power on reset, display 00.
(3) press the S2 button and start counting. Use addition counting form. It stops at 60. Buzzer ringing.
(4) stop after 2 seconds, and resume 00.
(5) repeat the 1-4 procedure when the S2 key is pressed again.
To Search:
File list (Check if you may need any files):
clock.c
单片机定时器实现秒计时和显示.doc