• We recently switched our forum platform. If you experience any issues please email support@crystalfontz.com

CFAF320240F-T-TS SSD2119 SPI 4-wire READ data GDDRAM

Alfix

New member
How can I read pixeldata (16-Bit color) from GDRAM with SPI 4-wire interface?
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
 

djautoclinic

New member
Reading data with SPI interface

Alfix,

I could be wrong here but i do not think you can read data from the display with a serial interface. I know in reading the data sheet it does seem to say there is a serial read possible but I do not see in the information how that could happen.

With the parallel interface you have an R/W data line to set for data read but with the serial you either have an SDC line for Data/Command with the 4 wire or an extra bit send with the 3 wire SPI but I can not find a provision for a R/W bit for a read command by data bit or by hard wire.

I am using a 16 bit parallel interface and it works excellent. Quick screen writes, easy to read data back, really no problems working with the display. You may want to look at changing your design if you can to a parallel interface.

Possibly a CFtech or other forum member can correct or confirm what I have said.

Brian
 

Alfix

New member
Hi Brain,

datasheet, Item 7.1:

MCU Serial Interface
Data Read: Yes
Data Write: 8-bits
Read Command: No
Write Command: 8-bits

Accordingly, it should work READ Data. The data sheet does not indicate, must be like the READ.

The RD pin is in SPI mode not be used, Table 6-2

8080-system: RD (read strobe signal)
Serial mode: Not used and should be connected to VDDIO or Vss

A test SPI-READ command (in the Data Read / Write Mode 0x0022) returns on each case, one byte at the SDO pin. Just to read a byte, a dummy write is necessary. This deletes previously but the pixels!

Alfix
 

djautoclinic

New member
Alfix,

That's what I meant by it seems to say you can do an SPI read but does not seem to show how and there does not seem to be a way to send a 'read' command using the SPI interface. If you are trying to read but it erases the pixel data when you do that then it sounds like it is over writing the pixel data instead of reading it.

Try emailing Crystalfontz support and they should be able to tell you. I just don't see the info on how to do an SPI read in the data sheet although as you mentioned it seems to indicate it is possible on the chart you referenced. Do you see anywhere it indicates how you send an R/W read bit using SPI?

Brian
 
Top