Esd Lab 03
Esd Lab 03
Esd Lab 03
College of Engineering
Lab
Introduction to Proteus Software, Led Blinking and Switch interfacing.
3
Configuration bits
LIST P=PIC18F452, F=INHX32, N=0, ST=OFF, R=HEX ; INCLUDE CONTROLLER
TYPE #INCLUDE P18F452.INC ; INCLUDE CONTROLLER FILE
; FUSE BIT SETTINGS
OBJECTIVE #1
Write a program in Embedded C or Assembly language to add B’10101010’ and B’01010101’. Display
the result of addition at PORTC and also simulate on PROTEUS.
OBJECTIVE #2
Make program on MPLAB IDE that blink LED on PORTB pin B0 also simulate on PROTEUS.
OBJECTIVE #3
Verify your code using Proteus. Again, make this program but this time put DELAY LOOPS in it.
OBJECTIVE #4
Now make this program but this time by using DELAY file.
OBJECTIVE #5
Blinking LED on PORTB Pin B0 when a switch is toggle between ON and OFF at PORTC Pin
C0.
WITHOUT DELAY:
Write a program that takes input from a push button when push button gives 0, it should
start blinking and if it gives 1, it should stop blinking.
Submission Details:
Lab manual
Code in Embedded C or Assembly language.
Proteus simulation circuit bitmap image (print screen and sniping tool’s images are
not acceptable)
IN LAB TASKS:
1)
TURNING PORTB ON:
3) BLINKING PORTA: