Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

MIC511 MICROCONTROLLER SYSTEMS

Instructor: Mr. Roman M. Richard, CpE

PIC Microcontroller Experiments


PIC 16F877A
Group Evaluation Form

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.

Construct the circuit as shown below:

What program was used to achieve the objective?

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.

Construct the circuit shown below:

What program can be used to achieve the objective?


EXPERIMENT NO. 3
ON and 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.

Construct the circuit shown below:

What program can be used to achieve the objective?


EXPERIMENT NO. 4
Current Sinking

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.

Construct the circuit shown below:

What program can be used to achieve the objective?


EXPERIMENT NO. 5
Turn ON and OFF Delay

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.

Construct the circuit shown below:

What program can be used to achieve the objectives?


EXPERIMENT NO. 6
Alternating Odd and Even ON LED

Objective:
• Create a program that will loop indefinitely. The program will alternately turn ON and OFF the odd
and even pins of port C.

Construct the circuit shown below:

What program can be used to achieve the objectives?


EXPERIMENT NO. 7
Running Lights

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.

Construct the circuit shown below:

What program can be used to achieve the objectives?


EXPERIMENT NO. 8
Fading LED Loop

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.

Construct the circuit shown below:

What program can be used to achieve the objectives?


EXPERIMENT NO.9
FOR Loop

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.

Construct the circuit shown below:

What program can be used to achieve the objectives?


EXPERIMENT NO. 10
FOR Loop Binary Counter

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.

Construct the circuit shown below:

What program can be used to achieve the objective?

You might also like