Etrx 17 MC Lab 1
Etrx 17 MC Lab 1
Etrx 17 MC Lab 1
Aim: See the layout and do the connection of 2 switches and 2 LED in
proteus. Switches should control the delay of blinking of LEDs.
Pressing one switch should increase the delay from 10 ms to
100ms and other switch should decrease the delay from 100 ms to
10 ms.
Software 1. Proteus
used: 2. Keil-uVision
Circuit
Diagram:
1
Bharatiya Vidya Bhavan’s
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous College Affiliated to University of Mumbai)
SE-ETRX/EXTC Sub- MC Lab
2
Bharatiya Vidya Bhavan’s
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous College Affiliated to University of Mumbai)
SE-ETRX/EXTC Sub- MC Lab
Program:
3
Bharatiya Vidya Bhavan’s
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous College Affiliated to University of Mumbai)
SE-ETRX/EXTC Sub- MC Lab
4
Bharatiya Vidya Bhavan’s
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous College Affiliated to University of Mumbai)
SE-ETRX/EXTC Sub- MC Lab
Conclusio 1.Thus we have studied the experiment and have learnt about interfacing
n: external I/O devices with the port pins and we have also learnt how to
configure port pins to be used as input output pins respectively.
2. we have also learnt how to use keil and proteus software to check our
program virtually before uploading it into real hardware which makes
debugging more difficult
3. we have also learnt the advantages and disadvantages of writing code in
c programming and assembly respectively
4. P3.2 and P3.3 Pins are used as external interrupt pins
5
Bharatiya Vidya Bhavan’s
Sardar Patel Institute of Technology
Bhavan’s Campus, Munshi Nagar, Andheri (West), Mumbai-400058-India
(Autonomous College Affiliated to University of Mumbai)
SE-ETRX/EXTC Sub- MC Lab
5. Input output port cannot be directly connected to port0 because it does
not have pull ups. But on the other hand, Port1, port 2 and port3 have an
internal pull up.
6. we need to load hex file in the microcontroller for it to work