You are here

2x16 Character LCD with PSoC 4 | Cypress Semiconductor

2x16 Character LCD with PSoC 4

Summary: 35 Replies, Latest post by Bob Marlowe on 20 Oct 2016 03:06 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
user_350540870's picture
User
176 posts

Hi All

I need to interface a 2x16 Character LCD with PSoC4. I tried with the example project given in Creator. Please find attached the same. Current problem that I am facing is I am not able to display desired text with the screen remaining blank. Anybody please help me to learn the solutions with the problems of 2x16 Character LCD. I want to know regarding the regular solvable problems with LCD.

Thanks in Advance.

Shaunak

user_1377889's picture
User
10428 posts

There are some pitfalls you may encounter.

 

The only interface supported is for Hitachi 44780, other "compatible" devices may differ in timings (delays needed)

The voltage for the LCD-module must match the PSoC-voltage

The contrast-pin is not driven to the correct voltage (usually using a potentiometer)

 

There have been a couple of successful designs with Pioneed and LCD-mosule, errors were mostly misplaced connections.

 

Bob

 

 

 

 

 

user_14586677's picture
User
7645 posts

What is the part number of the display you are using, and a link

to the datasheet ?

 

Regards, Dana.

user_350540870's picture
User
176 posts

Dana

Please find attached the component datasheet in PDF.

Regards

Shaunak

user_350540870's picture
User
176 posts

Dana

I am afraid to inform that I could not attach the document in pdf. The component name is "JHD162A". You will find the details in google. Please reply as soon as possible, because I have been stuck up at this for long.

Regards

Shaunak

user_14586677's picture
User
7645 posts

What board / DVK are you using ? Is it the -001 kit or something else.

 

What is voltage you have on contrast pin ?

 

Double check wiring on all pins, especially the E, RS, R/W pins. Look for

activity with a scope.

 

Do you have a schematic you can post ?

 

Regards, Dana.

user_14586677's picture
User
7645 posts

Can you set a breakpoint after starting the LCD module and hit

it ?

 

Regards, Dana.

user_242978793's picture
User
1355 posts

Get a new display from ADAfruit product 181 price $9.95 uses the JD44780 display. chip. http://www.adafruit.com/products/181

Bob goar

user_49271930's picture
User
482 posts

Your program works with HD802A  (Uddd= 5v)
check: contact  R /! W     must be connected to Port2.6 (not to the ground! )

 

Attachments: 
user_350540870's picture
User
176 posts

Dana

I am using CY8CKIT-049-42xx PSoC 4. I have put a potentiometer on contrast pin. The wiring has been checked. I tried the project with breakpoints, but the code behaves and goes randomly. I am giving you the text based connections as below:

P2.0 -> DB4

P2.1 -> DB5

P2.2 -> DB6

P2.3 -> DB7

P2.4 -> E

P2.5 -> RS

P2.6 -> R/W

VCC -> LED+ and VCC

GND -> LED- and VSS

Potentiometer Output -> VEE

VCC = 5V

 

 

user_49271930's picture
User
482 posts

To verify enough GND-> VEE (maximum contrast)

Wires to LCD - no more than 10cm

Try to CharLCDmp_Demo.zip here: Character LCD (mp) Multi-Port

waveforms:

Attachments: 
Log in to post new comments.