|
|
View previous topic :: View next topic |
Author |
Message |
Sid2286
Joined: 12 Aug 2010 Posts: 119
|
Help for LCD Driver |
Posted: Tue Jul 24, 2012 12:24 am |
|
|
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: 9243 Location: Greensville,Ontario
|
|
Posted: Tue Jul 24, 2012 5:06 am |
|
|
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: 19539
|
|
Posted: Tue Jul 24, 2012 8:02 am |
|
|
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 |
|
|
|
|
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
|