ICSP using a 16F84a to program 24CXX


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Smile It is 24CXX and DS1624 is just an example.

    Quote Originally Posted by skimask View Post
    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.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aftab View Post
    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.
    Are you using MeLabs PicBasic or PicBasicPro?
    Program the 24C04 as shown in which manual?

  3. #3
    Join Date
    Apr 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Arrow

    Quote Originally Posted by skimask View Post
    Are you using MeLabs PicBasic or PicBasicPro?
    Program the 24C04 as shown in which manual?
    This is microEngineering Labs Picbasic Pro v 2.46

    The sample code is on pp 53~56 of the spiral bound booklet that comes with it.

    An older PDF version of this is downloadable.

    thanks
    Aftab.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aftab View Post
    This is microEngineering Labs Picbasic Pro v 2.46

    The sample code is on pp 53~56 of the spiral bound booklet that comes with it.

    An older PDF version of this is downloadable.

    thanks
    Aftab.
    Ok, so you want to use the ICSP header, running into the PIC as it would be when you are re-programming the PIC using the JDM programmer...to pass the signals thru to "write to the 24xxx" (as opposed to calling it programming the 24xxx).

    As far as pp 53-56 in the manual goes, all I see is info on DATA, DEBUGIN and DEBUGOUT.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    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.

  6. #6
    Join Date
    Apr 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Question i2c with 16f84a in ICSP - stand alone.

    Quote Originally Posted by mister_e View Post
    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
    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

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    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?

Similar Threads

  1. Presetting Configuration Fuses (PIC Defines) into your Program
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 82
    Last Post: - 15th December 2013, 09:54
  2. 24Cxx copier with PIC 16F84A
    By the_kid25 in forum Schematics
    Replies: 7
    Last Post: - 28th October 2013, 09:05
  3. Replies: 1
    Last Post: - 23rd May 2009, 09:22
  4. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  5. Novice 16F83A BLINK LED program help
    By owali in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 25th July 2007, 05:02

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts