B0092-SWT-01 gm5115 Product Family Firmware Theory of Operation for Full Custom Configuration
B0092-SUG-01 gm5115 Product Family Firmware User Guide for Full-Custom
B0092-PRN-01 gm5115 Product Family Firmware Release Notes for Full-Custom
B0092-FSA-02 gm5115 Product Family Firmware Source Code for Full Custom Configuration
B0108-FXA-01 gm5115 Product Family Firmware ROM Code for Standalone Configuration
B0108-SUG-01 gm5115 Product Family Firmware User Guide for Standalone
B0108-PRN-01 gm5115 Product Family Firmware Release Notes for Standalone
S0006-GUD-01 G-Probe Debug Software User Guide
S0014-GUD-01 G-Wizard Software User Guide
Trademarks: RealColor and Real Recovery are trademarks of Genesis Microchip Inc.
Genesis Microchip Inc. reserves the right to change or modify the information contained herein without notice.
Please obtain the most recent revision of this document. Genesis Microchip Inc. makes no warranty for the use of
its products and bears no responsibility for any errors or omissions that may appear in this document.
Page 4
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
gm2110/20 System Design Example ..........................................................................1
June 2002 C2120-DAT-01C
vi
Page 8
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
1. OVERVIEW
The gm2110/20 is a graphics processing IC for Liquid Crystal Display (LCD) monitors at
XGA/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 and an onchip microcontroller (OCM). With this level of integration, the gm2110/20 devices simplify and
reduce the cost of LCD monitors while maintaining a high-degree of flexibility and quality.
Figure 1 below shows a typical dual interface LCD monitor system based on the gm2110/20.
Designs based on the gm2110/20 have reduced system cost, simplified hardware and firmware
design and increased reliability because only a minimal number of components are required in
the system.
Analog
RGB
gm2110/20
LCD Module
Back-light
NVRAM
EEPROM
(optional)
Figure 1. gm2110/20 System Design Example
June 2002 C2120-DAT-01C
1
Page 9
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
11..22 ggmm22111100//2200 FFeeaattuurreess
FEATURES
• Zoom (from VGA) and shrink (from UXGA) scaling
• Integrated 8-bit triple-channel ADC / PLL
• Embedded microcontroller with parallel ROM interface
• On-chip versatile OSD engine
• All system clocks synthesized from a single external crystal
• Programmable gamma correction (CLUT)
• RealColor controls provide sRGB compliance
• PWM back light intensity control
• 5-Volt tolerant inputs
• Low EMI and power saving features
• High-Quality Advanced Scaling
• Fully programmable zoom ratios
• High-quality shrink capability from UXGA resolution
• Real Recovery function provides full color recovery
image for refresh rates higher than those supported by
the LCD panel
• Moire cancellation
• Analog RGB Input Port
• Supports up to 162MHz (SXGA 75Hz / UXGA 60Hz)
• On-chip high-performance PLLs
(only a single reference crystal required)
• Auto-Configuration / Auto-Detection
• Input format detection
• Phase and image positioning
• RealColor Technology
• Digital brightness and contrast controls
• TV color controls including hue and saturation controls
• Flesh-tone adjustment
• Full color matrix allows end-users to experience the
same colors as viewed on CRTs and other displays
(e.g. sRGB compliance)
• On-chip OSD Controller
• On-chip RAM for downloadable menus
• 1, 2 and 4-bit per pixel character cells
• Horizontal and vertical stretch of OSD menus
• Blinking, transparency and blending
• On-chip Microcontroller
• Requires no external micro-controller
• External parallel ROM interface allows firmware customization
with little additional cost
• 21 general-purpose inputs/outputs (GPIO's) available for
managing system devices (keypad, back-light, NVRAM, etc)
• Industry-standard firmware embedded on-chip, requires no
external ROM (configuration settings stored in NVRAM)
• Programmable Output Format
• Single / double wide up to SXGA 75Hz output
• Support for 8 or 6-bit panels (with high-quality dithering)
• Highly Integrated System-on-a-Chip
Reduces Component Count for Highly Cost
Effective Solution
• Stand-alone operation requires no external
ROM and no firmware development for Fast
Time to Market
• Pin and register compatible Family of Products:
- gm2110/20 Dual-Interface SXGA
- gm3110/gm3120 Digital-Interface XGA/SXGA
- gm5110/gm5120 Analog-Interface XGA/SXGA
June 2002 C2120-DAT-01C
2
Page 10
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
2. GM2110/20 PINOUT
The gm2110/20 is available in a 208-pin Plastic Quad Flat Pack (PQFP) package. Figure 2
provides the pin locations for all signals.
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
3. GM2110/20 PIN LIST
I/O Legend: A = Analog, I = Input, O = Output, P = Power, G= Ground
Table 1. Analog Input Port
Pin Name No. I/O Description
AVDD_RED 172 AP Analog power (3.3V) for the red channel. Must be bypassed with decoupling capacitor to
RED+ 171 AI Positive analog input for Red channel.
RED- 170 AI Negative analog input for Red channel.
AGND_RED 169 AG Analog ground for the red channel.
AVDD_GREEN 168 AP Analog power (3.3V) for the green channel. Must be bypassed with decoupling capacitor to
GREEN+ 167 AI Positive analog input for Green channel.
GREEN- 166 AI Negative analog input for Green channel.
AGND_GREEN 165 AG Analog ground for the green channel.
AVDD_BLUE 164 AP Analog power (3.3V) for the blue channel. Must be bypassed with decoupling capacitor to
BLUE+ 163 AI Positive analog input for Blue channel.
BLUE- 162 AI Negative analog input for Blue channel.
AGND_BLUE 161 AG Analog ground for the blue channel.
AVDD_ADC 160 AP Analog power (3.3V) for ADC analog blocks that are shared by all three channels. Includes
ADC_TEST 159 AO Analog test output for ADC Do not connect.
AGND_ADC 158 AG Analog ground for ADC analog blocks that are shared by all three channels. Includes band
SGND_ADC 157 AG Dedicated pad for substrate guard ring that protects the ADC reference system.
GND1_ADC 156 G Digital GND for ADC clocking circuit.
VDD1_ADC_2.5 155 P Digital power (2.5V) for ADC encoding logic. Must be bypassed with decoupling capacitor to
GND2_ADC 154 G Digital GND for ADC clocking circuit.
VDD2_ADC_2.5 153 P Digital power (2.5V) for ADC encoding logic. Must be bypassed with decoupling capacitor to
HSYNC 137 I ADC input horizontal sync input.
VSYNC 136 I ADC input vertical sync input.
AGND_RED pin on system board (as close as possible to the pin).
Must be directly connected to the analog system ground plane.
AGND_GREEN pin on system board (as close as possible to the pin).
Must be directly connected to the analog system ground plane.
AGND_BLUE pin on system board (as close as possible to the pin).
Must be directly connected to the analog system ground plane.
band gap reference, master biasing and full-scale adjust. Must be bypassed with
decoupling capacitor to AGND_ADC pin on system board (as close as possible to the pin).
gap reference, master biasing and full-scale adjust.
Must be directly connected to analog system ground plane.
Must be directly connected to the analog system ground plane.
Must be directly connected to the digital system ground plane
GND1_ADC pin on system board (as close as possible to the pin).
Must be directly connected to the digital system ground plane.
GND2_ADC pin on system board (as close as possible to the pin).
ROM address output. These pins also serve as 5V-tolerant bootstrap inputs on power up.
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
IO
I
5V-tolerant external PROM data input
I
I
I
I
I
I
I
Table 6. Output Port
Pin Name No I/O Description
GPO0 119 O Odd Starting Pulse
GPO1 120 O Odd Polarity
GPO2 121 O Odd Data Transmission Inversion
GPO3 122 O Even Starting Pulse
GPO4 123 O Even Polarity
GPO5 124 O Even Data Transmission Inversion
GPO6 125 O Row Starting Pulse for 2-Voltage Row Driver
GPO7 126 O Row Starting Pulse for 3-Voltage Row Driver
Table 7. Reserved Pins
Pin Name No I/O Description
N/C 127 N/C No connect.
N/C 128 N/C No connect.
Reserved 131 I Tie to GND.
Reserved 132 I Tie to GND.
N/C 142 O No connect.
Reserved 173 N/C No connect.
Reserved 174 N/C No connect.
Reserved 175 N/C No connect.
Reserved 176 N/C No connect.
Reserved 177 N/C No connect.
Reserved 178 N/C No connect.
Reserved 179 N/C No connect.
Reserved 180 N/C No connect.
Reserved 181 N/C No connect.
Reserved 182 N/C No connect.
Reserved 183 N/C No connect.
Reserved 184 N/C No connect.
Reserved 185 N/C No connect.
Reserved 186 N/C No connect.
June 2002 C2120-DAT-01C
7
Page 15
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Reserved 187 N/C No connect.
Reserved 188 N/C No connect.
Reserved 189 N/C No connect.
Reserved 190 N/C No connect.
Reserved 191 N/C No connect.
Reserved 192 N/C No connect.
Reserved 193 N/C No connect.
Reserved 194 N/C No connect.
Reserved 195 N/C No connect.
Reserved 196 N/C No connect.
Reserved 197 N/C No connect.
Reserved 198 N/C No connect.
Reserved 199 N/C No connect.
N/C 200 O No connect.
CLKOUT 201 AO For test purposes only. Do not connect.
Note: For PCB compatibility with gm5110/20 and gm3110/20 input pins 173-199 should be
connected as described in the gm5115 data sheet C5115-DAT-01.
Note that VDD pins having "_2.5" in their names should be connected to 2.5V power supplies. All
other VDD pins should be connected to 3.3V power supplies.
Table 8. Power Pins for ADC Sampling Clock DDS
Pin Name No I/O Description
AVDD_DDDS 146 AP Analog power for the Destination DDS. Connect to 3.3V supply.
AVSS_DDDS 145 AG Analog ground for the Destination DDS.
VDD_DDDS 144 P Digital power for the Destination DDS. Connect to 3.3V supply.
VSS_DDDS 143 G Digital ground for the Destination DDS.
Must be bypassed with a 0.1uF capacitor to AVSS_DDDS pin
(as close to the pin as possible).
Must be directly connected to the analog system ground.
Table 9. Power Pins for Display Clock DDS
Pin Name No I/O Description
AVDD_SDDS 141 AP Analog power for Source DDS. Connect to 3.3V supply.
AVSS_SDDS 140 AG Analog ground for Source DDS.
VDD_SDDS 139 P Digital power for the Source DDS. Connect to 3.3V supply.
VSS_SDDS 138 G Digital ground for the Source DDS.
Must be bypassed with a 0.1uF capacitor to AVSS_SDDS pin
(as close to the pin as possible).
Must be directly connected to the analog system ground plane.
June 2002 C2120-DAT-01C
8
Page 16
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Table 10. I/O Power and Ground Pins
Pin Name No I/O Description
RVDD 2
111
129
RVSS 3
112
130
20
37
53
67
81
97
21
38
54
68
82
98
P
Connect to 3.3V supply.
P
Must be bypassed with a 0.1uF capacitor to RVSS (as close to the pin as possible).
P
P
P
P
P
P
P
G
Connect to digital ground.
G
G
G
G
G
G
G
G
Table 11. Core Power and Ground Pins
Pin Name No I/O Description
CVDD_2.5 26
134
203
CVSS 27
133
135
202
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.
88
89
P
Connect to 2.5V supply.
P
Must be bypassed with a 0.1uF capacitor to CVSS (as close to the pin as possible).
P
P
G
Connect to digital ground.
G
G
G
G
June 2002 C2120-DAT-01C
9
Page 17
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4. FUNCTIONAL DESCRIPTION
A functional block diagram is illustrated below. Each of the functional units shown is described
in the following sections.
NVRAM
Serial I/F
Serial Host I/F
GPIO
Parallel
ROM IF
Crystal
Reference
Analog
RGB
Host
Interface
8051-style
Micro-
controller
MCU
RAM
External
ROM I/F
Internal
ROM
Clock
Generation
OSD
Controller
OSD
RAMs
Triple
ADC
Image
Capture /
Measure-
ment
Brightness /
Contrast /
Hue / Sat /
RealColor /
Moire
Zoom /
Shrink /
Filter
Gamma
Control
Output
Data
Path
Panel Data
and Control
Figure 3. gm2110/20 Functional Block Diagram
44..11 CClloocckk GGeenneerraattiioonn
The gm2110/20 features two clock inputs. All additional clocks are internal clocks derived from
one or more of these:
1. Crystal Input Clock (TCLK and XTAL). This is the input pair to an internal crystal oscillator
and corresponding logic. A 14.3 MHz TV crystal is recommended. Other crystal frequencies
may be used, but require custom programming. This is illustrated in Figure 4 below.
Alternatively, a single-ended TTL/CMOS clock oscillator can be driven into the TCLK pin
(leave XTAL as N/C in this case). This is illustrated in Figure 7 below. This option is
selected by connecting a 10KΩ pull-up to ROM_ADDR13 (refer to Table 16). See also Table
13.
2. Host Interface Transfer Clock (HCLK)
The gm2110/20 TCLK oscillator circuitry is a custom designed circuit to support the use of an
external oscillator or a crystal resonator to generate a reference frequency source for the
gm2110/20 device.
June 2002 C2120-DAT-01C
10
Page 18
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.1.1 Using the Internal Oscillator with External Crystal
The first option for providing a clock reference is to use the internal oscillator with an external
crystal. The oscillator circuit is designed to provide a very low jitter and very low harmonic clock
to the internal circuitry of the gm2110/20. An Automatic Gain Control (AGC) is used to insure
startup and operation over a wide range of conditions. The oscillator circuit also minimizes the
overdrive of the crystal, which reduces the aging of the crystal.
When the gm2110/20 is in reset, the state of the ROM_ADDR13 pin (pin number 10) is sampled.
If the pin is left unconnected (internal pull-down) then internal oscillator is enabled. In this mode
a crystal resonator is connected between TCLK (pin 152) and the XTAL (pin 151) with the
appropriately sized loading capacitors C
and CL2. The size of CL1 and CL2 are determined from
L1
the crystal manufacturer’s specification and by compensating for the parasitic capacitance of the
gm2110/20 device and the printed circuit board traces. The loading capacitors are terminated to
the analog VDD power supply. This connection increases the power supply rejection ratio when
compared to terminating the loading capacitors to ground.
Vdda
Vdda
CL1
CL2
N/C
ROM_ADDR13
152
TCLK
151
XTAL
10
gm2110/20
Internal Pull Down
Resistor
~ 60K
Vdd
100 K
180 uA
Reset State Logic
Internal Oscillator Enable
Figure 4. Using the Internal Oscillator with External Crystal
OSC_OUT
TCLK Distribution
The TCLK oscillator uses a Pierce Oscillator circuit. The output of the oscillator circuit,
measured at the TCLK pin, is an approximate sine wave with a bias of about 2 volts above
ground (see Figure 5). The peak-to-peak voltage of the output can range from 250 mV to 1000
mV depending on the specific characteristics of the crystal and variation in the oscillator
June 2002 C2120-DAT-01C
11
Page 19
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
A
characteristics. The output of the oscillator is connected to a comparator that converts the sine
wave to a square wave. The comparator requires a 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
gm2110/20 circuits.
3.3 Volts
250 mV peak to peak
~ 2 Volts
to
1000 mV peak to peak
time
Figure 5. Internal Oscillator Output
One of the design parameters that must be given some consideration is the value of the loading
capacitors used with the crystal as shown in Figure 6. The loading capacitance (C
crystal is the combination of C
C
. The shunt capacitance C
shunt
pins. For the gm2110/20 this is approximately 9 pF. C
external loading capacitors (C
pad capacitance (C
symmetrical so that C
), and the ESD protection capacitance (C
pad
= CL2 = Cex + C
L1
and CL2 and is calculated by C
L1
is the effective capacitance between the XTAL and TCLK
shunt
and CL2 are a parallel combination of the
L1
), the PCB board capacitance (C
ex
PCB
+ C
pin
+ C
pad
+ C
= ((CL1 * CL2) / (CL1 + CL2)) +
load
), the pin capacitance (C
pcb
). The capacitances are
esd
. The correct value of Cex must be
ESD
) on the
load
pin
), the
calculated based on the values of the load capacitances. Approximate values are provided in
Figure 6.
CL1 = Cex1 + Cpcb + Cpin + Cpad + Cesd
Vdda
Cex1
Vdda
Cex2
CL2 = Cex1 + Cpcb + Cpin + Cpad + Cesd
Cpcb
Cshunt
Cpcb
141
TCLK
142
XTAL
CpinCpadCesd
gm5115
CpinCpadCesd
Internal Oscillator
pproximate values:
C
~ 2 pF to 10 pF (layout dependent)
PCB
C
~ 1.1 pF
pin
~ 1 pF
C
pad
~ 5.3 pF
C
esd
C
~ 9 pF
shunt
Figure 6. Sources of Parasitic Capacitance
June 2002 C2120-DAT-01C
12
Page 20
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
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 C
that is specified by
load
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.
4.1.2 Using an External Clock Oscillator
Another option for providing the reference clock is to use a single-ended external clock
oscillator. When the gm2110/20 is in reset, the state of the ROM_ADDR13 (pin 10) is sampled.
If ROM_ADDR13 is pulled high by connecting to VDD through a pull-up resistor (15KΩ
recommended, 15KΩ maximum) then external oscillator mode is enabled. In this mode the
internal oscillator circuit is disabled and the external oscillator signal that is connected to the
TCLK pin (pin number 152) is routed to an internal clock buffer. This is illustrated in Figure 7.
Vdd
Vdd
Oscillator
GND
14 to 24 MHz
Vdd
10 K
152
TCLK
151
XTAL
ROM_ADDR13
gm2110/20
OSC_OUT
TCLK Distribution
Internal
Oscillator
10
Internal Pull Down
Resistor
~ 60 K
Reset State Logic
Disable
External Oscillator Enable
Figure 7. Using an External Single-ended Clock Oscillator
Frequency 14 to 24 MHz
Jitter Tolerance 250 ps
Rise Time (10% to 90%) 5 ns
Maximum Duty Cycle 40-60
Table 12. TCLK Specification
June 2002 C2120-DAT-01C
13
Page 21
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.1.3 Clock Synthesis
The gm2110/20 synthesizes all additional clocks internally as illustrated in Figure 8 below. The
synthesized clocks are as follows:
1. Main Timing Clock (TCLK) is the output of the chip internal crystal oscillator. TCLK is
derived from the TCLK/XTAL pad input.
2. Reference Clock (RCLK) synthesized by RCLK PLL (RPLL) using TCLK as the reference.
3. Input Source Clock (SCLK) synthesized by Source DDS (SDDS) PLL using input HSYNC
as the reference. The SDDS internal digital logic is driven by RCLK.
4. Display Clock (DCLK) synthesized by Destination DDS (DDDS) PLL using IP_CLK as the
reference. The DDDS internal digital logic is driven by RCLK.
5. Half Reference Clock (RCLK/2) is the RCLK (see 2, above) divided by 2. Used as
OCM_CLK domain driver.
6. Quarter Reference Clock (RCLK/4) is the RCLK (see 2, above) divided by 4. Used as
alternative clock (faster than TCLK) to drive IFM.
7. ADC Output Clock (SENSE_ACLK) is a delay-adjusted ADC sampling clock, ACLK.
ACLK is derived from SCLK.
TCLK
RCLK
PLL
HSYNC
SDDS
IP_CLK
/2
/4
DDDS
SCLK
DCLK
RCLK/2
RCLK/4
Figure 8. Internally Synthesized Clocks
The on-chip clock domains are selected from the synthesized clocks as shown in Figure 9 below.
These include:
1. Input Domain Clock (IP_CLK). Max = 165MHz
2. Host Interface and On-Chip Microcontroller Clock (OCM_CLK). Max = 100MHz
3. Filter and Display Pixel Clock (DP_CLK). Max = 135MHz
June 2002 C2120-DAT-01C
14
Page 22
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4. Source Timing Measurement Domain Clock (IFM_CLK). Max = 50MHz
5. ADC Domain Clock (ACLK). Max = 165MHz.
The clock selection for each domain as shown in the figure below is controlled using the
CLOCK_CONFIG registers (index 0x03 and 0x04).
DCLK
SCLK
SENSE_ACLK
IP_CLK
DP_CLK
IP_CLK
SCLK
ACLK
RCLK/2
OCM_CLK
TCLK
RCLK/4
IFM_CLK
TCLK
Figure 9. On-chip Clock Domains
44..22 HHaarrddwwaarree RReesseett
Hardware Reset is performed by holding the RESETn pin low for a minimum of 1µs. A TCLK
input (see Clock Options above) must be applied during and after the reset. When the reset period
is complete and RESETn is de-asserted, the power-up sequence is as follows:
1. Reset all registers of all types to their default state (this is 00h unless otherwise specified in
the gm2110/20 Register Listing).
2. Force each clock domain into reset. Reset will remain asserted for 64 local clock domain
cycles following the de-assertion of RESETn.
3. Operate the OCM_CLK domain at the TCLK frequency.
4. Preset the RCLK PLL to output ~200MHz clock (assumes 14.3MHz TCLK crystal
frequency).
5. Wait for RCLK PLL to Lock. Then, switch the OCM_CLK domain to operate from the
bootstrap selected clock.
6. If a pull-up resistor is installed on ROM_ADDR9 pin (see Table 16), then the OCM becomes
active as soon as OCM_CLK is stable. Otherwise, the OCM remains in reset until
OCM_CONTROL register (0x22) bit 1 is enabled.
June 2002 C2120-DAT-01C
15
Page 23
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
The gm2110/20 chip has three ADC’s (analog-to-digital converters), one for each color (red,
green, and blue).
4.3.1 ADC Pin Connection
The analog RGB signals are connected to the gm2110/20 as described below:
Table 13. Pin Connection for RGB Input with HSYNC/VSYNC
Pin Name ADC Signal Name
Red+ Red
Red- Terminate as illustrated in Figure 10
Green+ Green
Green- Terminate as illustrated in Figure 10
Blue+ Blue
Blue- Terminate as illustrated in Figure 10
HSYNC Horizontal Sync (Terminate as illustrated in Figure 10)
VSYNC Vertical Sync (Terminate as with HSYNC illustrated in Figure 10)
gm2110/20
20Ω
DB15
HSYNC
RED
0.01uF
75Ω
57.6Ω
GND
0.01uF
RED +
RED -
HS
Figure 10. Example ADC Signal Terminations
Please note that it is very important to follow the recommended layout guidelines for the circuit
shown in Figure 10. These are described in "gm5115 Layout Guidelines" document number
C5115-SLG-01A.
June 2002 C2120-DAT-01C
16
Page 24
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.3.2 ADC Characteristics
The table below summarizes the characteristics of the ADC:
Table 14. ADC Characteristics
MIN TYP MAX NOTE
Track & Hold Amp Bandwidth 290 MHz Guaranteed by design. Note that the Track &
Full Scale Adjust Range at RGB Inputs 0.55 V 0.90 V
Full Scale Adjust Sensitivity +/- 1 LSB Measured at ADC Output.
Zero Scale Adjust Sensitivity +/- 1 LSB Measured at ADC Output.
Integral Non-Linearity (INL) +/- 1.5 LSB Fs =135 MHz
Channel to Channel Matching +/- 0.5 LSB
Hold Amp Bandwidth is programmable. 290
MHz is the maximum setting.
Independent of full scale RGB input.
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 gm2110/20 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.
4.3.3 Clock Recovery Circuit
The SDDS (Source Direct Digital Synthesis) clock recovery circuit generates the clock used to
sample analog RGB data (IP_CLK or source clock). This circuit is locked to HSYNC of the
incoming video signal.
Patented digital clock synthesis technology makes the gm2110/20 clock circuits resistant to
temperature/voltage drift. Using DDS (Direct Digital Synthesis) technology, the clock recovery
circuit can generate any IP_CLK clock frequency within the range of 10MHz to 165MHz.
June 2002 C2120-DAT-01C
17
Page 25
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Image Phase
Measurement
HSYNC
Phase
HSYNC
(delayed)
R
G
B
SDDS
ADC
24
IPCLK
Window
Capture
Figure 11. gm2110/20 Clock Recovery
4.3.4 Sampling Phase Adjustment
The programmable ADC sampling phase is adjusted by delaying the HSYNC input to the SDDS.
The accuracy of the sampling phase is checked and the result read from a register. This feature
enables accurate auto-adjustment of the ADC sampling phase.
4.3.5 ADC Capture Window
Figure 12 below illustrates the capture window used for the ADC input. In the horizontal
direction the capture window is defined in IP_CLKs (equivalent to a pixel count). In the vertical
direction it is defined in lines.
All the parameters beginning with “Source” are programmed gm2110/20 registers values. Note
that the input vertical total is solely determined by the input and is not a programmable
parameter.
June 2002 C2120-DAT-01C
18
Page 26
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Height
Reference
Point
Source
Hstart
Source Horizontal Total (pixels)
Source Width
Vstart
Source
Source
Capture Window
Input Vertical Total (lines)
Figure 12. ADC 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 gm2110/20 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.
The gm2110/20 contains hundreds of test patterns, some of which are shown in Figure 13. Once
programmed, the gm2110/20 test pattern generator can replace a video source (e.g. a PC) during
factory calibration and test. This simplifies the test procedure and eliminates the possibility of
image noise being injected into the system from the source. The foreground and background
colors are programmable. In addition, the gm2110/20 OSD controller can be used to produce
other patterns.
June 2002 C2120-DAT-01C
19
Page 27
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Figure 13. Some of gm2110/20 built-in test patterns
The DDC2Bi port can be used for factory testing. This is illustrated in Error! Reference source
not found.. The factory test station connects to the gm2110/20 through the Direct Data Channel
(DDC) of the DSUB15 or DVI connectors. Then, the PC can make gm2110/20 display test
patterns (see section 4.4). A camera can be used to automate the calibration of the LCD panel.
Figure 14. Factory Calibration and Test Environment
The gm2110/20 has an Input Format Measurement block (the IFM) providing the capability of
measuring the horizontal and vertical timing parameters of the input video source. This
information may be used to determine the video format and to detect a change in the input
format. It is also capable of detecting the field type of interlaced formats.
The IFM features a programmable reset, separate from the regular gm2110/20 soft reset. This
reset disables the IFM, reducing power consumption. The IFM is capable of operating while
gm2110/20 is running in power down mode.
DDC
Device-Under-Test Factory Test Station
Camera
Horizontal measurements are measured in terms of the selected IFM_CLK (either TCLK or
RCLK/4), while vertical measurements are measured in terms of HSYNC pulses.
For an overview of the internally synthesized clocks, see section 4.1.
4.5.1 HSYNC / VSYNC Delay
The active input region captured by the gm2110/20 is specified with respect to internal HSYNC
and VSYNC. By default, internal syncs are equivalent to the HSYNC and VSYNC at the input
pins and thus force the captured region to be bounded by external HSYNC and VSYNC timing.
However, the gm2110/20 provides an internal HSYNC and VSYNC delay feature that removes
this limitation. This feature is available for use with the ADC input. By delaying the sync
internally, the gm2110/20 can capture data that spans across the sync pulse.
It is possible to use HSNYC and VSYNC delay for image positioning. (Alternatively,
Source_HSTART and Source_VSTART in Figure 12 are used for image positioning of analog
input.) Taken to an extreme, the intentional movement of images across apparent HSYNC and
VSYNC boundaries creates a horizontal and/or vertical wrap effect.
HSYNC is delayed by a programmed number of selected input clocks.
June 2002 C2120-DAT-01C
20
Page 28
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
HS(system)
HS(internal)
capture
programmable
delay
activeactive
capturecapture
input block actually
captures across HSYNC
Figure 15. HSYNC Delay
Delayed horizontal sync may be used to solve a potential problem with VSYNC jitter with
respect to HSYNC. VSYNC and HSYNC are generally driven active coincidentally, but with
different paths to the gm2110/20 (HSYNC is often regenerated from a PLL). As a result,
VSYNC may be seen earlier or later. Because VSYNC is used to reset the line counter and
HSYNC is used to increment it, any difference in the relative position of HSYNC and VSYNC is
seen on-screen as vertical jitter. By delaying the HSYNC a small amount, it can be ensured that
VSYNC always resets the line counter prior to it being incremented by the “first” HSYNC.
active data crosses HS boundary
delayed HS placed safely within blanking
Data
HS (system)
Internal Delayed HS
Figure 16. Active Data Crosses HSYNC Boundary
4.5.2 Horizontal and Vertical Measurement
The IFM is able to measure the horizontal period and active high pulse width of the HSYNC
signal, in terms of the selected clock period (either TCLK or RCLK/4.). Horizontal
measurements are performed on only a single line per frame (or field). The line used is
programmable. It is able to measure the vertical period and VSYNC pulse width in terms of
rising edges of HSYNC.
Once enabled, measurement begins on the rising VSYNC and is completed on the following
rising VSYNC. Measurements are made on every field / frame until disabled.
4.5.3 Format Change Detection
The IFM is able to detect changes in the input format relative to the last measurement and then
alert both the system and the on-chip microcontroller. The microcontroller sets a measurement
June 2002 C2120-DAT-01C
21
Page 29
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
difference threshold separately for horizontal and vertical timing. If the current field / frame
timing is different from the previously captured measurement by an amount exceeding this
threshold, a status bit is set. An interrupt can also be programmed to occur.
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
Figure 17. ODD/EVEN Field Detection
4.5.6 Input Pixel Measurement
The gm2110/20 provides a number of pixel measurement functions intended to assist in
configuring system parameters such as pixel clock, SDDS sample clocks per line and phase
setting, centering the image, or adjusting the contrast and brightness.
4.5.7 Image Phase Measurement
This function measures the sampling phase quality over a selected active window region. This
feature may be used when programming the source DDS to select the proper phase setting. Please
refer to the gm2110/20 Programming Guide for the optimized algorithm.
June 2002 C2120-DAT-01C
22
Page 30
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.5.8 Image Boundary Detection
The gm2110/20 performs measurements to determine the image boundary. This information is
used when programming the Active Window and centering the image.
4.5.9 Image Auto Balance
The gm2110/20 performs measurements on the input data that is used to adjust brightness and
contrast.
44..66 RReeaallCCoolloor
r
DDiiggiittaall CCoolloorr CCoonnttrroollss
TM
TM
The gm2110/20 provides high-quality digital color controls. These consist of a subtractive "black
level" stage, followed by a full 3x3 RGB matrix multiplication stage, followed by a signed offset
stage as shown in Figure 18.
Subtractive
Offset
(Black Level)
3x3 Color
Conversion
Additive
Offset
(Brightness)
Red In
Green In
Blue In
-
-
-
X
+/-
+/-
+/-
Red Out
Green Out
Blue Out
Figure 18. RealColorTM Digital Color Controls
This structure can accommodate all RGB color controls such as black-level (subtractive stage),
contrast (multiplicative stage), and brightness (signed additive offset). In addition, it supports all
YUV color controls including brightness (additive factor applied to Y), contrast (multiplicative
factor applied to Y), hue (rotation of U and V through an angle) and saturation (multiplicative
factor applied to both Y and V).
To provide the highest color purity all mathematical functions use 10 bits of accuracy. The final
result is then dithered to eight or six bits (as required by the LCD panel).
4.6.1 RealColor™ Flesh tone Adjustment
The human eye is more sensitive to variations of flesh tones than other colors; for example, the
user may not care if the color of grass is modified slightly during image capture and/or display.
However, if skin tones are modified by even a small amount, it is unacceptable. The gm2110/20
features flesh tone adjustment capabilities. This feature is not based on lookup tables, but rather a
manipulation of YUV-channel parameters. Flesh tone adjustment is available for all inputs.
June 2002 C2120-DAT-01C
23
Page 31
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.6.2 Color Standardization and sRGB Support
Internet shoppers may be very picky about what color they experience on the display. gm2110/20
RealColor
compliant with standard color definitions, such as sRGB. sRGB is a standard for color exchange
proposed by Microsoft and HP (see
to make LCD monitors sRGB compliant, even if the native response of the LCD panel itself is
not. For more information on sRGB compliance using gm2110/20 family devices please refer to
the sRGB application brief C5115-APB-02.
44..77 HHiigghh--QQuuaalliittyy SSccaalliinngg
The gm2110/20 zoom scaler uses an adaptive scaling technique proprietary to Genesis Microchip
Inc., and provides high quality scaling of real time video and graphics images. An input
field/frame is scalable in both the vertical and horizontal dimensions.
Interlaced fields may be spatially de-interlaced by vertically scaling and repositioning the input
fields to align with the output display’s pixel map.
4.7.1 Variable Zoom Scaling
The gm2110/20 scaling filter can combine its advanced scaling with a pixel-replication type
scaling function. This is useful for improving the sharpness and definition of graphics when
scaling at high zoom factors (such as VGA to SXGA).
TM
digital color controls can be used to make the color response of an LCD monitor
www.srgb.com)
. gm2110/20 RealColor controls can be used
4.7.2 Horizontal and Vertical Shrink
The gm2110/20 provides an arbitrary horizontal and vertical shrink down to (50% + 1 pixel/line)
of the original image size. This allows the gm2110/20 to capture and display images one VESA
standard format larger than the native display resolution. For example, UXGA may be captured
and displayed on an SXGA panel.
4.7.3 Moiré Cancellation
The gamma curve and other non-linearities can affect the energy distribution of pixels when
scaled to different areas of the screen. This is an example of the Moiré effect. The gm2110/20 has
hardware features to negate the Moiré effect, improving the scaling quality.
44..88 BByyppaassss OOppttiioonnss
The gm2110/20 has the capability to completely bypass internal processing. In this case,
captured input signals and data are passed, with a small register latency, straight through to the
display output.
The gm2110/20 is also able to bypass the zoom filter.
June 2002 C2120-DAT-01C
24
Page 32
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
44..99 GGaammmmaa LLUUTT
The gm2110/20 provides an 8 to 10-bit look-up table (LUT) for each input color channel
intended for Gamma correction and to compensate for a non-linear response of the LCD panel.
A 10-bit output results in an improved color depth control. The 10-bit output is then dithered
down to 8 bits (or 6 bits) per channel at the display (see section 4.10.3 below). The LUT is user
programmable to provide an arbitrary transfer function. Gamma correction occurs after the zoom
/ shrink scaling block.
The LUT has bypass enable. If bypassed, the LUT does not require programming.
The Display Output Port provides data and control signals that permit the gm2110/20 to connect
to a variety of flat panel or CRT devices. The output interface is configurable for 18 or 24-bit
RGB pixels, either single or double pixel wide. All display data and timing signals are
synchronous with the DCLK output clock.
4.10.1 Display Synchronization
Refer to section 4.1 for information regarding internal clock synthesis.
The gm2110/20 supports the following display synchronization modes:
• Frame Sync Mode: The display frame rate is synchronized to the input frame or field
rate. This mode is used for standard operation.
• Free Run Mode: No synchronization. This mode is used when there is no valid input
timing (i.e. to display OSD messages or a splash screen) or for testing purposes. In freerun mode, the display timing is determined only by the values programmed into the
display window and timing registers.
4.10.2 Programming the Display Timing
Display timing signals provide timing information so the Display Port can be connected to an
external display device. Based on values programmed in registers, the Display Output Port
produces the horizontal sync (DHS), vertical sync (DVS), and data enable (DEN) control signals.
The figure below provides the registers that define the output display timing.
Horizontal values are programmed in single pixel increments relative to the leading edge of the
horizontal sync signal. Vertical values are programmed in line increments relative to the leading
edge of the vertical sync signal.
June 2002 C2120-DAT-01C
25
Page 33
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
DH_BKGND_STARTDH_BKGND_END
Display Background Window
Display Active Window
HSYNC region
Horizontal Blanking (Back Porch)
Vertical Blanking (Front Porch)
DHS
DEN **
DH_HS_END
DH_ACTIVE_START
DH_ACTIVE_WIDTH
VSYNC Region
Vertical Blanking (Back Porch)
DH_TOTAL
DVS
DV_BKGND_START
DV_ACTIVE_START
DV_ACTIVE_LENGTH
DV_TOTAL
Horizontal Blanking (Front Porch)
DV_BKGND_END
**
DEN is not asserted during vertical blanking
DV_VS_END
Figure 19. Display Windows and Timing
The double-wide output only supports an even number of horizontal pixels.
DCLK (Output )
DEN (Output )
ER/EG/EB
(Output )
OR/OG/ OB
(Output )
XXX
rgb0rgb4rgb3rgb2rgb1
XXX
Figure 20. Single Pixel Width Display Data
June 2002 C2120-DAT-01C
26
Page 34
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
DCLK (Out put )
DEN (Output )
ER/EG/EB
(Output)
OR/OG/OB
(Output)
XXX
XXX
rgb0rgb8rgb6rgb4rgb2
rgb1rgb9rgb7rgb5rgb3
Figure 21. Double Pixel Wide Display Data
4.10.3 Panel Power Sequencing (PPWR, PBIAS)
gm2110/20 has two dedicated outputs PPWR and PBIAS (pins 113 and 114) to control LCD
power sequencing once data and control signals are stable. The timing of these signals is fully
programmable.
The Gamma LUT outputs a 10-bit value for each color channel. This value is dithered down to
either 8-bits for 24-bit per pixel panels, or 6-bits for 18-bit per pixel panels.
The benefit of dithering is that the eye tends to average neighboring pixels and a smooth image
free of contours is perceived. Dithering works by spreading the quantization error over
neighboring pixels both spatially and temporally. Two dithering algorithms are available: random
or ordered dithering. Ordered dithering is recommended when driving a 6-bit panel.
All gray scales are available on the panel output whether using 8-bit panel (dithering from 10 to 8
bits per pixel) or using 6-bit panel (dithering from 10 down to 6 bits per pixel).
June 2002 C2120-DAT-01C
27
Page 35
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
High spikes in the EMI power spectrum may cause LCD monitor products to violate emissions
standards. The gm2110/20 has many features that can be used to reduce electromagnetic
interference (EMI). These include drive strength control, dual-edge clocking and clock spectrum
modulation. These features help to eliminate the costs associated with EMI reducing components
and shielding.
44..1122 OOSSDD
The gm2110/20 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 gm2110/20 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 19).
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.
4.12.1 On-Chip OSD SRAM
The on-chip static RAM (4096 words by 24 bits) stores the cell map and the cell definitions.
In memory, the cell map is organized as an array of words, each defining the attributes of one
visible character on the screen starting from upper left of the visible character array. These
attributes specify which character to display, whether it is stored as 1, 2 or 4 bits per pixel, the
foreground and background colors, blinking, etc.
Registers CELLMAP_XSZ and CELLMAP_YSZ are used to define the visible area of the OSD
image. For example, Figure 23 shows a cell map for which CELLMAP_XSZ =25 and
CELLMAP_YSZ =10.
June 2002 C2120-DAT-01C
28
Page 36
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Address26:
Cell attributes for
st
cell, 2nd row
1
Cell definitions are stored as bit map data. On-chip registers point to the start of 1-bit per pixel
definitions, 2-bit per pixel definitions and 4-bit per pixel definitions respectively. 1, 2 and 4-bit
per pixel cell definitions require 9, 18 and 36 words of the OSD RAM respectively.
CELLMAP_YSZ
Address 1:
Cell Attributes for
upper-left hand cell
Address 25:
Attributes for
upper-right hand cell
CELLMAP_XSZ
Brightness
Contrast
Figure 23. OSD Cell Map
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.
4.12.2 Color Look-up Table (LUT)
Each pixel of a displayed cell is resolved to an 8-bit color code. This selected color code is then
transformed to a 24-bit value using a 256 x 24-bit look up table. This LUT is stored in an on-chip
RAM that is separate from the OSD RAM. Color index value 0x00 is reserved for transparent
OSD pixels.
June 2002 C2120-DAT-01C
29
Page 37
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
The gm2110/20 on-chip microcontroller (OCM) serves as the system microcontroller. It
programs the gm2110/20 and manages other devices in the system such as the keypad, the back
light and non-volatile RAM (NVRAM) using general-purpose input/output (GPIO) pins.
The OCM can operate in two configurations, Standalone configuration and Full-Custom
configuration, as illustrated in Figure 24.
Factory
Port
NVRAM
gm2110/20
OCM
ROM
Output to
LCD Panel
On-chip ROM:
• Auto mode detection
• Auto-configuration
• Standard high-quality OSD menus
• Factory test / calibration functions
Figure 24. OCM Full-Custom and Standalone Configurations
(No external ROM)
Analog
RGB
Input
Configuration settings in NVRAM:
• OSD Colors, Logo and other configuration
• Panel Parameters
• Additional input modes
• Code patches
Figure 24A - Standalone Configuration
Factory
Port
Analog
RGB
Input
User settings in NVRAM:
• Brightness/contrast settings, etc
• On mode-by-mode basis
Figure 24B - Full-Custom Configuration
(Program and Data stored in external ROM)
gm2110/20
OCM
NVRAMPROM
External ROM:
• Contains firmware code and data
for all firmware functions
Output to
LCD Panel
4.13.1 Standalone Configuration
Standalone configuration offers the most simple and inexpensive system solution for generic
LCD monitors. In this configuration the OCM executes firmware stored internally in gm2110/20.
This is illustrated in Figure 24A. The on-chip firmware provides all the standard functions
required in a high-quality generic LCD monitor. This includes mode-detection, autoconfiguration and a high-quality standard OSD menu system. No external ROM is required
(which reduces BOM cost) and no firmware development effort is required (which reduces timeto-market).
In Standalone configuration many customization parameters are stored in NVRAM. These
include the LCD panel timing parameters, the color scheme and logos used in the OSD menus,
the functions provided by the OSD menus, and arbitrary firmware modifications. These
customization parameters are described in the Standalone User’s Guide (B0108-SUG-01). Based
on the customization parameters, G-Wizard (a GUI-based development tool used to program
Genesis devices) produces the hex image file for NVRAM. G-Probe is then used to download the
NVRAM image file into the NVRAM device. This is illustrated in Figure 25 below.
June 2002 C2120-DAT-01C
30
Page 38
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Specify Configurable Parameters
(See Standalone Users Guide)
G-Wizard
NVRAM
Image File
(.nvram_image. hex)
G-Probe
LCD
Controller
Board
gm2110/20
NVRAM
OCM
Figure 25. Programming OCM in Standalone Configuration
4.13.2 Full-Custom Configuration
In full-custom configuration the OCM executes a firmware program running from external ROM.
This is illustrated in Figure 24B. A parallel port with separate address and data busses is available
for this purpose. This port connects directly to standard, commercially available ROM or
programmable Flash ROM devices. Normally 64KB or 128KB of ROM is required.
Both instructions and data are fetched from external ROM on a cycle-by-cycle basis. The speed
of the accesses on the parallel port is determined by the gm2110/20 internal OCM_CLK. This in
turn determines the speed of the external ROM device. For example, if a 14.3 MHz crystal is
being used to produce TCLK, and the OCM_CLK is derived from TCLK, then a 45ns ROM can
be used.
To program gm2110/20 in full-custom configuration the content of the external ROM is
generated using Genesis software development tools G-Wizard and OSD-Workbench. This is
illustrated in Figure 26. G-Wizard is a GUI-based tool for capturing system information such as
panel timing, support modes, system configuration, etc. OSD-Workbench is a GUI based tool for
defining OSD menus and functionality.
June 2002 C2120-DAT-01C
31
Page 39
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
G-Wizard
gm2110/20 Driver
OSD Workbench
gm2110/20 Driver
Firmware source files (*.c *.h)
Keil Compiler
External ROM
Image File (.hex)
ROM Programmer
LCD
Controller
Board
gm2110/20
ROM
OCM
Figure 26. Programming the OCM in Full-Custom Configuration
Genesis recommends using Keil compiler (http://www.keil.com/
) to compile the firmware source
code into a hex file. This hex file is then downloaded into the external ROM using commercially
available ROM programmers.
For development purposes it may be useful to use a ROM emulator. For example, a PROMJET
ROM emulator can be used (http://www.emutec.com/pjetmain.html)
.
4.13.3 In-System-Programming (ISP) of FLASH ROM Devices
Gm2110/20 has hardware to program FLASH ROM devices. In particular, the
GPIO11/ROM_WEn pin can be connected to the write enable of the FLASH ROM. Firmware is
then used to perform the writes using the gm2110/20 host registers.
June 2002 C2120-DAT-01C
32
Page 40
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.13.4 UART Interface
The gm2110/20 OCM has an integrated Universal Asynchronous Remote Terminal (UART) port
that can be used as a factory debug port. In particular, the UART can be used to 1) read / write
chip registers (see section 4.15 Error! Reference source not found.), 2) read / write to NVRAM
(see section 4.13.1 above), and 3) read / write to FLASH ROM (see section 4.13.3 Error! Reference source not found.).
The UART is connected to pins GPIO4/UART_DI and GPIO5/UART_DO. gm2110/20 has
serial-to-parallel conversion hardware which is accessed by firmware. The baud rate for serial
communication is determined by a gm2110/20 host register.
4.13.5 DDC2Bi Interface
The gm2110/20 also features hardware support for DDC2Bi communication over the DDC
channel of either the analog or DVI input ports. The specification for the DDC2Bi standard can
be obtained from VESA (
www.vesa.org)
. The DDC2Bi port can be used as a factory debug port
or for field programming. In particular, the DDC2Bi port can be used to 1) read / write chip
registers (see section 4.15 below), 2) read / write to NVRAM (see section 4.13.1 above), and 3)
read / write to FLASH ROM (see section 4.13.3 above).
Two pairs of pins are available for DDC2Bi communication. For DDC2Bi communication over
the analog VGA connector pins GPIO22/HCLK and GPIO16/HFSn should be connected to the
DDC clock and data pins of the analog DSUB15 VGA connector. For DDC2Bi communication
over the DVI connector pins GPIO14/DDC_SCL and GPIO15/DDC_SDA should be connected
to the DDC clock and data pins of the DVI connector. Gm2110/20 contains serial to parallel
conversion hardware, that is then accessed by firmware for interpretation and execution of the
DDC2Bi command set.
4.13.6 General Purpose Inputs and Outputs (GPIO’s)
The gm2110/20 has 21 general-purpose input/output (GPIO) pins. These are used by the OCM to
communicate with other devices in the system such as keypad buttons, NVRAM, LEDs, audio
DAC, etc. Each GPIO has independent direction control, open drain enable, for reading and
writing. Note that the GPIO pins have alternate functionality as described in Table 15 below.
June 2002 C2120-DAT-01C
33
Page 41
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
Pin Name Pin Number Alternate function
GPIO0/PWM0
GPIO1/PWM1
GPIO2/PWM2
GPIO3/TIMER1 43 Timer1 input of the OCM.
GPIO4/UART_DI
GPIO5/UARD_D0
GPIO6
GPIO7
GPIO8/IRQINn 39 OCM external interrupt source (IRQINn).
GPIO9
GPIO10
GPIO11/ROM_WEn 50 Write enable for external ROM if programmable FLASH device is used.
GPIO12/NVRAM_SDA
GPIO13/NVRAM_SCL
GPIO14/DDC_SCL
GPIO15/DDC_SDA
GPIO16/HFSn 205 Serial data line for 2-wire host interface.
GPIO17
GPIO18
GPIO19
GPIO20
GPIO21/IRQn 4 OCM interrupt output pin.
GPIO22/HCLK 204 Serial input clock for 2-wire host interface.
GPO0
GPO1
GPO2
GPO3
GPO4
GPO5
GPO6
GPO7
40
41
42
44
45
46
47
48
49
51
52
6
7
1
208
207
206
119
120
121
122
123
124
125
126
PWM0, PWM1 and PWM2 back light intensity controls, as described in section 4.16.2 below.
OCM UART data in/out signals respectively.
Data and clock lines for master 2-wire serial interface to NVRAM when gm2110/20 is used in
standalone configuration (section Figure 24).
General-purpose input/output signals. Open drain option via register setting.
[Bi-directional Input, Schmitt trigger (400mV typical hysteresis), 5V-tolerant]
During hardware reset, the external ROM address pins ROM_ADDR[15:0] are configured as
inputs. On the negating edge of RESETn, the value on these pins is latched and stored. This
value is readable by the on-chip microcontroller (or an external microcontroller via the host
interface). Install a 10K pull-up resistor to indicate a ‘1’, otherwise a ‘0’ is indicated because
ROM_ADDR[15:0] have a 60KΩ internal pull-down resistor.
Signal Name Pin Name Description
HOST_ADDR(6:0) ROM_ADDR(6:0) If using 2-wire host protocol, these are the serial bus device address.
HOST_PROTOCOL ROM_ADDR7 Program this bit to 0 for 2-wire host interface operation.
HOST_PORT_EN ROM_ADDR8 Program this bit to 0 for 2-wire host interface operation.
OCM_START ROM_ADDR9 Determines the operating condition of the OCM after HW reset:
USER_BITS(7:5) ROM_ADDR(12:10) These settings are available for reading from a status register but are otherwise unused by the
OSC_SEL ROM_ADDR13 Selects reference clock source (refer to Figure 7):
OCM_ROM_CNFG(1) ROM_ADDR14 Together with OCM_CONTROL register (0x22) bit 4, this bit selects internal/external ROM
0 = OCM remains in reset until enabled by register bit.
1 = OCM becomes active after OCM_CLK is stable.
gm2110/20. Used to allow the OCM or external MCU access configuration settings.
0 = XTAL and TCLK pins are connected to a crystal oscillator.
1 = TCLK input is driven with a single-ended TTL/CMOS clock oscillator.
configuration.
0 = All 48K of ROM is internal.
1 = All 48K of ROM is in external ROM using ROM_ADDR15:0 address outputs if
register 0x22 bit 4 is 0. If register 0x22 bit 4 is 1, 0-32K ROM is internal, and
32K~48K ROM is external using ROM_ADDR13:0 address outputs.
Table 16. Bootstrap Signals
June 2002 C2120-DAT-01C
34
Page 42
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
44..1155 HHoosstt IInntteerrffaaccee
gm2110/20 contains many internal registers that control its operation. These are described in the
gm2115 Family Register Listing (C2115-DSL-01).
A serial host interface is provided to allow an external device to peek and poke registers in the
gm2110/20. This is done using a 2-wire serial protocol. Note that 2-wire host interface requires
bootstrap settings as described in Table 16.
An arbitration mechanism ensures that register accesses from the OCM and the 2-wire host
interface port are always serviced (time division multiplexing).
4.15.1 Host Interface Command Format
Transactions on the 2-wire host protocol occurs in integer multiples of bytes (i.e. 8 bits or two
nibbles respectively). These form an instruction byte, a device register address and/or one or
more data bytes. This is described in Table 17.
The first byte of each transfer indicates the type of operation to be performed by the gm2110/20.
The table below lists the instruction codes and the type of transfer operation. The content of bytes
that follow the instruction byte will vary depending on the instruction chosen. By utilizing these
modes effectively, registers can be quickly configured.
The two LSBs of the instruction code, denoted 'A9' and 'A8' in Table 17 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’.
Table 17. Instruction Byte Map
Bit
7 6 5 4 3 2 1 0
0 0 0 1 x x A9 A8 Write Address Increment
0 0 1 0 x x A9 A8 Write Address No Increment
1 0 0 1 x x A9 A8 Read Address Increment
1 0 1 0 x x A9 A8 Read Address No Increment
0 0 1 1 x x A9 A8
0 1 0 0 x x A9 A8
1 0 0 0 x x A9 A8
1 0 1 1 x x A9 A8
1 1 0 0 x x A9 A8
0 0 0 0 x x A9 A8
0 1 0 1 x x A9 A8
0 1 1 0 x x A9 A8
0 1 1 1 x x A9 A8
1 1 0 1 x x A9 A8
1 1 1 0 x x A9 A8
1 1 1 1 x x A9 A8
Operation Mode Description
(for table loading)
(for table reading)
Reserved
Spare No operation will be performed
Allows the user to write a single or multiple bytes to a specified starting
address location. A Macro operation will cause the internal address pointer to
increment after each byte transmission. Termination of the transfer will cause
the address pointer to increment to the next address location.
Allows the user to read multiple bytes from a specified starting address
location. A Macro operation will cause the internal address pointer to
increment after each read byte. Termination of the transfer will cause the
address pointer to increment to the next address location.
June 2002 C2120-DAT-01C
35
Page 43
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
4.15.2 2-wire Serial Protocol
The 2-wire protocol consists of a serial clock HCLK (pin number 204) and bi-directional serial
data line HFSn (pin number 205). The bus master drives HCLK and either the master or slave
can drive the HFSn line (open drain) depending on whether a read or write operation is being
performed. The gm2110/20 operates as a slave on the interface.
The 2-wire protocol requires each device be addressable by a 7-bit identification number. The
gm2110/20 is initialized on power-up to 2-wire mode by asserting bootstrap pins
HOST_PROTOCOL=0 and the device identification number on HOST_ADDR(6:0) on the rising
edge of RESETn (see Table 16). This provides flexibility in system configuration with multiple
devices that can have the same address.
A 2-wire data transfer consists of a stream of serially transmitted bytes formatted as shown in the
figure below. A transfer is initiated (START) by a high-to-low transition on HFSn while HCLK
is held high. A transfer is terminated by a STOP (a low-to-high transition on HFSn while HCLK
is held high) or by a START (to begin another transfer). The HFSn signal must be stable when
HCLK is high, it may only change when HCLK is low (to avoid being misinterpreted as START
or STOP).
HCLK
HFSn
START
123789
Receiver acknowledges by holding SDA low
456
ADDRESS BYTE
R/WA6A1A2A3A4A5A0D6D7D0
ACK
1289
ACK
DATA BYTE
STOP
Figure 27. 2-Wire Protocol Data Transfer
Each transaction on the HFSn is in integer multiples of 8 bits (i.e. bytes). The number of bytes
that can be transmitted per transfer is unrestricted. Each byte is transmitted with the most
significant bit (MSB) first. After the eight data bits, the master releases the HFSn line and the
receiver asserts the HFSn line low to 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 28 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 gm2110/20 (the slave receiver).
June 2002 C2120-DAT-01C
36
Page 44
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
HCLK
123456789
HFSn
START
DEVICE ADDRES S
123456789
R/W
ACKOPERATI ON CODE
A9
123456789129
A8
Two MSBs of regi ster address
REGISTER ADDRESS
DATA
ACKACK
DATA
ACK
STOP
Figure 28. 2-Wire Write Operations (0x1x and 0x2x)
The Read Address Increment (0x90) and Read Address No Increment (0xA0) operations are
illustrated in Figure 29. The highlighted sections of the waveform represent moments when the
transmitting device must release the HFSn line and waits for an acknowledgement from the
master receiver.
Note that on the last byte read, no acknowledgement is issued to terminate the transfer.
HCLK
DATA
ACK
DATADATA
START
DEVICE ADDRESS
R/W
ACK
HFSn
DEVICE ADDRESS
START
R/W
ACK
OPERATION CODE
REGISTER ADDRESS
ACKACK
Figure 29. 2-Wire Read Operation (0x9x and 0xAx)
Please note that in all the above operations the operation code includes two address bits, as
described in Table 17.
The gm2110/20 provides a low power state in which the clocks to selected parts of the chip may be
disabled (see Table 19).
4.16.2 Pulse Width Modulation (PWM) Back Light Control
Many of today’s LCD back light inverters require both a PWM input and variable DC voltage to
minimize flickering (due to the interference between panel timing and inverter’s AC timing), and
adjust brightness. Most LCD monitor manufactures currently use a microcontroller to provide
these control signals. To minimize the burden on the external microcontroller, the gm2110/20
generates these signals directly.
There are three pins available for controlling the LCD back light, PWM0 (GPIO0), PWM1
(GPIO1) and PWM2 (GPIO2). The duty cycle of these signals is programmable. They may be
connected to an external RC integrator to generate a variable DC voltage for a LCD back light
inverter. Panel HSYNC is used as the clock for a counter generating this output signal.
June 2002 C2120-DAT-01C
37
Page 45
*** Genesis Microchip Confidential ***gm2110/20 Preliminary Data Sheet
5. ELECTRICAL SPECIFICATIONS
The following targeted specifications have been derived by simulation.
Propagation delay from DCLK to DA*/DB* 1.0 4.5 0.5 3.5 -0.5 2.5 -1.5 1.5
Propagation delay from DCLK to DHS 1.0 4.5 0.5 3.5 -0.5 2.5 -1.5 1.5
Propagation delay from DCLK to DVS 0.5 4.5 0.0 3.5 -1.0 2.5 -2.0 1.5
Propagation delay from DCLK to DEN 1.0 4.5 0.5 3.5 -0.5 2.5 -1.5 1.5
Note: DCLK Clock Adjustments are the amount of additional delay that can be inserted in the DCLK path, in order to reduce
the propagation delay between DCLK and its related signals.