Professional Documents
Culture Documents
Mic511 Pic Lab 1
Mic511 Pic Lab 1
Group Leader:
Group Members:
Score Table:
EXPERIMENT NO. SCORE
TOTAL SCORE
PERCENTAGE
Instructor’s Remarks:
EXPERIMENT NO. 1
All LED’s Turn On
Objective:
• Create a program that will set all of the pins of port B to ON.
void main() {
TrisB = 0b00000000;
PortB = 0b11111111;
}
EXPERIMENT NO. 2
Odd LED’s Turn On
Objective:
• Create a program that will set all the odd numbered pins of port C ON and all of the even pins
OFF.
Objective:
• Create a program that will loop the blinking of LED’s indefinitely. The program will turn ON all the
pins and then OFF again.
Objective:
• Create a program that will loop indefinitely. The program needs to turn ON all the pins of port B
and OFF again for 1 second.
Objective:
• Create a program that will loop indefinitely. The program will turn all the pins of port B ON and
then off again. The program must have an ON delay of 1.5seconds and an OFF delay of 0.5
seconds.
Objective:
• Create a program that will loop indefinitely. The program will alternately turn ON and OFF the odd
and even pins of port C.
Objective:
• Create a program that will loop indefinitely. The program that will turn ON and then turn OFF the
LED at port D starting at RD0 up to port RD7 and traversing down the opposite path.
Objective:
• The program turns ON all of the LED connected at port B and start turning OFF the LED down
the path from RB0 until RB7. This program must loop indefinitely.
Objective:
• The program to be written for this experiment must execute 10 times. The program will turn ON
and OFF the pins of port C. This program must have an ON delay of 2 seconds and an OFF of 1
second.
Objective:
• Write a program that can will count in binary for 15 repetitions. With the output LED connected at
port C, the program must have an ON and OFF delay of 1 second.