Project introduction: The Mid-Autumn Festival is approaching, and a simple and easy-to-use mooncake lamp is undoubtedly the best choice for our beginners to express blessings. This project is a mooncake design based on the ATC89C52RC microcontroller. A single microcontroller system composed of light-emitting diodes, crystal oscillators, reset, power supply and other circuits and necessary software. Simple yet unique, a must-have item for students with zero basic knowledge.
Hardware part:
It can be seen from the hardware schematic diagram that if you want LED1 connected to the P1.0 port to light up, then you only need to change the level of the P1.0 port to low level; on the contrary, if you want to connect When LED1 in the P1.0 port goes out, the level of the P1.0 port must be changed to high level; similarly, the lighting and extinguishing methods of other LEDs are the same as LED1. Therefore, to realize the running water lamp function, we only need to turn on and off the light-emitting diodes in sequence.
software part
Keil C51 software is one of the many excellent software for microcontroller application development. It integrates editing, compilation and simulation. It supports assembly, PLM language and C language programming. It has a friendly interface and is easy to learn and use. Keil C51 software is mainly about writing programs accurately. Write a program to control the high and low changes in the pin level of the microcontroller to turn the light-emitting diode on and off. Software programming is an important part of the microcontroller application system and is the focus and difficulty of learning microcontrollers.
The layout can be further optimized.
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet