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 support@ccsinfo.com

LCD with PIC16F882

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



Joined: 01 Jun 2012
Posts: 4
Location: India

View user's profile Send private message

LCD with PIC16F882
PostPosted: Fri Jun 01, 2012 3:26 pm     Reply with quote

Can someone help me out with how to interface an LCD with PIC16F882.
Mike Walne



Joined: 19 Feb 2004
Posts: 1785
Location: Boston Spa UK

View user's profile Send private message

PostPosted: Fri Jun 01, 2012 3:35 pm     Reply with quote

You need to tell us which LCD, complier version etc.

Do a search on this forum, you'll find loads of samples.

CCS also provides some with the compiler.

Mike
naveen13m



Joined: 01 Jun 2012
Posts: 4
Location: India

View user's profile Send private message

PostPosted: Sat Jun 02, 2012 2:59 am     Reply with quote

I'm using CCSc 4.114 and I want to interface a 16x2 lcd with PIC16f882.
Ttelmah



Joined: 11 Mar 2010
Posts: 19337

View user's profile Send private message

PostPosted: Sat Jun 02, 2012 3:39 am     Reply with quote

lcd.c with the compiler, or the flex_lcd driver in the code library.
The latter is more flexible (hence the name....), allowing various bits to be used on multiple ports.
You need just the four high data lines connected to four pins on the PIC, the register select line, the enable line and (optionally) the R/W line. The pins used are in the text at the top of the files for each driver, and you can change them to suit yourself.
Other connections. +5v, GND, and Vo (the contrast supply). The voltage needed on this, depends on the LCD model involved. A lot of modern LCD's work fine with this set to 0v. Many older models require a -ve voltage (typically about -0.4v) on this.
You need to start by getting the data sheet for the exact model LCD you have. 99% of these are basically clones of the Hitachi controller chip, that was launched perhaps 30 years ago, and it is these that the drivers can operate. There are a few differences with some chips though (a few need longer delays on start up), and there are a very few such displays that use completely their own controller, needing different software.

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