Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Code Examples

MotooTanaka
Esteemed Contributor

IMG_4708.JPG

Hi,

While ago, we had a discussion asking for charLCD sample for PSoC 6.

https://community.cypress.com/t5/PSoC-6-MCU/Display-LCD-on-PSOC-6/m-p/266274

And to my surprise, I could not find a charLCD component for PSoC 6 in PSoC Creator.

Adding on top this, the querist was showing 5V LCD in the block diagram,

so I suggested that he needs to use a 3.3V version to go with PSoC 6.

And if I had stopped there, I felt somewhat flighty, so I ordered "my" 3.3V LCD.

The good news is the parts arrived pretty soon,

but the bad news was I could not afford time to fight with it.

 

Finally, today, here is my first sample of charLCD like LCD control sample.

 

The schematic

002-schematic.JPG

The Pins

003-Pins.JPG

Tera Term log

001-TeraTerm.JPG

For the command(s) please refer to the instruction of HD44780U Datasheet

Note: Sorry, I did not implement "read" function.

004-HD44780U_instructions.JPG

1-Mar-2021

moto

14-Oct-2021 Attached project updated

(1) Added delay before initializing the LCD

(2) When DB7 is high in writing,  clear DB7 after write phase is done to prevent the program from hang.

 

 

9 Replies
DheerajK_81
Moderator
Moderator

Hello @MotooTanaka ,

Thank you for sharing this example project with the community. This is a very sought after example project, it will be very beneficial to all our community users 🙂

Regards,
Dheeraj

parrthpanchal
New Contributor II

Hi,

I need help in interfacing this display with the Psoc 5LP.

I am facing difficulties in configuring the SPI block in PSoc Creator and also can't find any APIs for interfacing with the LCD!!

Could you guys help me out or refer some resources from where I could learn?

 

Thanks,

Parth

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

I wonder if the following sample can be some hint for you?

https://community.cypress.com/t5/Code-Examples/A-dumb-typewriter-sample-I2C-keyboard-and-SPI-TFT/m-p...

moto

0 Likes
parrthpanchal
New Contributor II

Hi @MotooTanaka ,

 

Could you please share the TFT Source and Header Files with me which you used in the project?

 

 

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

I'm  very sorry that I overlooked your request.

Both the source and the header are included in the attached project.

tft_cardkb_200324.cydsn

sources

font

TFT

TFT.c <-- source

TFT.h <-- header

moto

 

 

 

0 Likes
theaaronm
New Contributor II

Hi @MotooTanaka ,

I am attempting to integrate an LCD into a project I am creating using the CY8CPROTO-063-BLE board and the CYBLE-416045-02 microcontroller. I am able to map what I believe are the correct pins and program the CM4 core. However, when I use the Putty Terminal I can only get the help message to display and can not write anything onto the LCD. Do you have any advice on how to proceed?

 

Thank you,

Aaron

0 Likes
MotooTanaka
Esteemed Contributor

Dear Aaron-san,

Could you check the followings?

(1) Is your LCD 3.3V version?

(2) Have you populated a pot at Vo (and +3.3V and GND) ?

(3) If (2) is yes, when you change the value of the POT

     do you see black boxes when the POT is high and nothing when POT is low?

Best Regards,

12-Oct-2021

Motoo Tanaka

0 Likes
theaaronm
New Contributor II

(1) I am unsure if it is a 3.3V version, it is from an Arduino kit and the only markings it has on it are '1602A'

(2) I have populated a pot at Vo (and +3.3V and GND).

(3) When I change the value of the POT to high, I get faint black boxes on the top line. When the POT is low I see nothing.

 

Thank you,

Aaron

0 Likes
MotooTanaka
Esteemed Contributor

Hi,

(1) I am unsure if it is a 3.3V version, it is from an Arduino kit and the only markings it has on it are '1602A'

If it's from an Arduino kit, most likely it's a 5V version.

I have both 3.3V and 5V versions

3.3V

https://www.amazon.co.jp/gp/product/B07B24PD33/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

5V

https://www.amazon.co.jp/gp/product/B010GXB9NM/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1

And today I tried both but I could now see letters on 5V version with this program and the one for CY8CPROTO-063-BLE.

So this was the first issue, you had, but it was my bad that there were a few more issues with this sample.

(2) Compared with the PSoC board, the LCD board takes longer to be ready,

 so I was halting the program with debugger and started if after a while, in Feb.

Today I modified the program to wait a while for the LCD module, so it should work without this tweak.

(3) Since DB7 is used for both data input and busy output, if data input has MSB of nibble high(1) the program halted. So I needed to write 0 to DB7 after write sequence is done.

Anyway, I posted the CY8CPROTO-062-BLE version in the discussion below.

https://community.cypress.com/t5/Code-Examples/CharLCD-Sample-for-PSOC-6-CY8CPROTO-063-BLE/m-p/29101...

 

moto

 

0 Likes