0

Programming the PIC
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Programming the PIC

by minty maker on Tue Apr 12, 2005 10:36 pm

OK, so I have soldered the PIC onto the board, but I have no clue how to program it. Can anyone offer assistance? Is there a part number for the SIP?
minty maker
 

by minty maker on Thu Apr 14, 2005 12:05 am

Anyone please?
minty maker
 

by adafruit on Thu Apr 14, 2005 2:17 am

minty maker wrote:Anyone please?


you can buy female sip headers from any electronics catalog.

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by minty maker on Thu Apr 14, 2005 8:28 pm

Thanks,

So what do i do after i solder the SIP on? As in, how exactly do i get the sofware onto the chip.
minty maker
 

by presidentpicker on Thu Apr 14, 2005 10:06 pm

get this book http://www.amazon.com/exec/obidos/tg/de ... 8&v=glance besides a good reading it includes a PCB to make a parallel port pic programmer
presidentpicker
 

by Student on Sat Apr 30, 2005 1:04 am

Does PGD and PGC translate to Data and Clock, respectively? I have a programmer, and the connection lables are _MCLR, RB6 (Clk), RB7 (Data), Vdd, and Gnd (Vss). It does not say anything about ICSP, but I'm guessing if I just make the connections to these pins, I will get the desired result. Is this correct? Thanks
Student
 
Posts: 45
Joined: Tue Apr 12, 2005 4:40 am
Location: CA

by ryder1650 on Tue May 10, 2005 3:20 pm

Hello,
I have an ICSP programmer and I had a few questions.

1. the programmer has GND, VCC, CLK, DAT, VPP, instead of the names listed on the fabrication site, which of these coincide to the names on the ladyada site.

2. which holes on the board are for each connector?

3. Do i have to hook it up to an external power source, or can i use the programmer to supply power?
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by ryder1650 on Tue May 10, 2005 3:32 pm

OK, i am getting it to read, but its not writing, which wires would be incorrectly placed? its supposed to be 0000 right, when i read?
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by ryder1650 on Tue May 10, 2005 9:02 pm

OK, nevermind, its not reading it at all, I am using the K128 programmer that xoxota suggested. Can you help me with getting it to work please. Do you need to hook it up to an external power supply?
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by ryder1650 on Wed May 11, 2005 12:12 am

Please, can anyone help.
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by ryder1650 on Wed May 11, 2005 1:00 pm

on the three pin header I have connected MCLR the left pin, PGD to the middle and PGC to the right one. On the bottom left I connected GND to the middle pin on the 3 pin header where the power switch goes and I connected VCC to the (-) end of where the batter goes.

When I do this the MicroPro software and the tinybld do not see the PIC. What could I be doing wrong?
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by terpDriver on Wed May 11, 2005 2:52 pm

I'm still waiting for my boards so I haven't tried it yet, but these are the notes i've made so far:

Code: Select all | TOGGLE FULL SIZE
 
    ___________________
   /                    \
 /                       \
|       O     O     O    |   
|      MCLR/  PGC/  PGD/ |
|       Vpp    RB6   RB7 |
|                       |
| []                    |
| [] Vdd                |
| []                    |
|                       |
| O GND/Vss             |
| O                     |
|_______________________|
terpDriver
 
Posts: 24
Joined: Wed Apr 27, 2005 1:00 pm

by ryder1650 on Wed May 11, 2005 8:57 pm

Thanks! I flipped the Ground and the VCC. It works finally, woot.
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

by terpDriver on Wed May 11, 2005 10:58 pm

What about PGD and PGC? did you have to flip them too? I see that you have them different than what i have in my notes.
terpDriver
 
Posts: 24
Joined: Wed Apr 27, 2005 1:00 pm

by ryder1650 on Wed May 11, 2005 11:12 pm

terpDriver wrote:What about PGD and PGC? did you have to flip them too? I see that you have them different than what i have in my notes.


Your diagram was correct. Thanks!
ryder1650
 
Posts: 42
Joined: Tue May 10, 2005 2:12 pm

Please be positive and constructive with your questions and comments.