Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

Microcontroller and Microprocessor lab 7

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

7.10 Assessment sheet:


CMS ID: 21395
DATE: 15-05-2015

1-led blinking using delay


Problem Number
2-8051

Working
Lab Performance
Viva

Total Score in Lab#7

Instructor's Verification

3
21395

You might also like