The circuit and program to display 1234 on 4 seven-segment LED digital tubes

Publisher:ww313618Latest update time:2013-03-05 Source: EDNKeywords:LED Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The circuit and program to display 1234 on 4 seven-segment LED digital tubes

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.

The circuit and program to display 1234 on 4 seven-segment LED digital tubes

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

The circuit and program to display 1234 on 4 seven-segment LED digital tubes

Example: Program to display the contents of 30H, 31H, 32H, and 33H units on four seven-segment LED digital tubes.

The circuit and program to display 1234 on 4 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

Keywords:LED Reference address:The circuit and program to display 1234 on 4 seven-segment LED digital tubes

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

8-string white LED driver solution designed with AD5203
The AD5203 is an 8-string white LED (WLED) driver with SMBus and PWM Input from ADI. It uses current-mode and step-up converter technology and has high efficiency. The AD5203 integrates a 0.15 Ω, 2.9 A switch and has an operating frequency of 350kHz and 1MHz. The input voltage is from 6V to 21V, the maxim
[Power Management]
8-string white LED driver solution designed with AD5203
Improve light output efficiency and reduce thermal resistance of power LED packaging technology
The application of ultra- high brightness LEDs is expanding, first entering the market of special lighting and moving towards the general lighting market. As the input power of LED chips continues to increase, higher requirements are placed on the packaging technology of these power
[Power Management]
51 microcontroller learning-button control LED
1. Press the button once and the LED light will flash once. #include REGX52.H void Delay(unsigned int xms) //@12.000MHz { unsigned char i, j; while(xms) { i = 2; j = 239; do { while (--j); } while (--i); xms--; } } void main() { //P2=0xFE; while(1) {if(P3_1==0)        { Delay(20);
[Microcontroller]
About LED packaging process
1. Conductive glue, conductive silver glue Conductive glue is an indispensable glue in IED production packaging. The requirements for conductive silver paste are good electrical and thermal conductivity, high shear strength, and strong bonding. UNINWELL International's conductive glue and conductive silver glue hav
[Power Management]
Playing with boost regulators - predicting LED driver feedback loops
When it comes to small-signal modeling of the power stage, the boost regulator has two disadvantages compared to the buck regulator: first, it has a right-half-plane (RHP) zero that is determined by duty cycle and load, which complicates the derivation of the model; second, the boost regulator is not as commonly use
[Power Management]
Playing with boost regulators - predicting LED driver feedback loops
Application of High Brightness LED Driver Controller
1 Introduction MAX16801A/B and MAX16802A/B use constant current to drive HB LEDs in general lighting and display applications to provide the required control functions. MAX16801A/B is suitable for universal AC input LED drivers, while MAX16802A/B is specified for low voltage (10.8 ~ 24 V) DC input LED drivers. The HB
[Power Management]
Application of High Brightness LED Driver Controller
Solution to LED flicker caused by fluctuating AC input
In LED lighting systems, adding circuitry to improve PFC response time can help eliminate flicker caused by rapidly changing AC input voltage. If the power factor correction (PFC) block does not respond quickly enough, a fluctuating AC input can push the output voltage out of its normal range and cause changes in ligh
[Power Management]
Solution to LED flicker caused by fluctuating AC input
A brief analysis of the difference between LED display and LED backlight
  LED screen is absolutely a common LED backlight source . LED display screen is also called electronic display screen or floating character screen. It is composed of LED dot matrix and LEDPC panel, and displays text, pictures, animations, videos and content by turning on and off red, blue, white and green LED ligh
[Power Management]
A brief analysis of the difference between LED display and LED backlight
Latest Power Management Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号