Question

please explain the basic steps of programing a pic18 microcontroller in mplab. I have zero knowledge...

please explain the basic steps of programing a pic18 microcontroller in mplab.

I have zero knowledge except for c programing, thanks!
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Basic Steps of Programing a pic18 microcontroller in mplab.

Step1: Start MPLAB X

Step 2: Open a project by using Project Wizard.

Step 3: Choose the PIC that you want to program with. Example : PIC18FXXXX

Step 4: Choose the Active Toolsuite. For PIC18F the active tool suite is Microchip C18 Tool suite. If the assembler , linker, C Compiler and libririan is in the Toolsuite Contents, then proceed to the next button.

If it is not click Browse C: ->MCC18 :-> mpasm ->MPASMWIN.exe. this is for assembler toolsuite.Every toolsuite is found at MCC18

Step 5: Create a folder or a file, so that you can save your work in to that file.Ex: Testing Folder

Step 6 : Then Create a source file. The source file must be in .c format if you are using C Compiler.

Step 7: Create a Linker Script. i.e. Right click on the Linker Script, choose add files: C->MCC18->lkr->18FXXX .lkr

Now you can write your program in to the editor.

Step 8 : Is to add the files in directories at the build options. Click Project -> build options-> project -> shows the directories for:

in the directory, there are three parts we need to add file in , which are: Include Search path, library search path and linker script search path.

All the files we need to add in can be found in MCC18 file.

Step 9: Last step is to click the build function. if it is build successfully the .hex file will automatically generate in the testing folder.

Hex file is a file format for conveying binary information for programming PIC

Add a comment
Know the answer?
Add Answer to:
please explain the basic steps of programing a pic18 microcontroller in mplab. I have zero knowledge...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT