ICSP using a 16F84a to program 24CXX
Hello,
I want to program an I2C (24CXX) using 16F84a.
I want to write "Hello World!" to 24CXX.
Using a JDM programmer(from Olimex) I could program the 24c in ICSP using my computer's serial port.
Using the example that is there in the manual , I could program the 24C using all 8 pins with instructions going out to 24C from 16F84a. But how do I do a ICSP(In Circuit Serial Programming) of 24C ?
If this is the wrong place to ask the question -- where should I ask it ?
Sincerely
Aftab.
I did that, but it does not work
Quote:
Originally Posted by
skimask
If the programmer can do 24Cxxx types directly, then install a breakout header like you would for the PIC's ICSP, plug in and program like it was in the socket on the programmer.
I did that, but it does not work.
Do I need to do special coding (peek,poke,srout,...) to do an ICSP ?
Somewhere in JDM programmer, it says the voltage goes upto 13v.
I am no electronic geek - so do not understand much.
Any clue what might be the problem ?
Thanks
Aftab
http://ww1.microchip.com/downloads/en/DeviceDoc/31028a.pdf
Quote:
Originally Posted by
skimask
You probably have to add another header or something to cutoff the outside signals going to the 24xxxx itself. You're probably trying to feed power/signals to the whole board, not just the 24xxx, PIC fires up, signals start interfering with each other, etc. Try pulling other chips out, etc.
The JDM programmer voltage is only for the PIC (or maybe other MCU's). 13v would most likely kill a 24xxx.
PP 11 of this:
http://ww1.microchip.com/downloads/e...Doc/31028a.pdf
Shows some driver board - would that be helpful ?
Thanks
Aftab
It is 24CXX and DS1624 is just an example.
Quote:
Originally Posted by
skimask
Now I guess I don't know what you really want...you start off talking about 24xxx eeproms and now throw a DS1624 into the mix.
What do you really want here?
I only want to program 24Cxx. The DS1624 is just an example.
I was able to program the 24C04 ic as shown in manual. But I cannot do it in ICSP mode. The example with DS1624 shows how to read/write(?) in ICSP mode(?).
So, for now need to figure out how to program the 24Cxx using i2c commands - as i2cwrite does not seem to work in ICSP mode.
Thanks
Aftab.
i2c with 16f84a in ICSP - stand alone.
Quote:
Originally Posted by
mister_e
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.