With the rapid development of the electronics industry, IC technology, increasing the production of MCU industry in the national economy played an important role. It is because of high integration, small size, reliability, application flexibility, low cost, control-oriented features have been the majority of engineers and technicians and customs. Photoelectric signal in control, The MCU can replace conventional analog modem. Time control,signal-chip real time clock in response to the outside world for hours,minutes and seconds of regulation and so on.
This article will introduce the MCU microcomputer of sunlight in the UV band (mainly UVA and UVB) for real-time data processing shows the working principle, design and realization of the bargain clock function. Mainly related to the control part of the hardware design and software programming MCU control.UVM30 in controlling the use of UV light on the signal acquisition, and then carried out through the ADC0832 analog-to-digital conversion, the final use of MCU data processing and data through the P0 port 12864LCD to show. The main function of the realization of the clock with DS1302 for year, month, day, hour, minute, second for real-time display and keyboard besides the clock adjustment.