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 driver for Interfacing JHD 162A with PIC16F877A

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



Joined: 07 Mar 2012
Posts: 34
Location: jalpaiguri, India

View user's profile Send private message

LCD driver for Interfacing JHD 162A with PIC16F877A
PostPosted: Mon Oct 28, 2013 9:25 am     Reply with quote

Can anyone please provide me the compatible driver for interfacing LCD JHD162A with PIC16F877A.

I have tried several times with the regular LCD.c driver, but the lcd is showing only 'black box'. The connections seem to be ok. I think its the initialization problem. or is it a compatibility issue !

Please HELP ! Sad

Thanks in advance.
Ttelmah



Joined: 11 Mar 2010
Posts: 19260

View user's profile Send private message

PostPosted: Mon Oct 28, 2013 9:33 am     Reply with quote

It's dead standard.

It'll run off lcd.c, if the connections are right.
Things to try:

Triple check the connections. Remember the bias voltage needs to be connected as well
Remember also that it is D4 to D7 on the LCD that have to connect to the PIC (not D0 to D3). Also remember the ground needs to be connected.

Make sure you add a delay before calling LCD_INIT. Many of these clone LCD's do not start to power up, till the supply gets up to perhaps 4.5v. The PIC starts at a much lower voltage, so can start too quickly for the display.

Also, look at:

<http://www.edaboard.com/thread293536.html>

Others have commented on a high tendency to faulty units with these....

Best Wishes
SubhamayS



Joined: 07 Mar 2012
Posts: 34
Location: jalpaiguri, India

View user's profile Send private message

what about D0 to D3 on the LCD ??
PostPosted: Mon Oct 28, 2013 10:37 am     Reply with quote

Thanks a lot for the reply.

Ttelmah wrote:
Remember also that it is D4 to D7 on the LCD that have to connect to the PIC (not D0 to D3). Also remember the ground needs to be connected.


I have connected D4 to D7 on the LCD to RB4 to RB7 (as mentioned in LCD.C driver). Now what should I do with D0 to D3 on the LCD ?? do you mean I must connect these to the ground ??
Ttelmah



Joined: 11 Mar 2010
Posts: 19260

View user's profile Send private message

PostPosted: Mon Oct 28, 2013 12:04 pm     Reply with quote

No.
I mean that the ground of the LCD also needs to be connected to the same ground as the PIC. It is surprising how many people forget that these must also connect together. What do you have on the bias voltage pin?.

Best Wishes
SubhamayS



Joined: 07 Mar 2012
Posts: 34
Location: jalpaiguri, India

View user's profile Send private message

PostPosted: Tue Oct 29, 2013 1:58 am     Reply with quote

Ttelmah wrote:
What do you have on the bias voltage pin?


I have connected the ground of the LCD to the same ground as the PIC and connected the bias pin on LCD to +5V supply through 1k resistor.
Ttelmah



Joined: 11 Mar 2010
Posts: 19260

View user's profile Send private message

PostPosted: Tue Oct 29, 2013 3:01 am     Reply with quote

That is not right for the bias.

Normally it needs to be close to 0v.

The data sheet for this series, show it connected to _ground_ via a resistor.

Would explain the display being fully black....

Best Wishes
SubhamayS



Joined: 07 Mar 2012
Posts: 34
Location: jalpaiguri, India

View user's profile Send private message

Problem solved :)
PostPosted: Wed Nov 13, 2013 9:32 am     Reply with quote

Ttelmah wrote:
That is not right for the bias.


Finally it's working... there was a problem in biasing.. rectified it & I used the 'lcd_flex' driver..

Thanks a lot @Ttelmah.. Smile
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