PDA

View Full Version : OT: EEPROM setup in MPLAB ???



Art
- 4th June 2005, 10:05
Hi Guys,
I'm having a little trouble with the initial setup of a 12c serial eeprom
in MPLAB. I've tried this:

org (1 *256) ; block = 1
;---------------------------------------------------

DT b'00101100' ; 2c
DT b'10101010' ; aa
DT b'00000100' ; 04
DT b'11001100' ; cc
DT b'00011101' ; 1d
DT b'01010010' ; 52
DT b'10011000' ; 98
DT b'01010011' ; 53 ..... and so on

But when compiling it, I get
"Undefined processor type" messages for every line.
I could enter these values manualy into the pic programmer window,
but I'm sure MPLAB can do it since there is provision to select eeproms
as a processor type when creating new projects.
Any ideas??
Cheers, Art.

mister_e
- 4th June 2005, 10:13
I really want to help you but i'm really not sure of what you want to do so, could you give more details... wich EEPROM or PIC you want to program /edit.

Art
- 4th June 2005, 11:02
Hi,
I've got a 24LC65B in this case, and I have pic routines that can read and
write to I2C EEPROMS, but I have data to program to the EEPROM initialy
so that the data on it can be used by the pic at run time.

short version:
I have a big table of values that I need to make a 24LC65 hex file out of using MPLAB.

mister_e
- 4th June 2005, 11:22
in this case MPLAB can't help you. You need a EEPROM programmer/reader like Elnec, BKPrecision or else. There's some free stuff and easy to build like IC-Prog or Pony Prog with SI interface or JDM.

Free softwares:
Pony Prog: http://www.lancos.com/prog.html
IC-Prog:http://www.ic-prog.com/index1.htm

SI interface :
http://www.lancos.com/siprogsch.html

JDM interface :
http://www.ic-prog.com/index1.htm

OR, still use IC-Prog or Pony-Prog software to edit your EEPROM dump, use your PC to send the whole EEPROM dump to your PIC, then from your PIC to your EEPROM. In this case, some VB or else PC LANGUAGE knowledge are needed.

Art
- 4th June 2005, 23:39
Bummer,
Funny how some seriasl eeproms are listed as devices in older vers of MPLAB.

I think the next easiest approach without PC programming is to send the
table out of a PC serial port with hyperterm to a pic who's sole job it is
to listen for data and write the eeprom.