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

2x8 LCD problems

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



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Apr 10, 2006 2:57 pm     Reply with quote

You don't need to use a PIC that has a LCD driver module in it, like the
16F914 to use an LCD module such as the 8x2 Crystalfontz unit.

The 16F914 PIC is meant to drive a segmented LCD like this one:
http://www.varitronix.com/20060310/catalog/lcd_spec/VI402.PDF
The PIC drives the individual segments of that LCD.

The Crystalfontz LCD module that you're using has a controller built
into the unit. It has a microcontroller interface. Any PIC that has
at least 6 i/o pins can talk to the the Crystalfontz LCD. You don't
use the LCD driver in the 16F914 to talk to the Crystalfontz LCD.
You just use the CCS LCD.C driver.

So instead of doing this:
setup_lcd(LCD_STATIC);

You should do this:
setup_lcd(LCD_DISABLED);
janiga



Joined: 10 Apr 2006
Posts: 22

View user's profile Send private message

Thanks!
PostPosted: Mon Apr 10, 2006 2:58 pm     Reply with quote

Code changed to initialize display only once.
sjbaxter



Joined: 26 Jan 2006
Posts: 141
Location: Cheshire, UK

View user's profile Send private message Visit poster's website

PostPosted: Mon Apr 10, 2006 3:00 pm     Reply with quote

Did it fix your problem ?
_________________
Regards,
Simon.
janiga



Joined: 10 Apr 2006
Posts: 22

View user's profile Send private message

Thanks a million!
PostPosted: Mon Apr 10, 2006 3:04 pm     Reply with quote

Disabled the static mode and it works!
It sure helps to receive info from someone who knows their stuff!

It works!

Thanks alot!
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