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

Help for LCD Driver

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



Joined: 12 Aug 2010
Posts: 119

View user's profile Send private message

Help for LCD Driver
PostPosted: Tue Jul 24, 2012 12:24 am     Reply with quote

Hi,

I'm using pic18F47K22 for my project.
My complier version is PCWH 4.124.

I want to use the LCD Driver inside the microcontroller, but i'm not sure how to do that. I don't want to use flex_lcd.h

please suggest how to do that.

sid.
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Jul 24, 2012 5:06 am     Reply with quote

Writing your own LCD driver is easy!
Just get the complete datasheet/manual for the LCD you've bought and read it about 20-30 times. Be sure to understand the various modes,setups, and commands, then cut code to send the right bits to the right pins and the right times.
Be aware of any 'minor' details like timing, contrast values,VCC/IDD requrements.

Report back when done and post your driver in the 'code library' for others.
Ttelmah



Joined: 11 Mar 2010
Posts: 19506

View user's profile Send private message

PostPosted: Tue Jul 24, 2012 8:02 am     Reply with quote

Whoa.

flex_lcd, and lcd.c, are for _external_ LCD controllers.

I think the original poster is talking about wanting to use the internal LCD controller that is built into some chips?. If so, the compiler commands are:

setup_lcd
lcd_load
lcd_symbol.

and #int_lcd

However there is no such chip as the 18F47K22. Some chips have an LCD controller (PIC 16C92x, 16F91x & 16F193x for example). Otherwise you need to use an external controller, and as such there is no 'LCD Driver inside the micro-controller', and a driver like flex_lcd, is needed.
Yes, it is easy to replace, and for some jobs (like writing the LCD synchronously on an interrupt), writing your own driver is the way to go, and with the data 'not hard', but for 99% of text LCD applications, flex_lcd, is much easier, and _reliable_.
Possibly the PIC18F87J72?. This has an LCD module.

Best Wishes
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