Driving SDT033TFT in RGB Mode
I'm trying to drive this LCD in with an RGB interface, and I have a couple of questions.
The driver datasheet shows that I need to set these for Motion Picture Display:
RGB Interface (RM=1) External Clock Operation (DM[1:0]=01)
Are there any other commands I need to send to turn on the display in RGB mode? I noticed the Application Note specified a slew of commands to set up for a system interface mode, and I was wondering if there was something similar already done for RGB mode.
Also, the pinout specifies what to set pins IM0-IM3 to when using system or SPI interface modes, but not RGB mode. I must setup registers using SPI, but I want to write screen content with RGB interface, so do I just use the SPI mode setting?
Thanks,
Brian
Hi Brian,
I have asked the factory for an app note and I will post it here ASAP.
Thanks,
Terry
Hi Brian,
Please see the attached app note. I have requested more information specific to the RGB interface and will post here when I get it (timing diagrams, etc).
Terry
Attachment: SDT033TFT App Note.pdf (31.0KB)
Also, see the attached application circuit for RGB interface mode.
Thanks,
Terry
Attachment: SDT033TFT application circuit-091022_RGB interface.bmp (646.0KB)
Hi,
In looking at the RGB interface circuit, it looks like the connections specified set IM[3:0] to 0100 which would indicate a 16-bit RGB interface, although there are 18 data lines connected. Or am I missing something?
-Stevo
Yes, I'm curious why the IM1 line is tied to Gnd and not VCI. If there are 18 RGB data lines, doesn't IM1 need to be connected to VCI - for mode 011x?
Hi Stevogta,
1) Following is the databus for RGB interface:
Interface Mode / Description
6-bit interface, 3 transfer DB[17:12]
16 bit interface, 1 transfer DB[17:13],DB[11:1]
18 bit interface, 1 transfer DB[17:0]
in 16 bit RGB interface you should connect DB0 and DB12 to IOVCC or VSS.
2) You can connect IM1 to low to select 16 bit RGB interface, or you can connect IM1 to high to select 18 bit RGB interface. There has no relationship between the data lines number and the interface choice, please reference the data bus for RGB I/F shown above.
Best,
Mike
Mike,
I was looking through that block of initialization code, and noticed (among other things) that it sets the DB lines to BGR, as well as inverting the pixel update order (R->L instead of the default L->R). Is this only applicable to a serial-driven setup, or is this something to do with how the LCD is oriented? Is there example initialization code for an RGB parallel setup?
Also, as far as I can tell, the module must be initialized by the serial interface before switching to parallel mode. There's no way around that, is there?
Hi,
We're having a hard time talking to the SDT033TFT. The link to SDT033TFT
App Note.pdf appears to be broken. Does anyone have a working link or a copy they can send to me?
Erik
Hi Erik,
Here is the app note. We'll get the link fixed ASAP. Sorry for the inconvenience.
Regards,
Terry
Attachment: SDT033TFT App Note.pdf (31.0KB)
I am also having trouble with the RGB interface.
2) You can connect IM1 to low to select 16 bit RGB interface, or you can connect IM1 to high to select 18 bit RGB interface. There has no relationship between the data lines number and the interface choice, please reference the data bus for RGB I/F shown above.
-mikedtech
The datasheet says that pin controls the length of the SPI data strings. If this also controls the width of the RGB bus, that could be causing my problems.
I'm trying to set up registers using 16-bit, 4-wire SPI; and write screen content with 18-bit RGB. From my reading of the datasheet, I have: pins IM[3:0]=0100 (16-bit SPI, ID=0); and register [R0Bh]=0x0111 (RM=1, RGB Interface; DM[1:0]=01, External Clock Operation; RIM[2:0]=001, 18-bit RGB Interface).
Is this correct?
Thanks,
-Tor
Thanks.
Please correct me if I'm wrong, by looking at the spec sheet of the D51E5TA7601, I don't think you can be setup into 16-bit SPI interface and achieve 18-bit/1-transfer RGB interface. If you are setup for a 16-bit system interface you can achieve up to 16-bit/1-transfer RGB interface which permits you of having a 65,538 color display.
I could be not understanding the datasheet correctly but my answer above was based on looking at"RGB Interface" (section 10.4) and the "Serial Peripheral Interface" (section 10.2).
regards,
S2c97
I can't find anything in the spec sheet that states that the RGB bus width is related to the SPI configuration. Section 10.2 says that the SPI is configured using external pins IM[0:3]; section 10.4 says that the RGB bus width is selected by setting the RIM[2:0] bits.
The RIM[2:0] bits are described as being in internal register 0x0B and specifying the RGB interface mode. (Section 7, pages 65-66: EXTERNAL DISPLAY INTERFACE CONTROL (R0Bh))
Does the SPI configuration override the internal register settings? Under what circumstances can I use internal registers? Is it possible to use a 6-bit/3-transfer RGB interface when SPI is enabled?
Thanks,
-Tor
You are right that the RGB bus and SPI interface don't seem to be related. What I don't understand is if you are configured as a 16-bit SPI interface how do you write 18-bits to your GRAM data register?
It all depends on your ucontroller spi interface. For example the ucontroller I'm using in my design can only do 8-bits or 16-bits spi transfers.
regards,
s2c97
So has anyone been successful in getting this panel to work in RGB mode?
I believe I have my hardware setup properly, but of course don't see anything displayed on the panel. I'm now going to start with the SPI communications to set the registers properly. In looking at the application note, it doesn't seem to be doing the right thing, but maybe I'm still way off in my understanding...
-Stevo
