TWO EQU 31H
Reference address:7s digital tube electronic clock assembly program
THR EQU 32H FOU EQU 33H ORG 0000H LJMP START ORG 000BH LJMP INT_T0 START: SETB ET0 SETB OF MOV TMOD,#01H MOV TH0, #3CH MOV TL0,#0B0H;50ms initial value SETB TR0 MOV R5, #00H MOV DPTR,#TAB LOOP: CLR P1.0 SETB P1.3 MOV A,ONE MOVC A,@A+DPTR MOV P2,A LJMP TWO CLR P1.3 SETB P1.2 MOV A,TWO MOVC A,@A+DPTR MOV P2,A LJMP TWO CLR P1.2 SETB P1.1 MOV A,THR MOVC A,@A+DPTR MOV P2,A LJMP TWO CLR P1.1 SETB P1.0 MOV A,FOU MOVC A,@A+DPTR MOV P2,A LJMP TWO LJMP LOOP DY: MOV R3,#200 D1: MOV R4,#100 DJNZ R4,$ DJNZ R3,D1 RIGHT INT_T0:MOV TH0,#3CH MOV TL0, #0B0H INC R5 CJNE R5,#20,EXIT MOV R5, #00H INC ONE MOV A,ONE CJNE A,#10,EXIT MOV ONE,#00H INC TWO MOV A,TWO CJNE A,#6,EXIT MOV TWO,#00H INC THR MOV A,THR CJNE A,#10,EXIT MOV THR,#00H INC FOU MOV A,FOU CJNE A,#3,EXIT MOV FOU,#00H EXIT: NETWORK TAB: DB 01H,4FH,12H,06H,4CH DB 24H,20H,0FH,00H,04H END
Previous article:3D Rotating LED Assembly Programming
Next article:51 single chip microcomputer drives stepper motor __ ultimate (full version)
- Popular Resources
- Popular amplifiers
- Signal Integrity and Power Integrity Analysis (Eric Bogatin)
- STC8 series MCU development guide: analysis and application of processors, programming and operating systems
- Compilation system perspective: Graphical explanation of the working mechanism and implementation principle of the GCC compiler
- Principles of Compilation 3rd Edition (Zhang Suqin, Wang Shengyuan, Dong Yuan, Lü Yingzhi, Jiang Weidu)
Recommended Content
Latest Microcontroller Articles
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- 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
MoreDaily News
- 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
Guess you like
- Circuit
- TMS320F28035 call jump instruction problem
- Sliding resistor for LM358 comparator
- TE pressure sensor: underwater robots from 0 to 1000, how to avoid mass production pitfalls
- OHM Graphical Introduction to Electronics
- Detailed explanation of the design of RFID-based smart hotel system
- 【Qinheng Trial】Streamlined mobile phone system design #1
- A newbie asks a question about the STC15 interrupt function
- MSP432P401R LaunchPad download program prompts not supported
- Help 40E Gold