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

LCD.C driver for multiple LCD panels?

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



Joined: 10 Mar 2006
Posts: 15

View user's profile Send private message

LCD.C driver for multiple LCD panels?
PostPosted: Thu Mar 16, 2006 7:05 pm     Reply with quote

This is a follow-up topic regarding driving multiple LCD panels (http://www.wrighthobbies.net/datasheets/VK2220.pdf) from one PIC18F452.

I neglected to mention that I'm using the built-in LCD.C driver. The issue seems to be that the enable pin is set high and low at different junctures in different routines in there. So you can't just turn it on or off.

I suppose I will have to customize the LCD.C routines to accept a display# parameter, and then change them all to address the enable pin for that display#.

Has anyone written a version of LCD.C for multiple displays?

Thanks!

//Cynthia
PICoHolic



Joined: 04 Jan 2005
Posts: 224

View user's profile Send private message

PostPosted: Fri Mar 17, 2006 6:54 am     Reply with quote

Let me give you a hint:

If you notcied in the LCD.c, they're using a structure mapped to a specific port. This particular structure has 7 significant bits and one unused bit. What you can do is to use this particular bit to enable a second LCD.

Note:
You may connect the LCDs on a bus.
You should be careful when reading the status of the LCDs (one at a time)

Good Luck
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