Mic Special 112
Mic Special 112
(Fourth Semester)
In the subject of Microcontroller And Its Application (EC3410)
Submitted
By
22EC501
1. Yadnyesh Kuware 22EC512
2. Jasbir Monga 22EC514
3. Yuvraj Munge 22EC515
4. Kunal Murade 22EC521
5. Prathamesh Pansari 22EC522
6. Kartik Patekar
Under The Guidance Of
Prof. V. V. Tekam
Mam
Lecturer in Electronics
and Telecomm.
Engineering
Certificat
Mr./Ms.
Yadnyesh Kuware
e
This is to certify that
22EC501
Jasbir Monga 22EC512
Yuvraj Munge 22EC514
Kunal Murade 22EC515
Prathamesh Pansari 22EC521
Kartik Patekar 22EC522
Diploma in Electronics & Telecommunication Engineering
has satisfactorily completed the micro project in the subject
of Microcontroller And Its Application (EC3410) entitled
"Interface 8 LED with Microcontroller write an ALP to ON
and OFF 8 LEDs after some delay” for the academic year
2023-24 as prescribed in curriculum.
1. Microcontroller
(Pin Diagram of 89s51)
2. Crystal Oscillator
Components 3. Capacitor
2. Required 4. Resistor
5. Voltage Regulator IC7805
6. Printed Circuit Board (PCB)
7.Connecting Wires or
Connectors 2
1. Interfacing Diagram
Diagram and
2. Algorithm
3. Coding
3. Flow Chart
4. Program Code 5
4.1 Snap Shots
Result and 4.2Actual circuit
4. (photo)
Conclusion
4.3 Applications 10
4.4Conclusion
1. Reference Books
5. References
2. Websites 13
Chapter 1. Introduction
1
2. Components Required
2
2.2 Crystal Oscillator (16 MHz)
A crystal oscillator is an electric oscillator type circuit that uses a
piezoelectric resonator, a crystal, as its frequency-determining
element.
4. Resistor
A passive electrical component with two terminals that are used
for either limiting or regulating the flow of electric current in
electrical circuits.
3
2.6 Printed Circuit Board (PCB)
A printed circuit board (PCB) is an electronic assembly that uses
copper conductors to create electrical connections between
components. PCBs also provide mechanical support for
electronic components so that a device can be mounted in an
enclosure.
4
3. Diagram and Coding
5
2. Algorithm
a. Set A to 0FFH
b. Move the value of A to P2
c. Call the DELAY subroutine
d. Set A to 00H
e. Move the value of A to P2
f. Call the DELAY subroutine
g. Jump back to step 2a
a. Set R5 to 0FFH
b. Set R3 to 0AAH
c. Start an outer loop (L1)
i. Decrement R5
ii. If R5 is not zero, jump back to step 3c
d. Start an inner loop (L2)
i. Decrement R3
ii. If R3 is not zero, jump back to step 3d
iii. If R3 is zero, jump to step 3e
e. Exit the subroutine
6
3.3 Flow Chart
Start
MAIN
MOV A, #0FFH
MOV P2, A (Turn
ON)
ACALL DELAY
MOV A, #0FFH
MOV P2, A (Turn ON)
ACALL DELAY
SJMP MAIN
DELAY
7
MOV R5, #0FFH
MOV R3,
#0AAH
L1:
DJNZ R5, L1 (INNER)
RET
STOP
8
3.4 Program Code
ORG 0000H
MOV P2,#00H
MAIN: MOV A,#0FFH
MOV P2,A
ACALL
DELAY MOV
A,#00H MOV
P2, A ACALL
DELAY SJMP
MAIN
DELAY: MOV R5,#0FFH
MOV
R3,#0AAH L1: DJNZ
R5, L1
RET
DJNZ
R3 ,L2 END
9
4. Result and Conclusion
10
4.4 Actual circuit
8 LED OFF
8 LEDS ON
14
2. Applications
Microcontrollers are used in a wide variety of applications,
including controlling machines, sensing and monitoring devices,
and automated systems. Some common examples of
microcontroller applications include:
• Industrial automation: Microcontrollers are commonly used to
control industrial machines, such as robotic arms, conveyor belts,
and other manufacturing equipment.
• Automotive: Microcontrollers are used in automobiles to
control a variety of systems, including the engine, transmission,
and brakes.
• Home appliances: Many household appliances, such as
washing machines, refrigerators, and microwave ovens, contain
microcontrollers to control their various functions.
• Consumer electronics: Microcontrollers are used in a wide
range of consumer electronics, including smartphones, tablets,
and other portable devices.
• Medical devices: Microcontrollers are used in a variety of
medical devices, such as heart rate monitors, blood pressure
monitors, and insulin pumps.
• Military systems: Microcontrollers are used in military
systems, such as missiles, aircraft, and other defense systems.
• Environmental monitoring: Microcontrollers are used in
sensors and other devices that monitor environmental conditions,
such as temperature, humidity, and air quality.
• Robotics: Microcontrollers are used in robots to control their
movements and perform various tasks.
• Internet of Things (IoT): Microcontrollers are used in IoT
devices to collect and transmit data, and to control various
functions.
11
4.3 Conclusion
To conclude, interfacing 8 LEDs with a microcontroller
involves utilizing digital output pins to control the LEDs' states,
coupled with appropriate delay functions to manage the timing
of LED switching.
12
5. References
5.2 Website
1. https://www.microchip.com/en-
us/products/microcontrollers-and-microprocessors
2. https://microcontroller.com/
13