http://www.ic-prog.com/index1.htm
http://www.ic-prog.com/index1.htm
If you're looking for a simple solution, you could skip the PIC and USE ic-PROG (or PONY-PROG) with a SI- Interface
http://www.lancos.com/siprogsch.html
http://www.ic-prog.com/index1.htm
http://www.ic-prog.com/index1.htm
If you're looking for a simple solution, you could skip the PIC and USE ic-PROG (or PONY-PROG) with a SI- Interface
http://www.lancos.com/siprogsch.html
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi Steve,
Thanks for the links.
What I am trying to do is - I guess you can say that a stand alone i2c programmer for 24Cxx using ICSP.
The following link has the schematic on pp 35:
http://www.imagesco.com/microcontroller/pbc_man.pdf
(the same is on pp 54 of my book)
Also on:
http://www.melabs.com/resources/pbpmanual/
I have successfully wrote/write/programmed 24CXX using that. BUT I want to make one that can do the same in ICSP (In-Circuit Serial Programming).
And I guess that is more complicated. I can do the ICSP using ponyprog/icprog using the ICSP header of olimex board. Interestingly it needs only 3(three wires) - ground,data and clock -- that goes to pin 4, 5 and 6 respectively-- But cannot do the same with my 16f84a programmer. There are few caps, resistors and transistors on the board on which the 24CX is mounted and with drawing power from these three pins, power are supplied to rest of the pins of 24CXX. I want to do the same that olimex icsp is doing. Do the same using my 16f84a.
---------|....................................|--------|
My ........|---------------gnd--------|.24cxx..|
16f84a ...|---------------dat--------|..........|
---------|---------------clk--------|--------|
[DOTS are actually blanks i.e. nothing]
I presume I need to do something like start,stop,ack,... that is used in i2c programming. Some lead would help me.
My knowledge of the exciting world of pic is till now limited to blinking leds and prog one 24cxx on board using the schematic that comes e pbp.
Thanks
Aftab.
Last edited by aftab; - 4th April 2007 at 01:18. Reason: misaligned ascii art
I guess I'm still missing something here...
1) Do you want to build a stand-alone (no PC required at all) 24xxx programmer that would have a program already loaded into it, ready to program more 24xxx chips? Basically nothing more than a 24xxx chip copier...
2) Do you want to build you own programmer, capable of only doing 24xxx type chips with a PC connected?
3) Am I still missing a piece of the picture?
Hi - no you are not missing anything. Only thing is my poor way of asking question.
1) Yes - no PC required at all. I program the 16f84a once through PC and then it keeps programming 24xxx(s). And basically it is nothing more than a 24xxx chip copier/firmware updater.
2) That would be nice - but PonyProg can do that using olimex JDM programmer board. But need a PC with com port for that. Parallel ports are gone and com/serial port almost gone. USB is still expensive.
3) So I guess I have been able to give the picture.
This is like:
http://www.winpicprog.co.uk/pic_tutorial_i2c_board.htm
But using only 3 wires instead of 4.
Dat/CLk provides the +ve which is kept in capacitor, transistor and powers the 24cxx. Gnd is Gnd.
Three wire works for JDM program board of olimex - not my poor 16f84.
Thanks
Aftab.
Yes.
Now I program the 24 using Olimex JDM programmer:
http://www.olimex.com/dev/index.html
Using the ICSP header I connect them as:
http://www.olimex.com/dev/images/pic-icsp.gif
3-Gnd-->gnd of 24CX
4-PGD-->Data of 24CX
5-PGC-->Clk of 24CX
Using windows Pic progarmming software, I can program the 24X
But not by 16f84a.
Could this be a voltage issue ? or Should I try something else than i2cwrite ?
Thanks
Aftab.
SDA and SCL pin must be pull-up with resistors... as in the manual.
The code example in the manual should work AS-IS
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks