Reduce the number of judgments.
Program name: scatter program test; Description: LED1 lights up after starting, press any key, register r0 starts to increase from zero, and according to the content of r0, the program scatters to
the corresponding place to execute, so as to light up different LEDs
; Entry: p3.0--p3.3
; Exit: P0
; Practice date: 2007--06--17
;Revision date: 2007--06--18
;Revision content: Change the original ljmp part to ajmp, and change the end value of R0 to 08
;**************************************************************************
main:
;**********************Key detection********************************************
st:
;**********************Debounce*******************************************
F1:
;**********************Key processing************************************************mov
F2:
;**********************Scattered transfer processing************************************************
F3:
NADD:
; ****************************Data table************************************************
TAB:
;***********************延时***************************************************
del:
d1:
d2:
;***********************显示**************************************************
pb1:
pb2:
pb3:
pb4:
pb5:
pb6:
pb7:
Previous article:Microcontroller interrupt experiment
Next article:The use of single chip computer scattered transfer table program
- 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
- Industry first! Xiaopeng announces P7 car chip crowdfunding is completed: upgraded to Snapdragon 8295, fluency doubled
- P22-009_Butterfly E3106 Cord Board Solution
- Keysight Technologies Helps Samsung Electronics Successfully Validate FiRa® 2.0 Safe Distance Measurement Test Case
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- Innovation is not limited to Meizhi, Welling will appear at the 2024 China Home Appliance Technology Conference
- 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)
- The physical meaning of FFT results
- MSP430 - Timer_A timer interrupt program
- Buck switching power supply MOS tube gate has pwm signal, but cannot conduct normally
- Motor Driver
- Sharing on the serious problem of LM2611 output voltage heating
- How much do you know about the "ADI Inside" behind these popular healthcare products?
- About ARM's interrupt service routine
- P-NUCLEO-WB55
- 4.3-inch split-screen display
- Recommend a 24-bit ADC module (not a chip), preferably with the same pin definition as the attachment, 12 pins, SPI interface...