Saturday 23 February 2013

WEEK FIVE


Bismillahirrahmanirrahim.

This week's post is about the PicKit and the MPLABs' software. Both of the software were for microprocessor programming. PicKit is used to create the source code or coding for the program and change the (.c) code to (.hex) code while MPLAB is used to burn the program to the IC. 

Here are step-by-step to do the programming:

choose the MPLAB IDE

this preview will show after that
 
At the toolbar, choose Project then Project Wizard to start build our project.

choose Project Wizard from Project

this preview will show

choose PIC16F877A

Then, click 'NEXT' until picture below shown. "Browse" to locate the folder that we want to save. 

"Browse" to locate folder to save 

save in 'testing' folder

Name the project in the destination folder.

name the project

Click 'NEXT' until see the picture below. Then, click 'FINISH'. 

finish of creating the destination folder

Finished creating the destination path for saving the program, the source code is added. For this post, the source code is downloaded at PIC16F Sample Source Code. The source code is in (.c). Else, the source code can be build. Click 'File' and then click 'New'. After save the source code, add the source code and start build it. 

source code added

 The source code is then opened. The picture below show the added source code.

the source code in the biggest column
The source code is the rebuilt by using the compiler to change from (.c) code to (.hex) code. The red button is then clicked. 

rebuilt the code with compiler 

If the source code is correct, the program is built. The 'Build Successful' is then shown in the 'Output' column. If not, the code must be repaired and must be compiled again until it is successfully build.

built success

End of the tutorial for build the source code. Then, the source code is burned in the microprocessor to see the result.


To be continued in the next post! :)

Barakallah.


No comments:

Post a Comment