Anda di halaman 1dari 1

POLYTECHNIC UNIVERSITY OF THE PHILIPPINES

COMPUTER ENGINEERING DEPARTMENT CPO102L FINAL REPORT EXERCISE NO1.


NAME: _ANGELICA V. OLITOQUIT SECTION: BSCOE V-5
Format & Presentation : ________ Timeliness : ________ Correctness : ________ Summary & Conclusion : ________ Machine Code:________

INSTRUCTOR: ENGR. ROLITO L. MAHAGUAY

FINAL SCORE: OBSERVATION: As we familiarize how to use the MPLAB, we have now the better idea on understanding it and how to build the codes we use to write. The device was change as we used PIC18F877 for our experiment. Of course, if we used this device, we needed to encode the definition of the processor by the list of its directives and also, the specific variable definition of the processor and they must match upon the selected device and must be a constant for this particular device. We can see that we can observe the clock cycle and the time by using a stop watch window. We used the watch window to show the registers needed such as WREG, TRISB, and PORTB. The bcf STATUS, RP1 is the first instruction and here we were started. As we look for some observations, we looked at the watch menu and we saw that the contents of TRISB are all 1s (11111111) while WREG and PORTB are both 0s (00000000). As we go further for next instruction, the contents became all same. At 0.2ms, the instruction became 1. Repeated cycle makes it incremented to 1 and added 0.2ms every time until it reached the last instruction which is the sleep. In the fourth instruction, we have set 11000011 in WREG as the fifth instruction set it. On the last instruction, both registers WREG and PORTB are the same and remains unchanged even it was being reset. As it reached sleep, the program ended and we observed all the cycles from the start. All in all, the time of clock cycle of the entire program execution is 1.2ms for having 6 instruction cycles.

CONCLUSION: The use of directives and instruction and how to distinguish it made me understand further this experiment. For example, on where we are going to start the program. We cannot start the program on org 00h because it is a directive, not a instruction. It is just the one who tells the assembler where to start, and for this experiment, org 00h tells the assembler to start on STATUS, RP1. Also, I can actually conclude that the default value of the microcontroller which is located in the bank 1 is 111111111 which became the content of the TRISB ,as WREG and PORTB are 00000000. I conclude that from this experiment, the time on the clock cycle will give 0.2ms, and will increments the instruction to one as it reaches the final cycle and the WREG and PORTB remains the same as it reaches sleep.

Final Report

Page 1 of 1

Anda mungkin juga menyukai