You are on page 1of 2

CPE102L FINAL REPORT

Computer Engineering Department

CPL231L FINAL REPORT


Experiment 1: MPLAB IDE FAMILIARIZATION
Name: MELAD, Dan Jarylle B.
Student No.: 201210147
Date Performed: November 27, 2015
Date Submitted: December 4, 2015
Faculty Name: Engr. Giezel Madurar

Grade:

Group No. 5
Section No. L42

Format/Presentation (10%) : ________


Timeliness
(20%) : ________
Correctness (10%) : ________
Analysis
(30%) : ________
Conclusion (30%) : ________
Experiment Grade :

_________

ANALYSIS
The experiment deals with the introduction of using the MPLAB and creating a project file. MPLAB creates
programs using different instructions like addlw, addwf, movlw, movwf, subwf, andlw, and etc. MPLAB is just
like a text editor including simulator and other components that help the programmer to test the operation of
our programs. During the experiment we have different steps that we have to consider in running and creating
the program. First, is to create a set of instruction given in the laboratory manual as the source codes then after
that we have to save the file as ASM file to build its project and then creating the project file, the
microcontroller to be used is the PIC16F877A. After creating the file we and program is built we may now
perform the simulation and testing if our program is running simultaneously if not we may check or perform
the debugging to find out the errors.
For the given exercise in the experiment the student have to simulate the given program 1 and 2 given in the
experiment, wherein we need to find out the effect of the affected registers for each instruction the WREG,
PORT B, Status Flag, and the PCL. During the simulation we have observed the changes with the values in
status flag.

CONCLUSION
In this experiment the student were able to familiarize in creating a simple program and creating a project
file. The student also concluded that the status flags which is in binary form shows 8-bit digit wherein the first
three digits from the right is considered the carry flag, digit flag, and the zero flag. For applications, these can
be used for lightning delays like in traffics lights, emergency lights and etc.

CPE102L FINAL REPORT


Computer Engineering Department

CPL231L FINAL REPORT


Experiment 2: PROGRAM SIMULATION
Name: MELAD, Dan Jarylle B.
Student No.: 201210147
Date Performed: November 13, 2015
Date Submitted: December 4, 2015
Faculty Name: Engr. Giezel Madurar

Grade:

Group No. 5
Section No. L42

Format/Presentation (10%) : ________


Timeliness
(20%) : ________
Correctness (10%) : ________
Analysis
(30%) : ________
Conclusion (30%) : ________
Experiment Grade :

_________

ANALYSIS
In this experiment, the students built a program and create a watch window to display the following file
registers to observe the changes to the different variable during the simulation of the program these variables are
NUM1, NUM2, NUM3, SCORE, and STATUS. The given experiment has two given exercise the program 1
and the program 2.
In program 1, the student changed the value of SCORE to 245 then starts to simulate the program. The
student observed that the function of the given program in the first loop is that when the output doesnt reach its
negative value it will simultaneously loop the program until it reach its minimum value then it will stop. Same
process also applies to the next loop until the program reaches the given input but this has a more loop than the
first loop.
In program 2, same processes were considered in the simulation of the program wherein other addresses in
the RAM were considered which can be seen at the file register window from the view menu. During the
simulation the student changed the value of FSR to 30 and the INDF to AA. The student observed that the
affected file registers in the RAM are the WREG, PCL, STATUS, and FSR these file registers continuously
changing.

CONCLUSION
In this experiment, the student concludes that use of looping is just repeating the commands in the given
program until it satisfies the given condition then it will proceed to the next command. These loops depend on
the given commands to the program.

You might also like