Lab#06 Lab Name: Led Blinking by Using 8051
Lab#06 Lab Name: Led Blinking by Using 8051
Lab#06
Lab name: Led blinking by using 8051
6.1 Lab 0bjective:
To become familiar how to blink led in 8051 using assembly
6.2 Pre lab reading:
Book: the 8051 microcontroller and embedded systems, edition second, Author Muhammad
Ali mazidi, chapter 03, and topic: simple led blinking program
6.3 Equipment:
Proteus 8, power supply
6.4 components:
8051 microcontroller, led, wires,
6.5 circuit:
6.6 code:
Org 00H
main:
here: setb p1.0
CPL p1.0
SJMP here
End
1
21395
Microcontroller and Microprocessor lab 6
6.7 Output:
6.8 Exercise/procedure:
Open the software proteus 8 and go for the new project select the default schematic. Now
select the controller and write the code and check the errors if any then remove it. Select all
the components from library and connect all the components. Once the simulation is done
then run it and see the output.
6.9 Notes:
Here we will observe the led it will blink continuously
2
21395
Microcontroller and Microprocessor lab 6
1-led blinking
Problem Number
2-using 8051
Working
Lab Performance
Viva
Instructor's Verification
3
21395