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

Modify LCD & Keypad Driver

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



Joined: 07 Mar 2006
Posts: 19

View user's profile Send private message

Modify LCD & Keypad Driver
PostPosted: Tue Mar 07, 2006 3:39 pm     Reply with quote

I had project including a keypad and LCD with PIC16F877. I'm trying to use the LCD and Keypad Drivers but both of them were connected to different ports from the one specified in the driver code.

The pins are connected to different ports (i.e: LCD pins half of them connected to port B and the other half to port A). Although, the code was written depending on having all pins on the same ports as, I understood; therefore, please advice, if anybody had any idea how to make it work without doing a massive modification in the code.

Thanks for your Cooperation.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 07, 2006 3:53 pm     Reply with quote

Try these flexible LCD drivers in the Code Library forum:

http://www.ccsinfo.com/forum/viewtopic.php?t=20182

http://www.ccsinfo.com/forum/viewtopic.php?t=24661
Ahmed



Joined: 07 Mar 2006
Posts: 19

View user's profile Send private message

PostPosted: Tue Mar 07, 2006 5:21 pm     Reply with quote

PCM programmer wrote:
Try these flexible LCD drivers in the Code Library forum:

http://www.ccsinfo.com/forum/viewtopic.php?t=20182

http://www.ccsinfo.com/forum/viewtopic.php?t=24661


Thanks a lot,, I think <Flex_LCD.c> is one I was looking for. I still got two questions for you if you don't mind:

1- I couldn't understand your constrain about connecting Pull up resistor while using PIN A4? I had RS connected to PIN A4 and i already made the PCB. (any software suggestion would be great)

2- Actually I'm using 4x20 LCD and i read that you will not send your modified version to PM anymore but I�m trying my luck Smile

Anyways thanks for your advice.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Mar 07, 2006 5:40 pm     Reply with quote

On most PICs, pin A4 is an open-drain output and requires an external
pullup resistor if you want it to be able to put out a logic high level.

LCDs do have a built-in pullup on the RS pin, but it can be a weak
pullup, such as 100K. If so, the rise time might be too long.
The LCD driver could be adjusted for this by increasing the delay
time after the output_high(RS) statement. You could look at the
RS signal on your oscilloscope to check this.

Ideally, you would add an external 4.7K pull-up to pin A4 on the PIC.
Ahmed



Joined: 07 Mar 2006
Posts: 19

View user's profile Send private message

PostPosted: Tue Mar 07, 2006 5:59 pm     Reply with quote

Thanks alot that was really helpfull. i have test all of this and i'll post the results ASAP
Ahmed



Joined: 07 Mar 2006
Posts: 19

View user's profile Send private message

PostPosted: Wed Mar 08, 2006 1:48 pm     Reply with quote

PCM programmer wrote:
Try these flexible LCD drivers in the Code Library forum:

http://www.ccsinfo.com/forum/viewtopic.php?t=20182

http://www.ccsinfo.com/forum/viewtopic.php?t=24661


"PCM Programmer" actually I�m using a powertip LCD, sorry for not mentioning this before but I though it was using HD compatible controller .Finally, I realized that it uses Samsung S6A0069X.

I found your modified CCS LCD driver for the Samsung controllers but I was wondering if you have Flex_LCD420 driver for Samsung controllers.

Thanks a lot for your cooperation.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Mar 08, 2006 2:08 pm     Reply with quote

No. If it needs modifcations, you'll have to do it.
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