ICSP using a 16F84a to program 24CXX


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by aftab View Post
    PP 11 of this:
    http://ww1.microchip.com/downloads/e...Doc/31028a.pdf

    Shows some driver board - would that be helpful ?

    Thanks
    Aftab
    Have you got the datasheet for the 24xxx handy?

  2. #2
    Join Date
    Apr 2007
    Posts
    26


    Did you find this post helpful? Yes | No

    Question Trying

    Quote Originally Posted by skimask View Post
    Have you got the datasheet for the 24xxx handy?
    Hello,

    I have the data sheet for 24cxx.

    I think i2c uses very few commands to communicate. Like start,stop, ack, etc.

    I came across an article by Jonathan Zacharko in the board of Reynolds Electronics. It shows how to communicate with DS1624 using I2c(dont have the URL, I had googled it and printed in ms word without url). It is interesting.

    Just to start - I need to send a few bytes or just "A" to it and write it using the i2c protocol.

    Trying for that and will try to post my progress - meanwhile any suggestion would help me.

    Thanks - and thanks for so quick responses.
    Aftab.

    The URL is:
    http://www.rentron.com/PicBasic/i2c_communication.htm
    Last edited by aftab; - 3rd April 2007 at 11:06. Reason: found URL

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    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?

  4. #4
    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.

  5. #5
    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?

  6. #6
    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.

  7. #7
    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.

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