Lefora Pro Forum
login join
Loading
389 views

SPI 4-wire interface

Page 1
1–6
rookie - member
6 posts

I'm trying to interface to the SDT033TFT via the display driver (D51E5TA7601).  I'm still in the initial phase meaning just trying to communicate (write/read) through 4-wire spi for now, 18-bit  parallel will come later.  To enable me to prove that my SPI interface is functional I'm trying to read back R00h (register 0) which should be the device code = 'h7601.

It is mentioned in the datasheet that when SPI3=0 the SPI mode is set to 4-wire.  The interface mode IM[3:0] = 4'b010x for a 16-bit serial interface.

  • first question: "the IM0 pin is used as an ID bit of the device code" How do I determine what should be the value of the ID bit (IM0) of the device code?

  • second question:  Any pointers to look for that I might of forgotten for a 4-wire spi interface?  I've been struggling to get a response back from the device on the SDO line, but still no luck.

Any comment would help.

Thank you!

regular - admin
54 posts

I'm gathering info from our engineering department and will reply once available.

rookie - member
6 posts

thanks trevordtech,  I'll be awaiting your reply. 

On a same note regarding the IM[0] as a device ID bit below is an extract that I found in the datasheet of the D51E5TA7601 (LCD driver) that is a little bit unclear.  It's under section 10.2 "Serial Peripheral Interface":

"... For the serial interface, IM[0] is used as ID. ... The D51E5TA7601 is selected when the 6-bit chip address in the start byte transferred by the transmitting device matches the 6-bit device identification code assigned to D51E5TA7601. ID is the least significant bit of the device identification code. The D51E5TA7601, when selected, receives the subsequent data string.  Two different chip addresses must be assigned to a single D51E5TA7601..."

There is no more info anywhere else in the datasheet that explains more in details.

thank you.

regular - admin
54 posts

1) It is determined by your interface. If you connect IM0 to GND, then you will get back "0" from this bit. But if you connect IM0 to VDD, then you will get back "1" from this bit. 

2) Sorry that our engineers are not sure exactly what the question is. But they said if you cannot get the device code from SDO, they suspect that the timing sequence of the software may have an error. May be you can check it against the IC spec.

rookie - member
8 posts

I'm trying to get the SPI interface to work as well.  I have IM0 tied to Gnd.

I have the SPI in my software configured as:
    5000 Hz
    0 delay
    8 bits
    CPOL: 0
    CPHA: 0
    MSB first
    CS Low to transfer
    4-wire

I first send bytes 0x70, 0x00, 0x00 and get back 0xFF, 0xFF, 0xFF
then send bytes 0x73, 0x00, 0x00 and of course get back 0xFF, 0xFF, 0xFF

What am I doing wrong?

-Stevo

rookie - member
8 posts

Update.

Changed CPOL to 1 and CPHA to 1 and it's now working.  I can now set and read registers.

What are the register values needed to configure to RGB mode?

-Stevo

Page 1
1–6

Locked Topic


You must be a member to post in this forum

Join Now!