Display the preset characters in a dot matrix in a marquee style (shift left) from left to right
;port 3.0~3.6 connect to column ;port 1.0~1.4 connect to row ;delay=0.2s ;========== ;= Main = ;========== .ORG 0000H START: MOV DPTR, #DATA MOV R3, #OK-DATA-4 LOOP: MOV R2, #20 SCAN: ACALL SCAN1 DJNZ R2, SCAN INC DPTR DJNZ R3, LOOP MOV DPTR, #LOGO NEXT: ACALL SCAN1 AJMP NEXT ;========== ;= SCAN = ;========== SCAN1: MOV R1, #00H MOV R5, #11111110B MOV R4, #05 LOOP1: MOV A, R1 MOVC A, @A+DPTR MOV P3, A MOV P1, R5 MOV R6, #5 DL1: MOV R7, #200 DL2: DJNZ R7, DL2 DJNZ R6, DL1 ORL P1, #11111111B MOV A, R5 RL A MOV R5, A INC R1 DJNZ R4, LOOP1 RIGHT ;========== ;= DATA = ;========== ; <% 0=OFF ; 1=ON %> DATA: .DB 00H .DB 00H .DB 00H .DB 00H .DB 00H .DB 01000010B ;2 .DB 01100001B .DB 01010001B .DB 01001001B .DB 01000110B .DB 00H .DB 00H .DB 00H .DB 00H .DB 00H .DB 00111100B ;6 .DB 01001010B .DB 01001001B .DB 01001001B .DB 00110000B .DB 00H .DB 00H .DB 00H .DB 00H OK: .DB 00H LOGO: .DB 00100110B ;S .DB 01001001B .DB 01001001B .DB 01001001B .DB 00110010B .END |
Previous article:I2C Bus Principle and Application
Next article:Using C51 to make a running light
- 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
- 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)
- Learn ARM development(19)
- Learn ARM development(14)
- Automotive Power Electronics and Motor Drives Handbook
- [NXP Rapid IoT Review] + Finally climbed out of the pit (Second week review summary)
- National Undergraduate Electronic Design Competition Module Design Series (II)
- allegro16.6 Questions about via opening and via cover oil?
- MSP430 interrupt mechanism
- The internal matching drive amplifier is actually an internal two-stage process as shown below:
- Using a microphone to measure light? It turns out there is such a cool operation!
- CC2540 Power Settings
- I'd like to ask for your advice, is there any cheap solution to remotely control LED advertising screens via the internet?
- Class-D amplifier TAS5731M power-on timing analysis