Page 1 of 2

help with programing

Posted: Sun Apr 10, 2011 1:30 am
by rd1196
witch are the pic's outputs I have connect to the pickit2?

Re: help with programing

Posted: Sun Apr 10, 2011 2:06 pm
by brad
The image is a little small but it should do the trick :D

Image

Re: help with programing

Posted: Mon Apr 11, 2011 12:39 am
by rd1196
thanks a lot

Re: help with programing

Posted: Tue May 10, 2011 7:37 am
by rd1196
hey brad, i really don't have a clue about how to program the pic you think you can tell me where to find a good tutorial or tell me witch part of the source code should i copy to my pic

Re: help with programing

Posted: Tue May 10, 2011 9:51 pm
by brad
rd1196 wrote:hey brad, i really don't have a clue about how to program the pic you think you can tell me where to find a good tutorial or tell me witch part of the source code should i copy to my pic
Certainly!

http://www.bradsprojects.com/electronic ... rials.html

Re: help with programing

Posted: Sat May 14, 2011 11:21 am
by rd1196
is there a way you can upload the exact code so i can copy it?

Re: help with programing

Posted: Sat May 14, 2011 7:16 pm
by bitfogav
All the info you should need is on Brads tutorials :)

heres the Assembly code for the flashing LED. Your still need to download MPLAB (compiler) to turn the code into HEX file so you can then use your pickit2 to load the HEX file onto your microchip.

MPLAB IDE v8.70 can be downloaded from the bottom of this page
http://www.microchip.com/stellent/idcpl ... t=SW007002

Heres the asm file (ZIP) from Brads flashing LED tutorial2:
tutorial_2_led_flasher.rar
(2.07 KiB) Downloaded 1283 times

Re: help with programing

Posted: Mon May 16, 2011 10:04 am
by rd1196
I downloaded the MPLAB and I opened the source code on it but how do I turn it into a hex file?

Re: help with programing

Posted: Mon May 16, 2011 3:25 pm
by brad
Have a read through tutorial 1 and 2 it has all the information in a handy step by step format :)

Re: help with programing

Posted: Tue May 17, 2011 7:12 am
by rd1196
Thanks that tutorial helped me understand a lot of things but I still don't quite know what to do after I opened the source code by MPLAB IDLE, I mean how do I copy it to the pickit2

Re: help with programing

Posted: Wed May 18, 2011 9:07 am
by rd1196
sorry I forgot to read tutorial 2 but now i know how to turn it into a hex file. I have a problem connecting the chip to the pickit2 it says device no device detected even if my pic is connected to the program

Re: help with programing

Posted: Wed May 18, 2011 10:41 pm
by brad
Could you please take a screenshot for us just to see exactly what is happening?

Re: help with programing

Posted: Fri May 20, 2011 10:35 am
by rd1196
hello brad i wanted to ask you if you can program the microchip while its in the circuit connected to everything. if so how do you do it

Re: help with programing

Posted: Sat May 21, 2011 7:23 am
by brad
You certainly can!

you just need to have the pickit2 connected as the image shows above. It does not matter that the microcontroller is still in the circuit :)

Re: help with programing

Posted: Mon May 23, 2011 8:26 am
by rd1196
hello brad

I dont know why when i click import hex file it says device error, hex file not loaded