PIC programmer using the prop ?
Cluso99
Posts: 18,069
Has anyone done a pic programmer using a prop?
I found Leon's simple circuit and can probably duplicate the approx 13V volts required for the different pics and of course I have 5V available also. I don't want to reinvent the wheel, so to speak, if it has been done before.
FYI I am planning to use a PIC10F2xx (6 pin SOT23 and would like to program it with the prop) in a prop design. There are some issues as I can run this pic at 3V3 but I have to program it in-circuit using 5V and of course 13Vx.
Any prop software to do this would also be a help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
I found Leon's simple circuit and can probably duplicate the approx 13V volts required for the different pics and of course I have 5V available also. I don't want to reinvent the wheel, so to speak, if it has been done before.
FYI I am planning to use a PIC10F2xx (6 pin SOT23 and would like to program it with the prop) in a prop design. There are some issues as I can run this pic at 3V3 but I have to program it in-circuit using 5V and of course 13Vx.
Any prop software to do this would also be a help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Comments
I will post the details as soon as I tidy them up.
*Peter*
P.S. Here's a quick circuit I just did up that will do "production" burn on a PIC. With this circuit you can vary the VCC during verification to test the integrity of the data in varying conditions. VPP voltage of 0,5,13 etc is simply set by the DAC which is as accurate as the Prop's VDD. I will try to post some sample Spin code.
P.S. Oops! left out the gain resistors for the VCC opamp. This is set to a gain of 2 which means a max of 6V out at the pin.
Post Edited (Peter Jakacki) : 8/3/2009 2:29:27 AM GMT
As for hardware, it should have 150R resistors in series with ICSPDAT (& preferably ICSPDAT) because of 3V3 to 5V.
Since 5V is available on the prop proto pcb, I can just use a FET switch (maybe a 2N7000 ?). Likewise, if I use a 5V regulator with 2 resistors to raise the GND pin I can get 13Vx and switch with a FET also. Obviously will have to use a higher voltage DC powerpack for this application.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
*Peter*
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
What program do you use to draw your schematics?
·I would love to see the code as well
·
@mikediv: I don't have a lot to do with PICs but as far as I'm aware they are all very similar when it comes to incircuit programming. The RC DACs are easy to implement on the Prop and they allow the VCC and VPP to be programmed. Alternatively it is possible to have simple 2-bit resistor networks to program set voltages that are then boosted by the opamps. When I last used it I had some code written in Forth on an ARM processor but converting it to Spin is a breeze. The code included an "autoprogram" feature that detected the moment a chip was detected then waited for it to be stable and then did it's thing which made burning chips very simple and quick for production.
During programming the VPP supply current required is minuscule and so the opamp doesn't have a problem with that. Using opamps makes sense as they are cheap and provide the gain and buffering at the same time. For the VCC there isn't really much current required either but the NPN buffers the VCC in a classic opamp emitter follower fashion. The max voltage is set by the signal (3.3V) and the gain (x2).
I guess the circuit is simple especially considering that the VPP and VCC are software programmable. For a quick cheat if you only have 5V available then use a 9V battery from the 5V line to give you around a 14V supply. The battery should last quite a long time.
Production grade PIC programming circuit parts:
1 LM358
1 NPN
7 resistors
4 caps
COST < $1
However, I just use the PICKIT programmer these days as it is quick and simple, but my circuit does allow ICSP from the host CPU onboard.
*Peter*
Anyway, I will have to do the programming software. Had hoped someone may have done it :-( Of course, if I didn't ask, it would have been done before!
Now to see if I can squeeze enough code to boot a prop into that PIC ??? In case you hadn't guessed, I want to put one on the RamBlade, perhaps instead of the eeprom.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
The PIC10F2xx is available in SOT23-6 and DIP8 packages for about 50 cents. I want to use them in my prop boards, in particular the SOT23-6 versions. For this of course I need to program it in-circuit. It has an inbuilt xtal and software trimming to get it fairly accurate.
I have a few ideas for this chip to connect to the prop. Here are·some...
Now, all I have to do is get a few chips and write the programming software. The only hardware complexity is generating the 13V Vpp which is ultra low current. I think Peter's idea of using a 9V battery is fine, but regulate with a·8V2 (or 8V7)·zener diode and a switch.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBladeProp, RamBlade, TwinBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: Micros eg Altair, and Terminals eg VT100 (Index) ZiCog (Z80), MoCog (6809)
· Search the Propeller forums (via Google)
My cruising website is: ·www.bluemagic.biz·· MultiBladeProp is: www.bluemagic.biz/cluso.htm
Post Edited (Cluso99) : 8/15/2009 12:55:01 PM GMT