Académique Documents
Professionnel Documents
Culture Documents
gm2121
SXGA LCD Monitor Controller with
Integrated Analog Interface and Dual
LVDS Transmitter
Table Of Contents
1 Overview ........................................................................................................................................8
1.1 gm2121 System Design Example..........................................................................................8
1.2 gm2121 Features ...................................................................................................................9
2 GM2121 Pinout ............................................................................................................................10
3 GM2121Pin List ...........................................................................................................................11
4 Functional Description .................................................................................................................16
4.1 Clock Generation.................................................................................................................16
4.1.1 Using the Internal Oscillator with External Crystal ........................................................17
4.1.2 Using an External Clock Oscillator.................................................................................19
4.1.3 Clock Synthesis ...............................................................................................................20
4.2 Chip Initialization................................................................................................................21
4.2.1 Hardware Reset ...............................................................................................................21
4.2.2 Correct Power Sequencing ..............................................................................................22
4.3 Analog to Digital Converter ................................................................................................22
4.3.1 ADC Pin Connection.......................................................................................................23
4.3.2 ADC Characteristics........................................................................................................23
4.3.3 Clock Recovery Circuit...................................................................................................24
4.3.4 Sampling Phase Adjustment............................................................................................25
4.3.5 ADC Capture Window ....................................................................................................25
4.4 Test Pattern Generator (TPG)..............................................................................................26
4.5 Input Format Measurement .................................................................................................26
4.5.1 HSYNC / VSYNC Delay ................................................................................................27
4.5.2 Horizontal and Vertical Measurement ............................................................................28
4.5.3 Format Change Detection................................................................................................28
4.5.4 Watchdog ........................................................................................................................28
4.5.5 Internal Odd/Even Field Detection (For Interlaced Inputs to ADC Only) ......................28
4.5.6 Input Pixel Measurement ................................................................................................29
4.5.7 Image Phase Measurement..............................................................................................29
4.5.8 Image Boundary Detection..............................................................................................29
4.5.9 Image Auto Balance ........................................................................................................29
4.6 RealColorTM Digital Color Controls....................................................................................29
4.6.1 RealColor™ Flesh tone Adjustment ...............................................................................30
4.6.2 Color Standardization and sRGB Support.......................................................................30
4.7 High-Quality Scaling...........................................................................................................30
4.7.1 Variable Zoom Scaling....................................................................................................30
List Of Tables
Table 1. Analog Input Port ................................................................................................................11
Table 2. RCLK PLL Pins ..................................................................................................................11
Table 3. System Interface and GPIO Signals ....................................................................................12
Table 4. Display Output Port.............................................................................................................13
Table 5. Parallel ROM Interface Port................................................................................................13
Table 6. Reserved Pins ...................................................................................................................14
Table 7. Power and Ground Pins for ADC Sampling Clock DDS ....................................................14
Table 8. Power and Ground Pins for Display Clock DDS ................................................................14
Table 9. I/O Power and Ground Pins.................................................................................................15
Table 10. Power and Ground Pins for LVDS Transmitter ..............................................................15
Table 11. TCLK Specification ........................................................................................................19
Table 12. Pin Connection for RGB Input with HSYNC/VSYNC...................................................23
Table 13. ADC Characteristics........................................................................................................24
Table 14. Supported LVDS 24-bit Panel Data Mapping.................................................................34
Table 15. Supported LVDS 18-bit Panel Data Mapping.................................................................34
Table 16. gm2121 GPIOs and Alternative Functions .....................................................................41
Table 17. Bootstrap Signals.............................................................................................................41
Table 18. Instruction Byte Map.......................................................................................................43
Table 19. Absolute Maximum Ratings............................................................................................46
Table 20. DC Characteristics...........................................................................................................47
Table 21. Maximum Speed of Operation ........................................................................................48
Table 22. Display Timing and DCLK Adjustments........................................................................48
Table 23. 2-Wire Host Interface Port Timing .................................................................................48
List Of Figures
Figure 1. gm2121 System Design Example......................................................................................8
Figure 2. gm2121 Pin Out Diagram ...............................................................................................10
Figure 3. gm2121 Functional Block Diagram ................................................................................16
Figure 4. Using the Internal Oscillator with External Crystal ........................................................17
Figure 5. Internal Oscillator Output................................................................................................18
Figure 6. Sources of Parasitic Capacitance.....................................................................................18
Figure 7. Using an External Single-ended Clock Oscillator...........................................................19
Figure 8. Internally Synthesized Clocks .........................................................................................20
Figure 9. On-chip Clock Domains..................................................................................................21
Figure 10. Correct Power Sequencing ..............................................................................................22
Figure 11. Example ADC Signal Terminations................................................................................23
Figure 12. gm2121 Clock Recovery .................................................................................................24
Figure 13. ADC Capture Window ....................................................................................................25
Figure 14. Some of gm2121 built-in test patterns ............................................................................26
Figure 15. Factory Calibration and Test Environment .....................................................................26
Figure 16. HSYNC Delay.................................................................................................................27
Figure 17. Active Data Crosses HSYNC Boundary .........................................................................27
Figure 18. ODD/EVEN Field Detection...........................................................................................28
Figure 19. RealColorTM Digital Color Controls................................................................................29
Figure 20. Display Windows and Timing.........................................................................................32
Figure 21. Single Pixel Width Display Data.....................................................................................32
Figure 22. Double Pixel Wide Display Data ....................................................................................33
Figure 23. Panel Power Sequencing .................................................................................................33
Figure 24. OSD Cell Map.................................................................................................................35
Figure 25. OCM Full-Custom and Standalone Configurations ........................................................37
Figure 26. Programming OCM in Standalone Configuration...........................................................38
Figure 27. Programming the OCM in Full-Custom Configuration ..................................................39
Figure 28. 2-Wire Protocol Data Transfer ........................................................................................43
Figure 29. 2-Wire Write Operations (0x1x and 0x2x)......................................................................44
Figure 30. 2-Wire Read Operation (0x9x and 0xAx) .......................................................................44
Figure 31. External ROM Interface Timing Diagram ......................................................................49
Figure 32. gm2121 160-pin PQFP Mechanical Drawing ................................................................51
Revision History
1 Overview
The gm2121 is a graphics processing IC for Liquid Crystal Display (LCD) monitors at SXGA resolution.
It provides all key IC functions required for the highest quality LCD monitors. On-chip functions include
a high-speed triple-ADC and PLL, a high quality zoom and shrink scaling engine, an on-screen display
(OSD) controller, digital color controls, an on-chip micro-controller (OCM) and industry standard dual
four channel LVDS transmitter for direct connect to LCD panels with LVDS interface. With this level of
integration, the gm2121 devices simplify and reduce the cost of LCD monitors while maintaining a high-
degree of flexibility and quality.
Direct
Connect to
LVDS IF
Panels
Analog LCD Module
RGB gm2121
Back-light
NVRAM EEPROM
(optional)
2 GM2121 Pinout
The gm2121 is available in a 160-pin Plastic Quad Flat Pack (PQFP) package. Figure 2 provides the pin
locations for all signals.
AVDD_GREEN_3.3
AVDD_BLUE_3.3
AVDD_RED_3.3
AVDD_ADC_3.3
AGND_GREEN
ROM_ADDR10
ROM_ADDR11
ROM_ADDR12
ROM_ADDR13
ROM_ADDR14
ROM_ADDR15
ROM_ADDR0
ROM_ADDR1
ROM_ADDR2
ROM_ADDR3
ROM_ADDR4
ROM_ADDR5
ROM_ADDR6
ROM_ADDR7
ROM_ADDR8
ROM_ADDR9
ROM_DATA6
ROM_DATA7
AGND_BLUE
AGND_RED
AGND_ADC
SGND_ADC
ADC_TEST
RVDD_3.3
RVDD_3.3
CVDD_2.5
GREEN+
GREEN-
CRVSS
CRVSS
CRVSS
BLUE+
BLUE-
RED+
RED-
160
159
158
157
156
155
154
153
152
151
150
149
148
147
146
145
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
ROM_DATA5 1 120 GND1_ADC
ROM_DATA4 2 119 VDD1_ADC_2.5
ROM_DATA3 3 118 GND2_ADC
ROM_DATA2 4 117 VDD2_ADC_2.5
ROM_DATA1 5 116 VSS_SDDS
ROM_DATA0 6 115 VDD_SDDS_3.3
ROM_OEn 7 114 AVSS_SDDS
GPIO22/HCLK 8 113 AVDD_SDDS_3.3
GPIO16/HFSn 9 112 VBUFC
GPIO20/HDATA3 10 111 VSS_DDDS
GPIO19/HDATA2 11 110 VDD_DDDS_3.3
gm2121
GPIO18/HDATA1 12 109 AVSS_DDDS
GPIO17/HDATA0 13 108 AVDD_DDDS_3.3
RVDD_3.3 14 107 VSS_DPLL
CRVSS 15 106 VDD_DPLL_3.3
GPIO21/IRQn 16 105 AVSS_RPLL
RESETn 17 104 AVDD_RPLL_3.3
GPIO15/DDC_SCL 18 103 XTAL
GPIO14/DDC_SDA 19 102 TCLK
CVDD_2.5 20 101 HSYNC
CRVSS 21 100 VSYNC
GPIO8/IRQINn 22 99 CRVSS
GPIO0/PWM0 23 98 CVDD_2.5
GPIO1/PWM1 24 97 GPO 7
GPIO2/PWM2 25 96 GPO 6
GPIO3/TIMER1 26 95 GPO 5
GPIO4/UART_DI 27 94 GPO 4
GPIO5/UART_DO 28 93 GPO 3
GPIO6 29 92 GPO 2
RVDD_3.3 30 91 CRVSS
CRVSS 31 90 RVDD_3.3
GPIO7 32 89 GPO 1
GPIO9 33 88 GPO 0
GPIO10 34 87 RESERVED
GPIO11/ROM_WEn 35 86 RESERVED
GPIO12/NVRAM_SDA 36 85 RESERVED
GPIO13/NVRAM_SCL 37 84 RESERVED
STI_TM1 38 83 RESERVED
STI_TM2 39 82 RESERVED
PPWR 40 81 RESERVED
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PBIAS
VCO_LV
AVSS_OUT_LV_E
CRVSS
CRVSS
CH3P_LV_E
CH3N_LV_E
CLKP_LV_E
CLKN_LV_E
CH2P_LV_E
CH2N_LV_E
CH1P_LV_E
CH1N_LV_E
CH0P_LV_E
CH0N_LV_E
AVSS_OUT_LV_E
AVSS_LV_E
CRVSS
RESERVED
AVSS_OUT_LV_O
CH3P_LV_O
CH3N_LV_O
CH2P_LV_O
CH2N_LV_O
CH1P_LV_O
CH1N_LV_O
CH0P_LV_O
CH0N_LV_O
AVSS_OUT_LV_O
AVSS_LV_O
CVDD_2.5
AVDD_OUT_LV_E_2.5
AVDD_OUT_LV_E_2.5
AVDD_LV_E_2.5
AVDD_OUT_LV_O_2.5
CLKP_LV_O
CLKN_LV_O
AVDD_OUT_LV_O_2.5
AVDD_LV_O_2.5
CVDD_2.5
3 GM2121Pin List
I/O Legend: A = Analog, I = Input, O = Output, P = Power, G= Ground
Table 7. Power and Ground Pins for ADC Sampling Clock DDS
Pin Name No I/O Description
AVDD_SDDS_3.3 113 AP Analog power for the Source DDS. Connect to 3.3V supply.
Must be bypassed with a 0.1uF capacitor to AVSS_SDDS pin
(as close to the pin as possible).
AVSS_SDDS 114 AG Analog ground for the Source DDS.
Must be directly connected to the system ground.
VDD_SDDS_3.3 115 P Digital power for the Source DDS. Connect to 3.3V supply.
VSS_SDDS 116 G Digital ground for the Source DDS.
Note, “AP” indicates a power supply that is analog in nature and does not have large switching currents.
These should be isolated from other digital supplies that do have large switching currents.
4 Functional Description
A functional block diagram is illustrated below. Each of the functional units shown is described in the
following sections.
Clock
Host 8051-style External Generation
Interface Micro- ROM I/F
OSD
controller
Controller
MCU Internal OSD
RAM ROM RAMs
gm2121
Vdda
CL1
102
Vdd
TCLK
103
141
N/C
Reset State Logic
ROM_ADDR13
Internal Oscillator Enable
Internal Pull Down
Resistor
~ 60K
minimum signal level of about 50-mV peak to peak to function correctly. The output of the comparator is
buffered and then distributed to the gm2121 circuits.
3.3 Volts
time
Vdda
Cex1
Cpcb Cpin Cpad Cesd
102
Internal Oscillator
TCLK
gm2121
Cshunt
103
Vdda XTAL
Cex2
Cpcb Cpin Cpad Cesd
Approximate values:
CPCB ~ 2 pF to 10 pF (layout dependent)
Cpin ~ 1.1 pF
Cpad ~ 1 pF
CL2 = Cex1 + Cpcb + Cpin + Cpad + Cesd Cesd ~ 5.3 pF
Cshunt ~ 9 pF
Some attention must be given to the details of the oscillator circuit when used with a crystal resonator.
The PCB traces should be as short as possible. The value of Cload that is specified by the manufacturer
should not be exceeded because of potential start up problems with the oscillator. Additionally, the crystal
should be a parallel resonate-cut and the value of the equivalent series resistance must be less then 90
Ohms.
Vdd
14 to 24 MHz
gm2121
102
Vdd
TCLK OSC_OUT
Oscillator
TCLK Distribution
GND
103
Internal Disable
Vdd Oscillator
XTAL
10 K
RCLK
TCLK
PLL
/2 RCLK/2
/4 RCLK/4
DCLK
SCLK
IP_CLK DP_CLK
SENSE_ACLK
IP_CLK
RCLK/2 RCLK/4
TCLK TCLK
Voltage
RVDD (3.3V)
CVDD (2.5V)
VRVDD-CVDD(t)
TCVDD->RESETn
Time
t
Voltage RESETn
0V
Time
gm2121
20Ω
RED RED +
0.01uF
DB15 75Ω
57.6Ω
GND RED -
0.01uF
HSYNC HS
Please note that it is very important to follow the recommended layout guidelines for the circuit shown in
Figure 11. These are described in "gm5115 Layout Guidelines" document number C5115-SLG-01A.
Note that input formats with resolutions or refresh rates higher than that supported by the LCD panel are
supported as recovery modes only. This is called RealRecovery™. For example, it may be necessary to
shrink the image. This may introduce image artifacts. However, the image is clear enough to allow the
user to change the display properties.
The gm2121 ADC has a built in clamp circuit for AC-coupled inputs. By inserting series capacitors
(about 10 nF), the DC offset of an external video source can be removed. The clamp pulse position and
width are programmable.
Image Phase
Measurement
R
24 Window
G ADC Capture
B
Phase
SDDS
HSYNC HSYNC IPCLK
(delayed)
Source
Height
Capture Window
The Reference Point marks the leading edge of the first internal HSYNC following the leading edge of an
internal VSYNC. Both the internal HSYNC and the internal VSYNC are derived from external HSYNC
and VSYNC inputs.
Horizontal parameters are defined in terms of single pixel increments relative to the internal horizontal
sync. Vertical parameters are defined in terms of single line increments relative to the internal vertical
sync.
For ADC interlaced inputs, the gm2121 may be programmed to automatically determine the field type
(even or odd) from the VSYNC/HSYNC relative timing. See Input Format Measurement, Section 4.4.
DDC
programmable
delay
input block actually
captures across HSYNC
Data
HS (system)
Internal Delayed HS
4.5.4 Watchdog
The watchdog monitors input VSYNC / HSYNC. When any HSYNC period exceeds the programmed
timing threshold (in terms of the selected IFM_CLK), a register bit is set. When any VSYNC period
exceeds the programmed timing threshold (in terms of HSYNC pulses), a second register bit is set. An
interrupt can also be programmed to occur.
4.5.5 Internal Odd/Even Field Detection (For Interlaced Inputs to ADC Only)
The IFM has the ability to perform field decoding of interlaced inputs to the ADC. The user specifies start
and end values to outline a “window” relative to HSYNC. If the VSYNC leading edge occurs within this
window, the IFM signals the start of an ODD field. If the VSYNC leading edge occurs outside this
window, an EVEN field is indicated (the interpretation of odd and even can be reversed). The window
start and end points are selected from a predefined set of values.
HS
window
Window
Start
Window End
VS - even
VS - odd
Green In -
X +/- Green Out
DVS
DH_BKGND_START DH_BKGND_END
DV_BKGND_START
Display Background Window
DV_ACTIVE_START
DV_TOTAL
HSYNC region
DV_BKGND_END
Vertical Blanking (Front Porch)
DH_TOTAL
DHS
DEN **
DH_HS_END
DH_ACTIVE_WIDTH ** DEN is not asserted during vertical blanking
DH_ACTIVE_START
DCLK (Output)
DEN (Output)
ER/EG/EB
XXX rgb0 rgb1 rgb2 rgb3 rgb4
(Output)
OR/OG/OB
XXX
(Output)
DCLK (Output)
DEN (Output)
ER/EG/EB
XXX rgb0 rgb2 rgb4 rgb6 rgb8
(Output)
OR/OG/OB
XXX rgb1 rgb3 rgb5 rgb7 rgb9
(Output)
PPWR Output
PBIAS Output
POWER_SEQ_EN = 1 POWER_SEQ_EN = 0
4.13 OSD
The gm2121 has a fully programmable, high-quality OSD controller. The graphics are divided into “cells”
12 by 18 pixels in size. The cells are stored in an on-chip static RAM (4096 words by 24 bits) and can be
stored as 1-bit per pixel data, 2-bit per pixel data or 4-bit per pixel data. This permits a good compression
ratio while allowing more than 16 colors in the image.
Some general features of the gm2121 OSD controller include:
OSD Position – The OSD menu can be positioned anywhere on the display region. The reference point is
Horizontal and Vertical Display Background Start (DH_BKGND_START and DV_BKGND_START in
Figure 20).
OSD Stretch – The OSD image can be stretched horizontally and/or vertically by a factor of two, three,
or four. Pixel and line replication is used to stretch the image.
OSD Blending – Sixteen levels of blending are supported for the character-mapped and bitmapped
images. One host register controls the blend levels for pixels with LUT values of 128 and greater,
while another host register controls the blend levels for pixels with LUT values of 127 and lower.
OSD color LUT value 0 is reserved for transparency and is unaffected by the blend attribute.
CELLMAP_YS
Z
Brightness
Contrast
Note that the cell map and the cell definitions share the same on-chip RAM. Thus, the size of the cell map
can be traded off against the number of different cell definitions. In particular, the size of the OSD image
and the number of cell definitions must fit in OSD SRAM. That is, the following inequality must be
satisfied. (Note, the ROUND operation rounds 3.5 to 4).
(CELLMAP_XSZ+1) * CELLMAP_YSZ +
18 * ROUND(Number of 1-bit per pixel fonts / 2) +
18 * (Number of 2-bit per pixel fonts) +
36 * (Number of 4-bit per pixel fonts) <= 4096
For example, an OSD menu 360 pixels wide by 360 pixels high is 30 cells in width and 20 cells in height.
Many of these cells would be the same (e.g. empty). In this case, the menu could contain more than 32 1-
bit per pixel cells, 100 2-bit per pixel cells, and 16 4-bit per pixel cells. Of course, different numbers of
each type can also be used.
Factory Factory
Port Port
gm2121 Analog
gm2121
Analog
RGB Output to RGB Output to
OCM OCM
Input LCD Panel Input LCD Panel
ROM
On-chip ROM:
• Auto mode detection
• Auto-configuration
NVRAM • Standard high-quality OSD menus NVRAM PROM
• Factory test / calibration functions
G-Wizard
NVRAM
Image File
(.nvram_image. hex)
G-Probe
LCD
Controller NVRAM
Board
gm2121
OCM
Keil Compiler
External ROM
Image File (.hex)
ROM Programmer
LCD
Controller ROM
Board
gm2121
OCM
The UART is connected to pins GPIO4/UART_DI and GPIO5/UART_DO. gm2121 has serial-to-
parallel conversion hardware which is accessed by firmware.
Note: Install 10KΩ pull-ups on UART according to Table 3.
The two LSBs of the instruction code, denoted 'A9' and 'A8' in Table 18 below, are bits 9 and 8 of the
internal register address respectively. Thus, they should be set to ‘00’ to select a starting register address
of less than 256, ‘01’ to select an address in the range 256 to 511, and '10' to select an address in the range
512 to 767. These bits of the address increment in Address Increment transfers. The unused bits in the
instruction byte, denoted by 'x', should be set to ‘1’.
HCLK 1 2 3 4 5 6 7 8 9 1 2 8 9
STOP
START ADDRESS BYTE DATA BYTE
Receiver acknowledges by holding SDA low
acknowledge receipt of the data. The master device generates the HCLK pulse during the acknowledge
cycle. The addressed receiver is obliged to acknowledge each byte that has been received.
The Write Address Increment and the Write Address No Increment operations allow one or multiple
registers to be programmed with only sending one start address. In Write Address Increment, the address
pointer is automatically incremented after each byte has been sent and written. The transmission data
stream for this mode is illustrated in Figure 29 below. The highlighted sections of the waveform represent
moments when the transmitting device must release the HFSn line and wait for an acknowledgement from
the gm2121 (the slave receiver).
HCLK 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 1 2 9
HFSn DEVICE ADDRESS R/W ACK OPERATION CODE A9 A8 ACK REGISTER ADDRESS ACK DATA DATA ACK
HCLK
HFSn DEVICEADDRESS R/W ACK OPERATIONCODE ACK REGISTERADDRESS ACK DEVICEADDRESS R/W ACK DATA DATA ACK DATA
5 Electrical Specifications
The following targeted specifications have been derived by simulation.
INPUTS
NOTES:
(1) Maximum current figures are provided for the purposes of selecting an appropriate power supply circuit.
(2) Low power figures result from setting the ADC and clock power down bits so that only the micro-controller is running.
(3) Includes 2.5V digital core (CVDD)
(4) Includes pins VDD1_ADC_2.5, VDD2_ADC_2.5 and LVDS transmitter power pins
(5) Includes pins VDD_DPLL, VDD_SDDS, VDD_DDDS and RVDD.
(6) Includes pins AVDD_ADC, AVDD_RED, AVDD_GREEN, AVDD_BLUE, AVDD_RPLL, AVDD_SDDS, and AVDD_DDDS.
TRC
TACC
ROM_DATA[7:0] 74 A0
ROM_OEn
TMICRO_CLK
MICRO_CLK
(internal)
Latched Data
74 A0
(internal)
MICRO_CLK is the internal MCU clock derived from TCLK and has the same frequency as TCLK. At the maximum
supported TCLK frequency (24MHz) the MICRO_CLK period is about 41ns.
The ROM data is latched on the third MICRO_CLK rising edge after the ADDRESS bus is asserted. Due to this
requirement, the external ROM should have a maximum access time of equal to or less than three TCLK periods (for
example, less than 123 ns when 24MHz TCLK crystal is used).
There are three criteria to be met for the external ROM interface timing (again, using 24MHz TCLK as a worst-case
example):
3. T OE ≤ 2 x TMIRCO_CLK = 83.2 ns
6 Ordering Information
7 Mechanical Specifications
A
B
121 80
I
J
L M H