Professional Documents
Culture Documents
Interfacing Seven Segment Led Display
Interfacing Seven Segment Led Display
Interfacing Seven Segment Led Display
data on LED display. Objective: Display a number in LED display using microcontroller. Apparatus Required: No Name Quantity 1 Microcontroller 1 2 Seven Segment LED (CA Type) 1 3 Resistors, Capacitors and connecting wires.
Procedure: 1.Connect the display. 2. Enter the program. 3. The output would be displayed on two seven segment LED.
Assembly Codes
ZERO ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE DOT ORG 00H
EQU 3FH EQU 06H EQU 5BH EQU 4FH EQU 66H EQU 6dH EQU 7dH EQU 07H EQU 7FH EQU 6FH EQU 80H
MOV P1,#00H LOOP: MOV P1,#ZERO CALL DELAYS MOV P1,#ONE CALL DELAYS MOV P1,#TWO CALL DELAYS MOV P1,#THREE CALL DELAYS MOV P1,#FOUR
CALL DELAYS MOV P1,#FIVE CALL DELAYS MOV P1,#SIX CALL DELAYS MOV P1,#SEVEN CALL DELAYS MOV P1,#EIGHT CALL DELAYS MOV P1,#NINE CALL DELAYS MOV P1,#DOT CALL DELAYS AJMP LOOP DELAYS: D1: CALL DELAY DJNZ R5,D1 RET DELAY: ;100ms DELAY MOV R7,#200 D2: MOV R6,#100 D3: NOP NOP NOP DJNZ R6,D3 DJNZ R7,D2 ;1s DELAY MOV R5,#10
RET END
Circuit Detail:
Result: The Code was downloaded to the micro controller and after reset the display of 00, 01 09, dot were displayed in seven segment LED.