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