To move a single light left and right, the hardware circuit is shown in the figure. The eight light-emitting diodes L1 - L8 are respectively connected to the P1.0 - P1.7 interfaces of the single-chip computer. When the output is "0", the light-emitting diode lights up. At the beginning, P1.0 → P1.1 → P1.2 → P1.3 →┅→ P1.7 → P1.6 →┅→ P1.0 lights up, and the cycle repeats.
Use an 8-core cable to connect P1.0 - P1.7 in the "MCU System" area to the L1 - L8 ports in the "Eight-way LED Indicator Module" area. The requirements are: P1.0 corresponds to L1, P1.1 corresponds to L2, ... ... P1.7 corresponds to L8.
Figure 1. Circuit diagram of left and right movement of advertising light based on single chip microcomputer
Previous article:Schematic diagram of multi-way switch status display circuit based on C51 single chip microcomputer
Next article:Design of Precise Signal Simulation Circuit Based on Single Chip Microcomputer C8051F410
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
- Brief Analysis of Automotive Ethernet Test Content and Test Methods
- How haptic technology can enhance driving safety
- Let’s talk about the “Three Musketeers” of radar in autonomous driving
- Why software-defined vehicles transform cars from tools into living spaces
- C language algorithm to calculate the age of beautiful women
- LOTO virtual oscilloscope about trigger sensitivity function
- [ST60 short-distance test] Part 2: Communication rate test
- PT4115 cannot be completely shut down
- STM32 Linux development board recommendation | PHYTEC development board: Help you reduce development risks and improve product stability
- FAQ|Beineng International's new glass breakage detection solution
- Get a free gift: Ultra-low power STM32U5 IoT exploration kit worth 420 yuan
- LPWA Technology Introduction and Application Prospects
- Design Case 01 Marquee
- Open Book