GLCD_connection

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

cross mob
lock attach
Attachments are accessible only for community members.
DePa_3244516
Level 4
Level 4
First like received First like given

hello

i am using GitHub - AndresNavas/PSoC5_uGUI_SD_Sample: Sample and Test project of uGUI and SD-Card FatFs library... for my project with PSOC5 LP and https://www.buydisplay.com/default/lcd-5-ssd1963-tft-module-touch-screen-display-800x480-mcu-arduino  display

i have connected display and psoc 5lp but only get the back light on not nay other things are showing on display

where i am making any mistake in code or connection? can someone help me?

how to connect display with psoc ? currently i am connecting as per pins in Design wide resources of psoc creator and supply and ground to display

also at present i am not interfacing sd card portion

0 Likes
1 Solution

hello

solved the issue by adding this command and data lines

Display_WriteCommand(0x00B8);

Display_WriteData(0x000f);    //GPIO is controlled by host GPIO[3:0]=output   GPIO[0]=1  LCD ON  GPIO[0]=1  LCD OFF

Display_WriteData(0x0001);    //GPIO0 normal

Display_WriteCommand(0x00BA);

Display_WriteData(0x0001);    //GPIO[0] out 1 --- LCD display on/off control PIN

View solution in original post

35 Replies
ANNA_2615691
Level 4
Level 4
First comment on KBA First solution authored 25 replies posted

Hi devyaniparmar.

You have to check the following:
Your VDD voltage level (3.3 or 5V)

In my example the LCD works at 3.3V and I'm using a CY8CKIT-050 (What PSoC or Kit are you using?)

Checking the PDF of your LCD, it's possible that you have a 5V version, so please be sure of that.

