You are on page 1of 1

1 OBJECTIVES

1.1 1.2 2.1 2.2 2.3 2.4 2.5 To understand the development concept and testing the program by using PIC Development Board - PICDEV To learn how to download the program into the PIC chip PIC Development Board PICDEV MPLAB IDE Program MikroC. The PIC Development Board User manual Power supply 9V

2 EQUIPMENT

3 THEORY AND EQUATIONS 3.1 The program development PIC instructions set is very simple and it has only 35 instructions. To develop a system by using PIC, a user must have the suitable equipment. 4 OBSERVATION 4.1 When writing the code using assembly language and burn it into PIC 1) When using assembly language we find that the code he is longer than C because it is more detailed and it used for programming the microcontroller. Before we programmed these assembly language instructions into microcontroller memory, it has to convert to machine language. So that microcontroller easily understands and to burn it into PIC, needs through several steps. First, insert files into project and choose lab2asm.asm. Then at a configure select device that a PIC16F877A, after that configure the PIC development with the correct jumpers settings. Then convert assembly language to hex file and burn into PIC. Make the setting follow as lab sheet given. More important setup a write protection is off because when the write protection in set ON the PIC is can damage. Or error when the PIC want to format again.

2) written code using C, it is simpler because we have learned the past and the code long like an assembly language. To burn it into PIC also easy to do, we just compile the file that had saved and .hex file will created. Then just go to the MPLAB choose the file that created by Mikro C and burn it into PIC. This is easy to use but make sure the setting of the MPLAB must be careful. Make sure the clock bit is set as a lab given. If founded error the code must double check for comfirmation.

You might also like