Lab#07 LAB NAME: Led Blinking by Using Delay
Lab#07 LAB NAME: Led Blinking by Using Delay
Lab#07
LAB NAME: Led blinking by using delay.
7.1 Lab 0bjective:
To become familiar how to blink led in 8051 using delay
7.2 Pre lab reading:
Book: the 8051 microcontroller and embedded systems, Edition second, Author Muhammad
Ali mazidi, chapter 03, and topic: delay program
7.3 Equipment:
Proteus 8, power supply
7.4 Components
: 8051 microcontroller, led, wires,
7.5 Circuit:
7.6 Code:
ORG 00H
main:
here: SETB P1.0
ACALL DELAY
CPL P1.0
ACALL DELAY
1
21395
Microcontroller and Microprocessor lab 7
SJMP here
ORG 300H
DELAY: MOV R0, 0FFH
DJNZ R0, $
RET
End
7.7 Output:
7.8 Exercise/procedure:
Open proteus 8 select the new project and select default schematic. Select the controller and
write a program by using a call delay in assembly. Now check the errors if any then remove it
and compile it. Select the component from library and connect all the components and run the
simulation see the result led will continuously blink with some delay
7.9 Notes:
Led will blink with some time delay
2
21395
Microcontroller and Microprocessor lab 7
Working
Lab Performance
Viva
Instructor's Verification
3
21395