Download as DOCX, PDF, TXT or read online from Scribd
Download as docx, pdf, or txt
You are on page 1of 3
MPLABX IDE for program development.
Step 1: Creating a New Project.
• Create a folder on the PC drive and give it appropriate name. • Now click on the MPLABX IDE icon and start the IDE. • Go to the File Tab. • Click on New Project.
Step1: Choose Project:
• Select : Microchip Embedded à Standalone Project. Click Next.
Step2: Select Device:
• Select: Family àAdvanced 8 Bit MCU (PIC18). • Select: Device: PIC18F4550. Click Next.
Step3: Select Tool: Simulator. Click Next.
Step4: Select Compiler àXC8. Click Next • Note: if you are developing a program using assembly language then select the compiler as àmpasm(v5.68)
Step5: Select Project Name and Folder.
• Give Project Name. • Select project Location (the project folder we created) using Browse Button. • Uncheck Set as main project option. • Click Finish.
Step6: Adjustment for Bootloader.(only for C programs)
• From the Projects window Right click on the projectnameand Go to properties. • Select XC8 linker. • In Option Categoriesàselect Additional Options. • In Code Offset: write 800.
Step 2: Opening an existing project.
• Go to the File Tab. • Select Open Project. • Browse to the location and select the projectname.X file (project file). Click on Open Project .
Step 3: Creating a new Source file and Header File.
• Go to the Project location in the Project window. • Click the + sign to open the project space. • Right Click on the Source Files folder (for a C file) and Header files (for a .h file). • New à C Source file / or C Header File.
Step 4: Compiling Project.
• Step1: Go to project window. Right Click on the project folder and select Build or Clean and Build.
Step 5: Finding the COM Port Number.
• Right click on My Computer à Manage. • The Computer Management window will open.
• Click on Device Manager à Ports (COM and LPT)
• Check for the USB Serial Port number assigned by the system.
Step 6: Programming the Hex File USING PICLoader.
• Connect the USB Cable to the Board. • Step 1: Double Click the PICloader.exe.
• Step2: Go to Programs à Settings.
• Select the USB to serial com port. Click OK.
• Step3: Go to Programs à Break/Reset Mode or Press F3.
• Step4: Press the Reset Switch on the Micro-PIC18F Board.
• Step5: Go to Programs àBootloader Mode or Press F4.
• Step6 : Select Hex file :
File àOpen àBrowse to location.
Project folder àdist àdefault->production.
• Step7: Go to Programs àWrite Device or Press F6
After successful writing it will display Write Complete at the bottom.
• Step8: Press Reset on the board to Run the program.
Peripheral Device Selection Matrix.
While using the peripherals for checking the output of the program please make the appropriate selection of peripheral switches SW21, SW22 and SW23.