START:MOV P2,#11100001B
LCALL D2MS
MOV P2,#11010010B
LCALL D2MS
MOV P2,#10110011B
LCALL D2MS
MOV P2,#01110100B
LCALL D2MS
SJMP START
Thinking: Program to display 30H, 31H on 4 seven-segment LED digital tubes.
The contents of units 32H and 33H.
START: MOV R0,#30H
MOV R7,#4
MOV R2, #0E0H
UP: MOV A,@R0
ENT A,R2
MOV P1,A
LCALL D2MS
INC R0
MOV A,R2
RL A
MOV R2,A
DJNZ R7,UP
SJMP START
Example: Program to display the contents of 30H, 31H, 32H, and 33H units on four seven-segment LED digital tubes.
START: MOV R0,#30H
MOV R7,#4
MOV R2,#0FEH
MOV DPTR,#TAB
UP: MOV A,@R0
MOVC A,@A+DPTR
MOV P1,A
MOV P3,R2
LCALL D2MS
INC R0
MOV A,R2
RL A
MOV R2,A
DJNZ R7,UP
SJMP START
TAB : DB 3FH,06H,5BH,4FH
DB 66H,6DH,7DH,07H
DB 7FH,6FH
Previous article:MCU and analog power management integration
Next article:LED dot matrix display circuit schematic and program
Recommended ReadingLatest update time:2024-11-16 20:34
- Popular Resources
- Popular amplifiers
- MathWorks and NXP Collaborate to Launch Model-Based Design Toolbox for Battery Management Systems
- STMicroelectronics' advanced galvanically isolated gate driver STGAP3S provides flexible protection for IGBTs and SiC MOSFETs
- New diaphragm-free solid-state lithium battery technology is launched: the distance between the positive and negative electrodes is less than 0.000001 meters
- [“Source” Observe the Autumn Series] Application and testing of the next generation of semiconductor gallium oxide device photodetectors
- 采用自主设计封装,绝缘电阻显著提高!ROHM开发出更高电压xEV系统的SiC肖特基势垒二极管
- Will GaN replace SiC? PI's disruptive 1700V InnoMux2 is here to demonstrate
- From Isolation to the Third and a Half Generation: Understanding Naxinwei's Gate Driver IC in One Article
- The appeal of 48 V technology: importance, benefits and key factors in system-level applications
- Important breakthrough in recycling of used lithium-ion batteries
- 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
- 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!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- EEWORLD University Hall ---- Top 10 Raspberry Pi Designs in 2019
- Industrial control system software design based on finite state machine.pdf
- CPU and peripherals of TMS320C6000 series DSP
- LPC2000 series Proteus simulation + code novice's ARM learning notes
- Design of wireless transmitter for voice, text and short messages
- Realization of Simple Single Chip Microcomputer Calculator
- See how many PA posts have been viewed in the forum
- Smart car based on ESP32 road sign recognition
- Regarding the issue of isolated communication:
- Please recommend a cheap and available microcontroller