Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 5, 3 & 1 Forum Discussions

adpac_1560036
Level 4
Level 4
First like received First like given

Hi, I am new to PSoC 5. Im trying to interface a 16x2 5v lcd with backlight with psoc. ive assigned port 3 to lcd and programmed the example program-"LCD with Custom fonts".

   

But the display is not working. I have checked all the connections and they are perfect. LCD module is also working as i had it checked with other circuit.

   

Please help.

   

Thank you

0 Likes
20 Replies
HeLi_263931
Level 8
Level 8
100 likes received 50 likes received 25 likes received

By default the example program use port 2. Did you change that?

0 Likes

yes. i have designed a pcb to connect with port 3. so i changed it. however it should work right?

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

P3.2 is connect  C7 = 1,0nF capacitor on the board Kit-059, you must remove it

0 Likes

Thank you. i shall try it

0 Likes

Hi I know this thread was posted several years ago but I think I am running into the same issue you were.

Do you possibly remember how you removed these capacitors that were defaulted to the PSoC pins you used?

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Is this board your design or is it a PSOC CY8CKIT-059 PSOC 5lp Prototyping kit?

0 Likes

it is the prototyping kit. I have designed my board as per its pinouts

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

I can not determine if you have the LCD correctly wired  but I am sending you a  CY8Ckit-059 PSOC 5LP program that works fine and should work with your boards.

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Logical Port Pin LCD Module Pin Description
LCDPort_0 DB4 Data Bit 0
LCDPort_1 DB5 Data Bit 1
LCDPort_2 DB6 Data Bit 2
LCDPort_3 DB7 Data Bit 3
LCDPort_4 E LCD Enable (strobe to confirm new data available)
LCDPort_5 RS Register Select (select data or control input data)
LCDPort_6 R/!W Read/not Write (toggle for polling the ready bit of the LCD)

   

Don't forget the 10K pot on pin 3  wiper and +5V and Ground across the Pot. My program uses port 2.

0 Likes

Thank you very much for your response..I have removed the on board capacitor as pavloven said, in port3 and connected LCD to it. Now its woking !!..Thank you pavloven

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Bypass capacitors are present on all boards.
Here are a few that I was able to briefly see:
CY8CKIT-042:       P1.7(C10)   P4.2(C1)   P4.3(C9)
CY8CKIT-049-42xx:  P1.7( C3)   P4.2(C2)   P4.3(C11) 
CY8CKIT-050:       P0.2(J43)   P0.4(J44)
CY8CKIT-059:      P0.2(C12)   P0.3(C13)  P0.4 (C9)   P3.2(C7)   P5.4(C4)
I'm glad I could help you.

yes..!!..Thank you once again

0 Likes

Hi I know this thread was posted several years ago but I think I am running into the same issue you were.

Do you possibly remember how you removed these capacitors that were defaulted to the PSoC pins you used?

0 Likes

The best way is to remove it with a soldering iron and leave it on the board for recovery.

4.jpg
You can crush / break / chop these elements mechanically.

The material is fragile ceramic.

This method is extremely undesirable - it’s wiser to change the contacts in your project.

0 Likes

I had the same issue, and I have a resolution:

I want to use a Newhaven Display 4x20 LCD (NHD-0420E2Z-FSW-GBW).

So I wired it up according to the Character LCD component, and it did not work.

I removed a different LCD from a working device, plugged in the Newhaven, and it worked, so the display was good.

Eventually, I saw a note about the capacitors, as above.

Instead of removing the capacitor, I tried the display on all the available ports on the KIT-059.

The net result is that the display works when connected to ports 2 and 12.
It does not work when connected to ports 0, 1, and 3.
Port 15 has 6 pins, where you need 7.

Port 1 gave this error message on BUILD:

Fit.M0006:Pin Error: (P1[3] has been reserved for SWD Debug in the DWR settings.).

Fit.M0050: The fitter aborted due to errors, please address all errors and rebuild.

The above named display works fine. The KIT-059 and the display are powered via USB from computer.

To safely remove the capacitors, if that is what you want, try SMD1 from Chip Quik Inc

SMD1 Chip Quik Inc. | Soldering, Desoldering, Rework Products | DigiKey  

you-tube video  SMD Removal using a Chip Quik kit - YouTube

i have used it on a few small SMD, and to help remove power and ground pins from through hole parts.

0 Likes

I have just downloaded the SW to the -059 kit, and the LCD is off ( ANY POSITION ON THE POT).

I did the connection wiring on the following way:

- P2[7] to lcd pin 5 (R/W)

- P2[6] to lcd pin 4 (RS)

- P2[5] to lcd pin 6 (E)

- P2[4] to lcd pin 14 (D7)

- P2[3] to lcd pin 13 (D6)

- P2[2] to lcd pin 12 (D5)

- P2[1] to lcd pin 11 (R/W)

LCD VSS PIN  TO GROUND (EXTERNAL POWER SUPPLY), JOINED WITH GND PIN ON -059 KIT

LCD VDD PIN TO 5 V (EXTERNAL POWER SUPPLY)

LCD VO PIN TO A POT MID POINT.

PLEASE LET ME KNOW WHAT I DID WRONG...

THANKS IN ADVANCE

0 Likes

you have connected the LCD to port 2, 1-7
P2[1] should go to D4, not R/W

Did you assign the pins P2[1:7] to the LCDPort ?

0 Likes

Hi LaAd_404866:

     Thanks for your feedback.

     You are right there is a typo on my previous email "- P2[1] to lcd pin 11 (R/W)" but it was finally connected as you mentioned " P2[1] to lcd pin 11 (D4)". Sorry for the missunderstanding.

     I associated LCD to port2, 1-7 on DWR Windows as shown pn next picture. Is this correct?.

Thanks for the help 

pastedImage_0.png

0 Likes

Everything is correct and it works.

Do you see black squares on the screen when you turn it on?

LCD VSS PIN  TO GROUND

LCD VDD PIN TO 5 V  (not 3.3V)

LCD VO PIN TO A МАХ(MIN) POINT.LCD.jpg

Good morning Pavlov: now it Works, thanks for the help¡¡¡

De: Evgeniy Pavlov <community-manager@cypress.com>

Enviado el: martes, 1 de diciembre de 2020 20:21

Para: Elias Algaba, Jose Felix <elias.albaga@itpaero.com>

Asunto: Re: - Interfacing 16x2 LCD with PSoc5LP Kit-059

<http://www.cypress.com>

Cypress Developer Community <https://community.cypress.com/?et=watches.email.thread>

Interfacing 16x2 LCD with PSoc5LP Kit-059

reply from Evgeniy Pavlov<https://community.cypress.com/people/EvPa_264126?et=watches.email.thread> in PSoC 5LP MCU - View the full discussion<https://community.cypress.com/message/267833?et=watches.email.thread#267833>

0 Likes