CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Program LCD messages into external EEPROM

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

Program LCD messages into external EEPROM
PostPosted: Mon Nov 14, 2005 6:03 am     Reply with quote

Hi,

I’m using the 18F6720 and I believe the 128KB flash program memory may not be enough for my project. I’m thinking of putting all the LCD pre-defined messages (about 30KB) into external EEPROM such as the 24xx512 which has 64KB.

Does anyone know how I can program these LCD messages into the 24xx512, so that the 18F6720 can read them?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Nov 14, 2005 5:29 pm     Reply with quote

Quote:
Does anyone know how I can program these LCD messages into the 24xx512.

1. You can buy a eeprom programmer.
Search Google for: "eeprom programmer" price

2. You can build one. There are many websites with home made
eeprom programmers that connect to the PC parallel port.
Do a search on Google for these words (with the quotes):
"eeprom programmer" "parallel port"

3. You could also design your own programmer. Use a PIC with the
CCS i2c routines to do the programming. Have it receive a file
over the serial port from a terminal program, and program the
bytes into eeprom. This might require some handshaking or
spacing between the bytes, to allow for the write programming time.
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Mon Nov 14, 2005 5:33 pm     Reply with quote

4. If you can afford it. And your into production((stable code)). You can have arrow do it for you.
http://www.arrownac.com/
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

PostPosted: Mon Nov 14, 2005 5:44 pm     Reply with quote

If your PIC has the means of connecting to the PC (such as RS232, USB, redio, etc), you can program the EEPROM thought the PIC. PIC would enter the "configuration mode", receive the strings from the PC and send them to the EEPROM via I2C.

By the way, Maxim has an app note describing a parallel port to I2C and SPI adaptor. It has the schematic and VB source code for the host PC application http://www.maxim-ic.com/appnotes.cfm/appnote_number/980
jecottrell



Joined: 16 Jan 2005
Posts: 559
Location: Tucson, AZ

View user's profile Send private message

PostPosted: Mon Nov 14, 2005 6:34 pm     Reply with quote

My latest project had similar issues. Luckily I managed to survive with just the PIC EEPROM. If I had reached the point where I needed to use an external EEPROM my plans were to:

Write a small program to load the external EEPROM with the data I needed. Use my project board as a EEPROM programmer to load the small number of EEPROMs for my project. Then reload the actual project firmware. Quite simple approach for small numbers. If you have large numbers all the previous suggestions, obviously, make more sense.

Good Luck,

John
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Mon Nov 14, 2005 7:13 pm     Reply with quote

Another technique is to extend a bootloader. PIC18F bootloaders use "type 4" records (extended address information) to identify the target space (such as Program Memory, EEPROM, Config bits etc). You could define you own type 4 record and when your bootloader sees this it knows to program the external EEPROM. I often use this technique for programming slave devices off the PIC.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
TL



Joined: 15 Sep 2003
Posts: 75

View user's profile Send private message

Thank you
PostPosted: Tue Nov 15, 2005 2:48 am     Reply with quote

Many thanks for all your helpful suggestions. We normally have test software programmed into the microcontroller to test its populated board before re-programming with the actual software.

Therefore, I think I’ll follow jecottrell’s advice in putting the LCD messages in the test software and write them to external EEPROM via I2C. We can then program the actual software to replace the test software in the microcontroller.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group