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

24lc256 to LCD

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



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message

24lc256 to LCD
PostPosted: Thu Mar 17, 2005 9:55 am     Reply with quote

How to load an image that this in a memoria I2C for a graphical display? Somebody can help me ?


Thanks

Orcino
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sat Mar 19, 2005 7:56 pm     Reply with quote

Not without a whole lot more information on your hardware.
Orcino



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message

PostPosted: Mon Mar 21, 2005 8:57 pm     Reply with quote

Hello Mark, I am using a 18F452, 24LC256 and a LCD with KS0108 128X64. I need load a image in 24LC to a LCD.

Very thanks


Orcino
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Mon Mar 21, 2005 10:20 pm     Reply with quote

Your first step is to take a look at the GLCD.C driver file. I believe this will work for a KS0108. Take a look at the glcd_pixel() function. This will allow you to set or clear pixels in the display. Write a small test program to set and clear some of the pixels. Once that is working, write another program to read and write to the eeprom. There should be plenty of examples to get you started. I would store each pixel as a bit in the eeprom. So you would read a byte and from that byte, set 8 pixels. You will also have to get the data into the eeprom. I would suggest using the uart to do this. Once all of this is working, take a close look at the glcd_pixel() function. It actually reads a byte from the controller, changes a bit and then writes it back. You can increase the preformance considerably by just writing the entire byte that you store in the eeprom to the display.
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