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
- High signal-to-noise ratio MEMS microphone drives artificial intelligence interaction
- Advantages of using a differential-to-single-ended RF amplifier in a transmit signal chain design
- ON Semiconductor CEO Appears at Munich Electronica Show and Launches Treo Platform
- ON Semiconductor Launches Industry-Leading Analog and Mixed-Signal Platform
- Analog Devices ADAQ7767-1 μModule DAQ Solution for Rapid Development of Precision Data Acquisition Systems Now Available at Mouser
- Domestic high-precision, high-speed ADC chips are on the rise
- Microcontrollers that combine Hi-Fi, intelligence and USB multi-channel features – ushering in a new era of digital audio
- Using capacitive PGA, Naxin Micro launches high-precision multi-channel 24/16-bit Δ-Σ ADC
- Fully Differential Amplifier Provides High Voltage, Low Noise Signals for Precision Data Acquisition Signal Chain
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- New breakthrough! Ultra-fast memory accelerates Intel Xeon 6-core processors
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Consolidating vRAN sites onto a single server helps operators reduce total cost of ownership
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- Useful Information | Special components in switching power supplies, do you know their types and uses?
- Some dry goods, RVB2601 development board OLED basic driver
- Detailed Explanation of Current Sensing Methods for Switch-Mode Power Supplies
- PCB electromagnetic compatibility wiring and shielding design specifications
- LIS25BA configuration on STM32F4
- [List Announced] If you were given a blood oximeter, what would you do with it?
- How to deal with the problem of running away during program debugging?
- [NXP Rapid IoT Review] +② NXP Rapid IoT Online Programming Preparation
- Instead of just deleting posts, why not have some scientific pursuit?
- [TI recommended course] #Live replay: Application of TI millimeter wave sensors in smart home#