TFT LCD Interface Signals
|
Sharp’s LH79520 System-On-Chip design has an integrated LCD controller. It is able to directly interface to several different types of LCDs — STN, TFT and HR-TFT — without need for a separate LCD controller chip. This device will be used as an example of the LCD interface signals required.
LCD panels unfortunately follow no uniform signal naming convention nor pin arrangement, so different LCD panels from different manufacturers will frequently have different pin arrangements and naming conventions. Pairing a Controller with an LCD will become much easier once the required types of signals can be known and understood. The table shows a TFT LCD signal and pin description from a typical LCD manual. The example used here is the Sharp LQ057Q3DC02.
|
The interface signals follow three categories: control signals, data signals, and power connections.
- Control Signals: The example in the table shows control signals common to all LCD panels; again, they may differ by type and manufacturer.
- Clock signals (CK): for shifting RGB data into the LCD panel.
- Horizontal Synchronization signals (Hsync): There are ‘N’ number of CK periods per Hsync period where ‘N’ is the number of RGB pixels in a line. This signal marks the point at which the current line ends, and the new line begins.
- Vertical Synchronization signals (Vsync): There are ‘M’ number of Hsync periods per Vsync period where ‘M’ is the number of vertical lines in the display. This signal marks the point at which the current frame ends, and the new frame begins.
CK is the LCD’s clock source, a continuous squarewave. The frequency must be correct and within the panel’s specification to avoid flickering. The Horizontal Synchronization signal is a pulse that is activated when one line of data has been transmitted to the LCD. The Vertical Synchronization signal is a pulse that is activated when one page (or frame) of data has been transmitted to the LCD. The clock frequency must be correct and the Synchronization signal polarities must be correct, otherwise the image on the LCD will exhibit twisting or flickering.
Other control signals for this TFT LCD are:
- ENAB: Enable signal
- R/L: Right or Left scan direction select
- U/D: Up or Down scan direction select
- V/Q: VGA or QVGA select
The Enable signal enables the LCD; and so must be HIGH to enable the LCD display. Some control signals are specific to certain LCDs. In the sample above, R/L, U/D, V/Q signals must be tied to VCC or GND. They affect the image presentation (such as mirror imaging) and may not be available on all LCD panels.
Data Signals The data signals are:
- Blue[5:0]
- Green[5:0]
- Red[5:0]
There are 18 data signals in total. They correspond to the LCD controller or LH79520 SoC output LCDVD[17] to LCDVD[0]. These signals are the LCD image data; they are active between the Horizontal Synchronization (Hsync) and Vertical Synchronization (VSync) pulses. Power Connections The LCD panel in this example requires VCC (3.3 V or 5 V) and GND.
| |
LH79520's LCD Interface Pin Assignments |
| |
| PIN NO. |
SYMBOL |
I/O |
FUNCTION |
| 1 |
GND |
|
Ground |
| 2 |
CK |
I |
Data Sampling Clock |
| 3 |
HSync |
I |
Horizontal Synchronizing signal (negative-going) |
| 4 |
VSync |
I |
Vertical Synchronizing signal (negative-going) |
| 5 |
GND |
|
Ground |
| 6 |
R0 |
I |
Red Data Signal (LSB) |
| 7 |
R1 |
I |
Red Data Signal |
| 8 |
R2 |
I |
Red Data Signal |
| 9 |
R3 |
I |
Red Data Signal |
| 10 |
R4 |
I |
Red Data Signal |
| 11 |
R5 |
I |
Red Data Signal (MSB) |
| 12 |
GND |
|
Ground |
| 13 |
G0 |
I |
Green Data Signal (LSB) |
| 14 |
G1 |
I |
Green Data Signal |
| 15 |
G2 |
I |
Green Data Signal |
| 16 |
G3 |
I |
Green Data Signal |
| 17 |
G4 |
I |
Green Data Signal |
| 18 |
G5 |
I |
Green Data Signal (MSB) |
| 19 |
GND |
|
Ground |
| 20 |
B0 |
I |
Blue Data Signal (LSB) |
| 21 |
B1 |
I |
Blue Data Signal |
| 22 |
B2 |
I |
Blue Data Signal |
| 23 |
B3 |
I |
Blue Data Signal |
| 24 |
B4 |
I |
Blue Data Signal |
| 25 |
B5 |
I |
Blue Data Signal (MSB) |
| 26 |
GND |
|
Ground |
| 27 |
ENAB |
I |
Horizontal Display Position Set Signal |
| 28 - 29 |
VCC |
|
+3.3 V |
| |
|
|
Horizontal Display Direction Select Signal |
| 30 |
R/L |
I |
L = Normal |
| |
|
|
H = Reverse |
| |
|
|
Vertical Display Direction Select Signal |
| 31 |
U/D |
I |
L = Normal |
| |
|
|
H = Reverse |
| 32 |
V/Q |
I |
VGA/QVGA Mode Select Signal |
| 33 |
GND |
|
Ground |
|
|