The pins on the PDF of your LCD (as your link suggest) should be connected as follows:
FOR JP2/CON1:

     1. VSS to GND

     2. VDD to VDD (remember to check if it's 3.3V or 5V)

     3. /CS to D_CS

     4. D/C to D_RS

     5. E_/RD to D_RD

     6. R/W_/WR to D_WR

     7. E_RESET_NC to D_RST

     8. TE to Open (Not connected to any pin in my project)

     9~24. DB0-DB15 to DLow_DB and DHigh_DB respectly
     25~32. DB16-DB23 must be tie to GND

     33. RTP CS to T_CS

     34. RTP CLK to T_CLK

     35. RTP DIN to T_DIN

     36. RTP DOUT to T_DO

     37. RTP BUSY to Open (Not connected to any pin in my project)

     38. RTP PEN to T_IRQ

     39. BL_ON/OFF to D_BL

     40. VSS to GND

So, check these connections and let me know!

Hope you can put it to work!!!

0 Likes

hello

thanks for your support

i am also using CY8CKIT - 050

my display is working on 5V

at present i am not using touch panel and sd card

so on JP2/CON1

33~38 is open  and other pins are connected as you said above

also sd card is not connected

and gratefully i got white display only and after sometimes it is again in previous condition

is it problem of supply voltage? i checked on PIN2 of connector i got 4.27V

0 Likes

Hi!

Please check the VDD, 4.27V maybe not enough to move your display, so ensure 5V.

For your connections, may sure that P5 is DLow_DB and P2 DHigh_DB.

Regards!

0 Likes

hello

like from P5[0] to 9 and P2[7] to 24 respectively?

0 Likes

Hi.

Yes, P5[0] to 9, P5[1] to 10 ... P5[7] to 16; P2[0] to 17 ... P2[7] to 24

0 Likes

I did as per above

At now i am not using touch and sd card, it will create the problem ?

Please can you guide me to change the parameter?? I am new to this

Do you have any tutorial link for this set up of initialization?

clock speed down to 20Mhz

0 Likes

The Touch and SDCard shouldn't be a problem, just leave the pins open... But to get sure you can comment the lines that call the touch and SD functions.

For the LCD Panel setup and timing configuration, you'll need to have the LCD panel datasheet, I don't know if there's a tutorial or something for that, I'm sorry...

I you have the LCD Panel datasheet please share it and I could check what parameters you'll need to change.

0 Likes

ok

i have already comment the code which i am not using and also pins are open

here link to datasheet https://www.buydisplay.com/download/ic/SSD1963.pdf

tft module datasheet https://www.buydisplay.com/download/manual/ER-TFTM050-5_Datasheet.pdf

0 Likes
lock attach
Attachments are accessible only for community members.

Did you check this?
pastedImage_0.png

May sure your LCD is configured to work as 8080 Parallel Interface.

About the configuration of timing and Sync I need the Datasheet of the LCD panel itself, like the pdf attached as example of my LCD Panel, see page 3 Timing Characteristics...

0 Likes

Please check this crystal:
pastedImage_0.png

Must be 10MHz!

0 Likes

Yes it is 10MHz crystal

And also it is 8080 parallel interface

0 Likes

You can check the timing information at the end of datasheet

0 Likes
lock attach
Attachments are accessible only for community members.

Which page?

However in this link:
https://www.buydisplay.com/download/democode/ER-TFTM050-5_8080_16-bit_Resistive_Touch_Panel_Font_Chi...

They offer a Sample Code, in it I could check the configuration in the file SSD1963.h, so replace ugui_SSD1963.c in the PSoC project with the file attached and try again.

They also offer this schematic as a Sample:

pastedImage_0.png

So, as I see there, try leaving RESET (pin 7) open or Not connected.

0 Likes

i tried above all things

no changes

0 Likes

hello

solved the issue by adding this command and data lines

Display_WriteCommand(0x00B8);

Display_WriteData(0x000f);    //GPIO is controlled by host GPIO[3:0]=output   GPIO[0]=1  LCD ON  GPIO[0]=1  LCD OFF

Display_WriteData(0x0001);    //GPIO0 normal

Display_WriteCommand(0x00BA);

Display_WriteData(0x0001);    //GPIO[0] out 1 --- LCD display on/off control PIN

OK Cool!...

So the LCD uses the internal BackLight control!....

Great, so please share some videos!

0 Likes

Yes

How to send video and image here?

I have to upload on youtube first?

0 Likes

Yes you can do a Youtube upload and then share the link...

0 Likes

hello

i will send video tommorow

here i have now new issue

image is cut in the half way as shown in attached image

what is the possible reason behind this?IMG-20180719-WA0000.jpg

0 Likes

Hi!

You have to take off the BMP header of the Image data. And check the size of the Image, in some cases I have to add or rest 1 pixel in the width image window.

0 Likes

Hello

Hight is 100,width 121

You mean i have to make width 122 or 119?

Also which converter you used for .dat file conversion?

Also one more thing, i want to interface Flash IC for image file storage ,do you have any idea for that?

I have W25Q128FV FLASH IC

0 Likes

Yes, try changing the width to 122 or 119...

I used the B2C converter by Segger, it's in the file that Cypress provide for emWIN http://www.cypress.com/file/131166/download

With it i convert the BMP to .C file.

For the Flash management you could use some similar management as I did with the SDCard.

0 Likes
lock attach
Attachments are accessible only for community members.

hi andres

i have implemented flash chip mentioned above with psoc5lp

and i am writing the flash chip from the sd card and read and transfer image bytes to display

but i am not getting image properly, it is showing black and whit dots instead of actual colors of image

any idea behind this issue?

also how can i write fast to display, it is very slow loading

0 Likes

Hi. So cool!

About the Image you have to check that the BMP is RGB565 (16bits color format)

About speed, with 16bits BUS you should have a good speed in display, maybe your slow loading is because the memory data transmission. Try changing the frequency or bitrate.

0 Likes

IMG_20180731_181618.jpg

hello

i got the image from flash as per attachment

which converter to use for .dat file?

i changed the frequency , but didnt get the required result

which one will be the ideal frequency for my flash ic,sd card and display?, do you know how can i decide this?

0 Likes

HI.

I'm sorry but you have to try and look for the best result.

However the SDcard speed is really slow, so if you are streaming the image from SD to Display you will see the progress, It won't be fast.

To do what you need you will need to double buffer the graphics, unfortunately the SSD1963 hasn't enough memory to double buffer, neither the PSoC RAM could be enough... So... I really don't know if you can do what you want with your actual hardware...

For me works great because I don't have timing restrictions and I can wait for the Image loading progress...

0 Likes

hi

okk

do you know which one fit best for me?

any suggestion ?

thaks

0 Likes

I'm sorry...  But you'll have to search in the market...

0 Likes

Okay

No problem

Nd thank you so much for support

0 Likes
lock attach
Attachments are accessible only for community members.

hi

i used DMA ping pong, and as we can use 2 arrays to store the value,

can i use those to array to write image on display one after one from sd card?

like first rxBuffer will store values of first 2 bytes from SPIM(sd card)  and when it is full rxBuffer1 will store the next bytes, so now i have 2 array of image value

does it possibe? : when first buffer is filled it will write it to lcd and when write is completed,rxBuffer1 will be written to lcd, during both write period DMA read the rx buffer value of SPIM and all process will repeat until whole image write?

if above is possible:

1)how can i write 2 arrays using f_read from the sd card? i mean to say that as in code pt = f_read(&fileO, rxBuffer,200, &br);  will give me only value of rxBuffer not the value of rxBuffer1, how can i get the rxBuffer1 value ?

any idea?

also you said double buffer is not possible with this device because of my above doubt?

sorry for my confusing english

0 Likes

how to convert image to .dat?

0 Likes

now i am giving 5V properly, but no changes on display

0 Likes

If all the connections are OK and the supply is OK and you're getting a white screen, maybe the configuration parameters of your specific LCD panel, you have to check the values to setup the LCD timing, Vertical and Horizontal sync....

The values are in the file ugui_SSD1963.c function Display_Init()

You have to check your specific LCD panel datasheet timing configuration.

Also try reducing the speed clock of the LCDIntf block to 20MHz

0 Likes

hello

my connection for data lines from connector to CY8CKIT-050 are correct?

9~16 - P5[0]~P5[7]

17~24 - P2[0]~P2[7]

0 Likes