Abstract
The single-chip microcomputer, collects CPU, RAM, ROM, the counting and many kinds of connections in a body. It has been published since the 70's of 20th century and has high performance, so it attracts lots of people’s attention.Its volume is small,the weight is light,the capacity of resisting disturbance is strong,the environmental challenge is not high,the price is not expensive and the development is easy,for that,it is widely used in the intelligent production and the industrial automation.
This topic designs the electronic clock through the MCS-51 single-chip microcomputer and the assembly language is adopted in this design. The electronic clock can achieve these functions: display the hour, the minute, the second and the year, the month, the date, alarm in the fixed time. The system of the electronic clock is composed of the LCD display circuit, the clock circuit,the parameter circuit and the timing warning circuit.In order to display the hour, the minute, the second and the year, the month, the date in the LCD1602, it use the software assembler;it makes use of the clock chip DS1302 to achieve the functions of accounting and timing;it has two keyswitches,one is used to control time parameter and the other is used to set up the alarm clock;when the time is reach the set-up time,the buzzer sends out the sound which can react the effect of alarm.The design of the electronic clock, which contrasts to the home-use clock,we can find that the time keeping performance is good.For that, the electronic clock is suitable for many occasions.
We can learn the basic principles of the AT89C51 from this text.It is good for us to realize the function of the base pins and the function in the circuit.This article also discourses the working principles of the LCD1602 and the clock chip DS1302,we can understand their software design procedure from this passage.
Key words:single-chip Microcomputer;electronical clock;Timepiece chip