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

Flex lcd driver issues with Pic16f1939

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



Joined: 02 Aug 2010
Posts: 30

View user's profile Send private message

Flex lcd driver issues with Pic16f1939
PostPosted: Thu Mar 22, 2012 4:27 pm     Reply with quote

Hello,

I have used the flex lcd driver provided here:
http://www.ccsinfo.com/forum/viewtopic.php?t=24661

I am using Pic16f1939 and HDM16216L-S-L30S LCD. It's got the HD44780 controller.

The flex driver works fine with the PIC16f727 and the older version of ccs Now I am using the Pic16f1939 and CCS Version 4.128 and the screen goes blank, the controller won't send out any signal to the LCD.

Code:

#define LCD_DB4 PIN_A0
#define LCD_DB5 PIN_A1
#define LCD_DB6 PIN_C0
#define LCD_DB7 PIN_C1

#define LCD_E      PIN_E0
#define LCD_RS    PIN_E1
#define LCD_RW   PIN_E2

However if I do

Are there any know issues with the Pic16f1939 and version 4.128?


Thanks in advance
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Mar 22, 2012 5:41 pm     Reply with quote

Post a short test program similar to the one at the start of this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=39925
It must have the #include, #fuses, and #use delay().

Also, finish this sentence, if it was important:
Quote:

However if I do
kbruin79



Joined: 02 Aug 2010
Posts: 30

View user's profile Send private message

PostPosted: Fri Mar 23, 2012 6:07 pm     Reply with quote

Thank you for the reply, "however I do" was a typo.

The problem was I was using #include <flex_lcd.c> instead of
#include "flex_lcd.c"
The carrot worked fine with the 4.106. After I replaced it with quotation the problem was solved.
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