PICKit 3 Integration with MikroE compilers.

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

PICKit 3 Integration with MikroE compilers.

Postby Brian Griffin » Sat Dec 03, 2011 7:24 pm

Some of you might be using the MikroE compilers, so since there is no reliable PICKit 3 program available, you must have to manually use the command line version of the PICKit 3 program. First, go to the Tools->Options (or hit F12).

Afterwards, click on the "Tool0" and modify the tool name. (In this case, "PICKit 3")

You can modify the shortcut as you wish.

Then on the screen, key in something like the screenshot (in attachment):

Assuming if you have MPLAB IDE installed already, the PICKit 3 command line program is inside as shown in the "File Name" box.
(Remove the (x86) if your operating system is a 32-bit one).

Then in the "Parameters" box, change the bolded "-P32mx795f512l" to a desired microcontroller model, example: "18F45K20". The command "-e", "-m" and "-l" means to erase all the flash, program the device in all memory areas, and finally, release from reset.

When you want to program the device immediately, just press your selected shortcut key.

Hope that helps you in using the PICKit 3 in this compiler. :)
Attachments
Clipboard01.jpg
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PICKit 3 Integration with MikroE compilers.

Postby robosang » Sat Dec 03, 2011 8:31 pm

Brian, thanks for sharing. Though I din use MikroC, but curious to know can it integrate with PICkit2?
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PICKit 3 Integration with MikroE compilers.

Postby Brian Griffin » Sun Dec 04, 2011 12:57 am

robosang WROTE:Brian, thanks for sharing. Though I din use MikroC, but curious to know can it integrate with PICkit2?


PICKit 2 is much easier.

1.) Fire up the PICKit 2 program.

2.) Compile the hex in MikroC first.

3.) Then in the PICKit 2 program, click "Auto import Hex + Write Device". Upon clicking on this, find the location of the desired hex file. Press OK.

Finally, everytime you compile the program, it automatically downloads the program into the microcontroller. :)

Due to the external program which is the PICKit 2 software, it isn't necessary for it to be integrated in MikroC.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: PICKit 3 Integration with MikroE compilers.

Postby robosang » Sun Dec 04, 2011 9:02 am

Oh, brian, creative.... I know how to use the auto-load feature on PICkit2 :D But never think it can be integrated in such a way, thanks again for the sharing. :D
robosang
Expert
 
Posts: 1239
Joined: Wed Jun 10, 2009 5:37 pm

Re: PICKit 3 Integration with MikroE compilers.

Postby ober » Mon Dec 05, 2011 2:38 pm

Brian, thanks for sharing!
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 3 guests

cron