0% found this document useful (0 votes)
28 views

Lab#07 LAB NAME: Led Blinking by Using Delay

This document describes a lab experiment on blinking an LED using delay with a microcontroller. The objective is to familiarize students with using delay to blink an LED with an 8051 microcontroller. The lab uses Proteus 8 software to write an assembly program using calls to a DELAY subroutine to toggle an LED pin on the microcontroller. When run in simulation, the LED will continuously blink with a time delay between on and off states. The document provides instructions on setting up the circuit in Proteus, writing the code, and observing the output of the blinking LED.

Uploaded by

farheen khoso
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Lab#07 LAB NAME: Led Blinking by Using Delay

This document describes a lab experiment on blinking an LED using delay with a microcontroller. The objective is to familiarize students with using delay to blink an LED with an 8051 microcontroller. The lab uses Proteus 8 software to write an assembly program using calls to a DELAY subroutine to toggle an LED pin on the microcontroller. When run in simulation, the LED will continuously blink with a time delay between on and off states. The document provides instructions on setting up the circuit in Proteus, writing the code, and observing the output of the blinking LED.

Uploaded by

farheen khoso
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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