You are on page 1of 11

Interfacing LEDs with 8051

ALP to on / off LED connected to P0.0


LOOP: CLR P0.0
ACALL DELAY
SETB P0.0
ACALL DELAY
SJMP LOOP
DELAY: NOP
MOV R2,#200
LOOPB: MOV R3,#250
LOOPA: NOP
NOP
DJNZ R3,LOOPA
DJNZ R2,LOOPB
RET
END
Interfacing 7Segment Display to 8051
Interfacing Multiplexed 7Segment Display to
8051
Connections
• PORT 1 => Segment Data Input
• Port 3 => Display position with
time multiplexing
• Instead of BCD to 7 segment
decoder transistors are used
With BCD to Seven segment converter
Interfacing matrix keyboard to 8051
Algoriyhm

You might also like