PDA

View Full Version : MPLAB / EEPROM Question



Art
- 12th April 2008, 03:05
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.

mister_e
- 12th April 2008, 10:25
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?

Art
- 14th April 2008, 06:16
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.