This paper mainly introduces the development of single-chip clock, which can set time and clock on the MCU also can be seted by the PC software .The hardware is Freescale 16-bit singlechip DT512. The development environment of my choice is Codewarrior V4.6, the development language is C++. The structure of the main circuit board include DT512 Singlechip, button, buzzer, LCD, RS232 to achieve the communication between PC and MCU.In the realization of the whole design also needs USB Blaster,one USB-232 serial interface and other hardware devices.
This design phase of the development of the single-chip clock, combined with component-based programming of thought, careful analysis of the demand points, divided into major functional modules, to reduce coupling between modules,improve the reuse of the same code.