There is an 8031 chip, which is expanded by an 8255A. If port B of 8255A is used as input, each bit of port B is connected to a switch, and port A is used as output, each bit is connected to a light-emitting diode, please draw the circuit schematic diagram, and write a program so that when a switch of port B is connected to a high level, the corresponding light-emitting diode of port A will be lit.
A: 7ffch
B: 7ffdh
C:7ffeh
Control port: 7fffh
MOV DPTR,#7FFFH
MOV A,#10000010B
MOV @DPTR,A
MOV DPTR,#7FFDH
MOVX A,@DPTR
MOV DPTR,#7FFCH
MOVX @DPTR,A
Picture 1
Previous article:89C51 single chip computer 9-button determinant keyboard input circuit
Next article:MCU and keyboard interface diagram and keyboard message processing program
- 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
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Wi-Fi 8 specification is on the way: 2.4/5/6GHz triple-band operation
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Vietnam's chip packaging and testing business is growing, and supply-side fragmentation is splitting the market
- Three steps to govern hybrid multicloud environments
- Three steps to govern hybrid multicloud environments
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Microchip Accelerates Real-Time Edge AI Deployment with NVIDIA Holoscan Platform
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- Melexis launches ultra-low power automotive contactless micro-power switch chip
- About LM2611
- STM32F767 fails to drive 7-inch screen
- EEWORLD University Hall----Analog Integrated Circuit Design Yang Qingyuan (National Chung Hsing University, Taiwan)
- Strange problem in high frequency control of PMOS field effect tube
- PCB tool ruler
- [National Technology N32G430] 01 Before the troops move, the food and grass must be prepared + Unboxing
- 【NUCLEO-WL55JC2 Review 6】 LoRa Point-to-Point Communication
- EEWORLD University Hall--Detailed explanation of Texas Instruments' full range of DC step-down products
- Sleep monitoring blanket
- [Raspberry Pi 4B Review] + TCP Server and HTTP Communication