MPLAB / EEPROM Question


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2003
    Posts
    985

    Default MPLAB / EEPROM Question

    Hi Guys,
    It's been a while since I got my hands dirty with pics,
    how easy it is to forget something that was so fluent a few years ago!

    Anyway, I wish to write large amounts of arbitrary data to a 24LC64 I2C EEPROM,
    and noticed that MPLAB has the option of building a project for some EEPROMS in this family.

    All I'd like to know is how I format my data in the text file to the project will compile into
    a hex code ready for writing to the EEPROM with a pic programmer.

    It would be ever so tedious to edit the data directly into a pic programmer window,
    and seems unreasonable amount of work to have to write a program that translates data to
    a standard hex file.
    Any help on this would be appreciated.

    I AM willing to write a program to format the data into whatever type of text file MPLAB expects though.

    Cheers, Art.

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


    Did you find this post helpful? Yes | No

    Default

    I see.. program EEPROM with a PIC programmer... which one?

    The simplest way is to use BIN format. it's just one long line of consecutive BYTEs. not much. As long as your Device programmer utility support it.. you should be in business... unless.. Google "Intel HEX" files or format .. you should find the whole explanation on how to format it. Not that hard.

    I'm not sure why you don't want to use a HEX editor... VB software + PIC combination? Why not?
    Last edited by mister_e; - 12th April 2008 at 10:33.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    Hi, thanks for the reply, I figured it out, doing pretty much what you said.
    Used a program of my own to format the data as a bin file, and to my suprise
    it opened with my pic programming software (ICprog).

    Thanks all the same for the reply
    I didn't even get a solution as simple from the Microchip forum.
    Cheers, Art.

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  4. EEPROM Question
    By pramarn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th October 2006, 03:24
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

Members who have read this thread : 1

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