View previous topic :: View next topic |
Author |
Message |
kbruin79
Joined: 02 Aug 2010 Posts: 30
|
Flex lcd driver issues with Pic16f1939 |
Posted: Thu Mar 22, 2012 4:27 pm |
|
|
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
|
|
Posted: Thu Mar 22, 2012 5:41 pm |
|
|
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:
|
|
|
kbruin79
Joined: 02 Aug 2010 Posts: 30
|
|
Posted: Fri Mar 23, 2012 6:07 pm |
|
|
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. |
|
|
|