As shown in the figure, switch SP1 is connected to the P3.7/RD pin. Four light-emitting diodes are connected to the P1 port of the AT89S51 microcontroller. When the power is on, the light-emitting diode L1 connected to the P1.0 pin flashes. Every time the switch SP1 is pressed, the light-emitting diode L2 connected to the P1.1 pin flashes. When the switch SP1 is pressed again, the light-emitting diode L3 connected to the P1.2 pin flashes. When the switch SP1 is pressed again, the light-emitting diode L4 connected to the P1.3 pin flashes. When the switch SP1 is pressed again, it is the turn of L1 to flash, and so on.
(1. Connect the P3.7/RD port in the "MCU System" area to the SP1 port in the "Standalone Keyboard" area;
(2. Connect the P1.0 - P1.4 ports in the "MCU System" area to the "L1 - L8" ports in the "Eight-way LED Indicator Module" area with an 8-core cable; requirements: P1.0 is connected to L1, P1.1 is connected to L2, P1.2 is connected to L3, and P1.3 is connected to L4.
Previous article:Taxi meter hardware schematic diagram
Next article:Manual counter design circuit diagram based on C51 single chip microcomputer
- Popular Resources
- Popular amplifiers
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
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Download from the Internet--ARM Getting Started Notes
- Learn ARM development(22)
- Learn ARM development(21)
- Learn ARM development(20)
- Learn ARM development(19)
- Learn ARM development(14)
- Learn ARM development(15)
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method