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 and 18F4620

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



Joined: 04 Sep 2011
Posts: 9

View user's profile Send private message

flex_lcd driver and 18F4620
PostPosted: Tue Sep 06, 2011 10:16 pm     Reply with quote

I am having a devil of a time with a simple task. Using a known good combination of a 2X16 LCD (JHD 162A) and an 18F4620. I just cannot make this work with a PCWH compiler. Has anyone used this combo? Pin assignments are:
Code:


#define LCD_DB4   PIN_D0
#define LCD_DB5   PIN_D1
#define LCD_DB6   PIN_D2
#define LCD_DB7   PIN_D3

#define LCD_E     PIN_D5
#define LCD_RS    PIN_D4
//#define LCD_RW    PIN_A2

// If you only want a 6-pin interface to your LCD, then
// connect the R/W pin on the LCD to ground, and comment
// out the following line.

//#define USE_LCD_RW   1
 

Using PICKIT 2 programmer - works fine with flash LED program


Help, please !
Ttelmah



Joined: 11 Mar 2010
Posts: 19499

View user's profile Send private message

PostPosted: Wed Sep 07, 2011 5:13 am     Reply with quote

Obvious first comment. You have got the R/W pin on the LCD pulled low?.
However most likely thing is what else PortD is used for. Have you got the line:

setup_psp(PSP_DISABLED);

in your initialisation?.

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