Texas Instruments (TI) reserves the right to make changes to its products or to
discontinue any semiconductor product or service without notice, and advises its
customers to obtain the latest version of relevant information to verify, before placing
orders, that the information being relied on is current.
TI warrants performance of its semiconductor products and related software to the
specifications applicable at the time of sale in accordance with TI’s standard warranty.
T esting and other quality control techniques are utilized to the extent TI deems necessary
to support this warranty. Specific testing of all parameters of each device is not
necessarily performed, except those mandated by government requirements.
Certain applications using semiconductor products may involve potential risks of death,
personal injury , or severe property or environmental damage (“Critical Applications”).
TI SEMICONDUCTOR PRODUCTS ARE NOT DESIGNED, INTENDED,
AUTHORIZED, OR WARRANTED TO BE SUITABLE FOR USE IN LIFE-SUPPORT
APPLICATIONS, DEVICES OR SYSTEMS OR OTHER CRITICAL APPLICATIONS.
Inclusion of TI products in such applications is understood to be fully at the risk of the
customer. Use of TI products in such applications requires the written approval of an
appropriate TI officer . Questions concerning potential risk applications should be directed
to TI through a local SC sales office.
In order to minimize risks associated with the customer’s applications, adequate design
and operating safeguards should be provided by the customer to minimize inherent or
procedural hazards.
TI assumes no liability for applications assistance, customer product design, software
performance, or infringement of patents or services described herein. Nor does TI
warrant or represent that any license, either express or implied, is granted under any
patent right, copyright, mask work right, or other intellectual property right of TI covering
or relating to any combination, machine, or process in which such semiconductor
products or services might be or are used.
The TVP3026 is an advanced video interface palette (VIP) from T exas Instruments implemented in EPIC
0.2-micron CMOS process. The TVP3026 is a 64-bit VIP that supports packed-24 modes enabling 24-bit
true color and high resolution at the same time without excessive amounts of frame buffer memory. For
example, a 24-bit true color display with 1280 x 1024 resolution may be packed into 4M of VRAM. A
PLL-generated, 50 % duty cycle reference clock is output in the packed-24 modes, maximizing VRAM cycle
time and the screen refresh rate.
The TVP3026 supports all of the pixel formats of the TVP3020 VIP. Data can be split into 4 or 8 bit planes
for pseudo-color mode or split into 12-, 16- or 24-bit true-color and direct-color modes. For the 24-bit direct
color modes, an 8-bit overlay plane is available. The 16-bit direct- and true-color modes can be configured
to IBM XGA
An additional 12-bit mode with 4-bit overlay (4, 4, 4, 4) is supported with 4 bits for each color and overlay .
All color modes support selection of little or big endian data format for the pixel bus. Additionally, the device
is also software compatible with the INMOS IMSG176/8 and Brooktree Bt476/8 color palettes.
Two fully programmable phase-locked loops (PLLs) for pixel clock and memory clock functions are
provided, as well as a simple frequency doubler for dramatic improvements in graphics system cost and
integration. A third loop clock PLL is incorporated making pixel data latch timing much simpler than with other
existing color palettes. In addition, four digital clock inputs (2 TTL- and 2 ECL /TTL-compatible) may be
utilized and are software selectable. The video clock provides a software selected divide ratio of the chosen
pixel clock. The shift clock output may be used directly as the VRAM shift clock. The reference clock output
is driven by the loop clock PLL and provides a timing reference to the graphics accelerator.
Like the TVP3020, the TVP3026 also integrates a complete IBM XGA-compatible hardware cursor on chip,
making significant graphics performance enhancements possible. Additionally, hardware port select and
color-keyed switching functions are provided, giving the user several efficient means of producing graphical
overlays on direct-color backgrounds.
The TVP3026 has three 256-by-8 color lookup tables with triple 8-bit video digital-to-analog converters
(DACs) capable of directly driving a doubly terminated 75-Ω line. The lookup tables are designed with a
dual-ported RAM architecture that enables ultra-high speed operation. Sync generation is incorporated on
the green output channel. Horizontal sync (HSYNC) and vertical sync (VSYNC) are pipeline delayed
through the device and optionally inverted to indicate screen resolution to the monitor. A palette-page
register is available to select from multiple color maps in RAM when 4 bit planes are used. This allows the
screen colors to be changed with only one microprocessor write cycle.
The device features a separate VGA bus which supports the integrated VGA modes in graphics accelerator
applications, allowing efficient support for VGA graphics and text modes. The separate bus also is useful
for accepting data from the feature connector of most VGA-supported personal computers, without the need
for external data multiplexing.
The TVP3026 is highly system integrated. It can be connected to the serial port of VRAM devices without
external buffer logic and connected to many graphics engines directly . It also supports the split shift-register
transfer function, which is common to many industry standard VRAM devices.
The system-integration concept is even carried further to manufacturing test and field diagnosis. T o support
these, several highly integrated test functions have been designed to enable simplified testing of the palette
and the entire graphics system.
(5, 6, 5), T ARGA (1, 5, 5, 5), or 16-bit/pixel (6, 6, 4) configuration as another existing format.
EPIC is a trademark of Texas Instruments Incorporated.
XGA is a registered trademark of International Business Machines Corporation
TARGA is a registered trademark of Truevision Incorporated.
Brooktree is a trademark of Brooktree Corporation.
INMOS is a trademark of INMOS International Limited.
1–1
Page 8
1.1Features
There are many features that the TVP3026 video interface palette possesses; and, the itemized list of them
are:
•Supports system resolutions up to 1600 × 1280 @ 76-Hz refresh rate
•Supports color depths of 4, 8, 16, 24 and 32 bit/pixel
•64-bit-wide pixel bus
•Versatile direct-color modes:
–24-bit/pixel with 8-bit overlay (O, R, G, B)
–24-bit/pixel (R, G, B)
–16-bit/pixel (5, 6, 5) XGA configuration
–16-bit/pixel (6, 6, 4) configuration
–15-bit/pixel with 1 bit overlay (1, 5, 5, 5) TARGA configuration
–12-bit/pixel with 4 bit overlay (4, 4, 4, 4)
•True-color gamma correction
•Supports packed pixel formats for 24 bit/pixel using a 32-or 64-bit/pixel bus
•50% duty cycle reference clock for higher screen refresh rates in packed-24 modes
•Programmable frequency synthesis phase-locked loops (PLLs) for dot clock and memory clock
•Loop clock PLL compensates for system delay and ensures reliable data latching
•Versatile pixel bus interface supports little- and big-endian data formats
CLK0106IDot clock 0 TTL input. CLK0 can be selected to drive the dot clock at frequencies
CLK1107IDot clock 1 TTL input. CLK1 can be selected to drive the dot clock at frequencies
CLK2, CLK2108, 109IDual-mode dot clock input. These inputs are emitter-coupled logic
COMP1,
COMP2
DV
DD
D7–D047–54I/OMPU interface data bus. Data is transferred in and out of the register map, palette
NOTE 1: All unused inputs should be tied to a logic level and not allowed to float.
80, 84,
86, 87
77, 79ICompensation. COMP1 and COMP2 provide compensation for the internal
2, 18, 39,
40, 45, 65,
117, 137
Analog power. All AVDD terminals must be connected. A separate cutout in the
DVDD plane should be made for AVDD. The DVDD and AVDD planes should be
connected only at a single point through a ferrite bead close to where power enters
the board.
up to 140 MHz. When using the VGA port, the maximum frequency is 85 MHz.
CLK0 can be selected as the latch clock for VGA data and video controls.
(power-up default).
up to 140 MHz.
(ECL)-compatible inputs. Alternatively, CLK2 and CLK2
individual TTL clock inputs. Programming the clock selection register selects the
chosen configuration. These inputs may be selected as the dot clock up to the
device limit while in the ECL mode or up to 140 MHz in the TTL mode.
reference amplifier . A 0.1-µF ceramic capacitor is required between COMP1 and
COMP2. This capacitor must be as close to the device as possible to avoid noise
pick up.
Digital power. All DVDD terminals must be connected to the digital power plane
with sufficient decoupling capacitors near the TVP3026.
RAM, and cursor RAM on D7–D0.
may be used as
1–5
Page 12
1.5Terminal Functions (Continued)
I/O
DESCRIPTION
TERMINAL
NAMENO.
FS ADJUST76IFull-scale adjustment. A resistor connected between FS ADJUST and GND
GND17, 41, 46,
HSYNCOUT,
VSYNCOUT
IOR, IOG,
IOB
GI/O4–GI/O058–62I/OSoftware programmable general I/O terminals that can be used to control
LCLK123ILatch clock input. LCLK latches pixel-bus-input data and system video controls.
MCLK121OMemory clock output. MCLK is the output of an independently programmable
PCLKOUT144OPixel clock PLL output. PCLKOUT is a buffered version of the pixel clock PLL
PLLGND142Ground for PLL supplies. Decoupling capacitors should be connected between
PLLV
DD
OVS96IOverscan input. OVS controls the display of custom screen borders. When OVS
ODD/EVEN122IOdd or even field display. ODD/EVEN indicates odd or even field during
PLLSEL0,
PLLSEL1
NOTE 1: All unused inputs should be tied to a logic level and not allowed to float.
66, 69, 71,
73, 75,
81–83, 85,
118, 136,
159
67, 68OHorizontal and vertical sync outputs. These outputs are pipeline delayed
70, 72, 74OAnalog current outputs. These outputs can drive a 37.5-Ω load directly (doubly
143, 146PLL power supply. PLLVDD must be a well regulated 5-V power supply voltage.
1, 160IPixel clock PLL frequency selection. PLLSELx selects among two fixed
controls the full-scale range of the DACs.
Ground. All GND terminals must be connected. A common ground plane should
be used.
versions of the selected sync inputs. Output polarity inversion may be
independently selected using general control register bits GCR(1,0).
terminated 75-Ω line), thus eliminating the requirement for any external buffering.
external devices.
VGA data may also be latched with LCLK when selected. LCLK may be a delayed
version of RCLK provided that linear phase changes in RCLK cause
corresponding linear phase changes in LCLK.
PLL frequency synthesizer. The frequency range is 14 – 100 MHz. The dot clock
may be output on this terminal while the MCLK frequency is reprogrammed. See
subsection 2.4.2.1,
output and is mainly for test purposes. This output is independent of the dot clock
source selected by the clock selection register.
PLLVDD and PLLGND. PLLGND should be connected to the system ground
through a ferrite bead.
Decoupling capacitors should be connected between PLLVDD and PLLGND.
T erminal 143 supplies power to the pixel clock PLL. T erminal 146 supplies power
to the MCLK PLL and the loop clock PLL.
is not used, it should be connected to GND.
interlaced display for cursor operation. A low signal indicates the even field and
a high signal indicates the odd field. See subsection 2.7.4,
Operation
frequencies and the programmed frequency of the pixel clock PLL.
, for cursor operation in interlace mode.
Changing the MCLK Frequency
.
Interlaced Cursor
1–6
Page 13
1.5Terminal Functions (Continued)
I/O
DESCRIPTION
TERMINAL
NAMENO.
PSEL97IPort select. PSEL provides the capability of switching between direct color and
P63–P03–16,
19–38,
110 –116,
127–135,
138–141,
149–158
RCLK124OReference clock output. RCLK can be programmed to output either the pixel clock
REF78I/OVoltage reference for DACs. An internal voltage reference of nominally 1.235 V
RESET63IMaster reset. All the registers assume their default state after reset. The default
RD44IRead strobe input. A low signal on RD initiates a read from the register map. Read
RS3–RS042, 55–57IRegister select inputs. These terminals specify the location in the direct register
SCLK126OShift clock output. SCLK is a gated version of the loop clock PLL output and is
SENSE64OTest mode DAC comparator output signal. SENSE is low when one or more of the
NOTE 1: All unused inputs should be tied to a logic level and not allowed to float.
true color or overlay. Multiple true color or overlay windows may be displayed
using the PSEL control. Since PSEL is sampled with LCLK, the granularity for
switching depends on the number of pixels loaded per LCLK. When PSEL is not
used, it should be connected to GND.
IPixel input port. The port can be used in various modes as described in
Section 2.6, Multplexing Modes of Operation. Unused terminals should not be
allowed to float.
PLL (power up default) or the loop clock PLL. The pixel clock PLL is selected to
provide a reference clock to the VGA controller. In this configuration, the VGA
controller returns VGA data and video controls along with a synchronous clock
which becomes the TVP3026 dot clock source using CLK0. For all other modes,
the loop clock PLL is selected to provide the reference clock. In this configuration,
the pixel clock PLL (or external clock) becomes the TVP3026 dot clock source.
The reference clock is used to generate VRAM shift clocks (or clocks a VGA
controller) and generate video controls. The pixel port (or VGA port) and video
controls are latched by LCLK. The loop clock PLL controls the phase of RCLK to
phase-lock the received LCLK with the internal dot clock.
For systems that use SCLK as the VRAM shift clock, RCLK should be connected
to LCLK. An external buffer may be used between RCLK and LCLK when SCLK
is also buffered, within the timing constraints of the TVP3026. RCLK is not gated
off during blanking.
is provided that requires an external 0.1-µF ceramic capacitor between REF and
analog GND. However, the internal reference voltage can be overdriven by an
externally-supplied reference voltage.
state is VGA mode 2 (CLK0 latching of VGA data and video controls).
transfer data is enabled onto the D(7–0) bus when RD
Figure 3–1).
map that is to be accessed as shown in Table 2–1.
gated off during blanking. SCLK may drive the VRAM shift clock directly. This is
intended for designs in which the graphics controller does not supply the VRAM
shift clock.
DAC output analog levels is above the internal comparator reference of
350 mV ±50 mV .
is low (see
1–7
Page 14
1.5Terminal Functions (Continued)
I/O
DESCRIPTION
TERMINAL
NAMENO.
SFLAG105ISplit shift register transfer flag. A high pulse on SFLAG during blanking is passed
SYSBL101ISystem blank input. SYSBL is active low. This should be selected for all modes
SYSHS,
SYSVS
VCLK125OProgrammable auxiliary clock output. VCLK is derived from the internal dot clock
VGABL104IVGA blank input. VGABL is active low. This should be selected when in VGA
VGAHS,
VGAVS
VGA7 –VGA088 –95IVGA port. This bus can be selected as the pixel input bus for VGA modes, but
WR43IWrite strobe input. A low signal on WR initiates a write to the register map. Write
XTAL1,
XTAL2
8/698IDAC resolution selection. This terminal is used to select the data bus width (8 or
NOTE 1: All unused inputs should be tied to a logic level and not allowed to float.
99, 100ISystem horizontal and vertical sync inputs. These signals should be selected for
102, 103IVGA horizontal and vertical sync inputs. These signals should be used when in
119, 120I/OConnections for quartz crystal resonator. XT ALx is a reference for the frequency
directly to the SCLK terminal. This operation is available to meet the special serial
clocking requirements of some VRAM devices. When SFLAG is not used,
SFLAG should be connected to GND.
other than VGA mode 2. This signal is pipeline delayed before being passed to
the DACs.
all modes other than VGA mode 2. These signals are pipeline delayed and each
may be inverted before being passed to the HSYNCOUT and VSYNCOUT
terminals. General control register bits GCR(1,0) control the polarity inversion.
When used to generate the sync level on the green current output, SYSHS
SYSVS
must be active low at the input to the TVP3026.
using a programmable divide ratio and does not utilize the loop clock PLL for
synchronization. Since pixel data and video controls are always referenced to
RCLK and LCLK (or CLK0), use of VCLK for the frame buffer interface or video
timing is not recommended.
mode 2 (CLK0 latching of VGA data and video controls). VGABL
delayed before being passed to the DACs.
VGA mode 2 (CLK0 latching of VGA data and video controls). These signals are
pipeline delayed and each may be inverted before being passed to the
HSYNCOUT and VSYNCOUT terminals. General control register bits GCR(1,0)
control the polarity inversion. When used to generate the sync level on the green
current output, VGAHS and VGAVS must be active low at the input to the
TVP3026.
it does not allow for any multiplexing.
transfer data is latched from the D(7–0) bus with the rising edge of WR
synthesis PLLs. XTAL2 may be used as a TTL reference clock input, in which
case XTAL1 is left unconnected.
6 bits) for the DACs and is provided for VGA downward compatibility . When the
8/6
signal is high, 8-bit bus transfers are used with D7 the MSB and D0 the LSB.
For 6-bit bus operation, while the color palette RAM still has the 8-bit information,
the data is shifted to the upper six bits and the two LSBs are filled with zeros at
the output multiplexer to the DACs. The palette RAM data register zeroes the two
MSBs when the palette RAM is read in the 6-bit mode. The function of this
terminal may be overridden in software. When not used, the 8/6
be connected to GND so that 6-bit VGA operation begins at power up.
terminal should
and
is pipeline
.
1–8
Page 15
2 Detailed Description
2.1Microprocessor Unit Interface
The standard microprocessor unit (MPU) interface is supported, giving the MPU direct access to the
registers and memories of the TVP3026. The processor interface is controlled using read and write strobes
, WR), four register select terminals (RS3–RS0), the D7–D0 data terminals, and the 8/6-select terminal.
(RD
The 8/6
provided to maintain compatibility with the IMSG176. See subsection 2.1.1,
Table 2–1 lists the direct register map. These registers are addressed directly by the register select lines
RS0–RS3. Table 2–2 lists the indirect register map. The index for the indirect register map is loaded into
the index register (direct register: 0000). This register also stores the palette RAM write address and cursor
RAM write address. The indexed data register (direct register: 1010) is then used to read or write the register
pointed to in the indirect register map. The index does not post-increment following accesses to the indirect
map.
terminal is used to select between an 8- or 6-bit-wide data path to the color palette RAM and is
8/6 Operation
.
T able 2–1. Direct Register Map
RS3RS2RS1RS0REGISTER ADDRESSED BY MPUR/WDEFAULT (HEX)
0000
0001Palette RAM DataR/WXX
0010Pixel Read-MaskR/WFF
0011Palette/Cursor RAM Read AddressR/WXX
0100Cursor/Overscan Color Write AddressR/WXX
0101Cursor/Overscan Color DataR/WXX
0110Reserved
0111Cursor/Overscan Color Read AddressR/WXX
1000Reserved
1001Direct Cursor ControlR/W00
1010Indexed DataR/WXX
1011Cursor RAM DataR/WXX
1100Cursor-Position X LSBR/WXX
1101Cursor-Position X MSBR/WXX
1110Cursor-Position Y LSBR/WXX
1111Cursor-Position Y MSBR/WXX
Palette/Cursor RAM Write Address/
Index Register
R/WXX
2–1
Page 16
T able 2–2. Indirect Register Map (Extended Registers)
INDEXR/WDEFAULT
0x00Reserved
0x01R0x00
0x02–0x05Reserved
0x06R/W0x00Indirect Cursor Control
0x07–0x0EReserved
0x0FR/W0x06Latch Control
0x10–0x17Reserved
0x18R/W0x80True Color Control
0x19R/W0x98Multiplex Control
0x1AR/W0x07Clock Selection
0x1BReserved
0x1CR/W0x00Palette Page
0x1DR/W0x00General Control
0x1ER/W0x00Miscellaneous Control
0x1F–0x29Reserved
0x2AR/W0x00General-Purpose I/O Control
0x2BR/WXXGeneral-Purpose I/O Data
0x2CR/WXXPLL Address
0x2DR/WXXPixel Clock PLL Data
0x2ER/WXXMemory Clock PLL Data
0x2FR/WXXLoop Clock PLL Data
0x30R/WXXColor-Key Overlay Low
0x31R/WXXColor-Key Overlay High
0x32R/WXXColor-Key Red Low
0x33R/WXXColor-Key Red High
0x34R/WXXColor-Key Green Low
0x35R/WXXColor-Key Green High
0x36R/WXXColor-Key Blue Low
0x37R/WXXColor-Key Blue High
0x38R/W0x00Color-Key Control
0x39R/W0x18MCLK/Loop Clock Control
0x3AR/W0x00Sense Test
0x3BRXXTest Mode Data
0x3CRXXCRC Remainder LSB
†
Silicon revision register is 0x00 for the first pass silicon (see subsection 2.11.4,
Silicon Revision
NOTE 1: Reserved registers should be avoided; otherwise, circuit behavior could
).
deviate from that specified.
†
REGISTER ADDRESSED
BY INDEX REGISTER
Silicon Revision
2–2
Page 17
T able 2–2. Indirect Register Map (Extended Registers) (Continued)
INDEXR/WDEFAULT
0x3DRXXCRC Remainder MSB
0x3EWXXCRC Bit Select
0x3FR0x26ID
0xFFWXXSoftware Reset
NOTE 1: Reserved registers should be avoided; otherwise, circuit behavior
could deviate from that specified.
REGISTER ADDRESSED
BY INDEX REGISTER
2.1.18/6 Operation
The 8/6 terminal is used to select between an 8-bit (set to 1) or 6-bit (reset to 0) data path to the color palette
RAM and it is provided in order to maintain compatibility with the INMOS IMSG176. When
miscellaneous-control register bit 2 (MSC2) is set to 1, the 8/6
controlled by bit 3 of the miscellaneous-control register (MSC3). The reset default is for the 8/6
be enabled (miscellaneous-control register bit 2 = 0, see Section 2.2,
terminal is disabled and 8/6 operation is
terminal to
Color Palette RAM
).
2.1.2Pixel Read-Mask Register
The pixel read-mask register (direct register: 0010) is an 8-bit register used to enable or disable a bit plane
from addressing the color-palette RAM in the pseudo-color and VGA modes. Each palette address bit is
logically ANDed with the corresponding bit from the read-mask register before going to the palette-page
register and addressing the palette RAM.
2.1.3Palette-Page Register
The palette page register (index: 0x1C) allows selection of multiple color look-up tables stored in the palette
RAM when using a mode that addresses the palette RAM with less than 8 bits. When using 1, 2, or 4 bit
planes in the pseudo-color or direct-color + overlay modes, the additional planes are provided from the page
register before the data addresses the color palette. This is illustrated in Table 2–3.
NOTE
The additional bits from the page register are inserted after the read mask.
The palette-page register specifies the additional bit planes for the overlay field in
direct-color modes with less than 8 bits per pixel overlay .
T able 2–3. Allocation of Palette-Page Register Bits
M = bit from pixel port and Pn = n bit from page register.
2–3
Page 18
2.1.4Cursor and Overscan Color Registers
The registers for the three cursor colors and the overscan border color are accessed through the direct
register map. See Section 2.9,
, for use of the cursor colors.
Cursor
The color write address register (direct register: 0100) must be initialized before writing to the color registers.
The lower two bits of this register select one of the four color registers according to T able 2–4. The selected
24-bit color register is loaded a byte at a time by writing a sequence of three bytes (red, green, and blue)
to the color data register (direct register: 0101). After the blue byte is written, the color address register
increments to the next color. All four colors may be loaded with a single write to the color write address
register followed by 12 consecutive writes to the color data register.
The color read address register (direct register: 0111) must be initialized before reading from the color
registers. The lower two bits of this register select one of the four color registers according to T able 2–4. Next,
the color data register (direct register: 0101) is read three times, producing red, green, and blue bytes from
the selected register. After the blue byte is read, the color address register is incremented to the next color .
All four colors may be read with a single write to the color read address register followed by 12 consecutive
reads of the color data register.
The sequence followed by the color address register is overscan color, cursor color 0, cursor color 1, cursor
color 2, . . ., etc. The starting point depends on what was written to the color write address or color read
address register.
Overscan Border
description and subsection 2.7.3,
Table 2–4. Color Register Address Format
BIT 1BIT 0REGISTER
00Overscan color
01Cursor color 0
10Cursor color 1
11Cursor color 2
Three-Color 64 X 64
2.2Color-Palette RAM
The color-palette RAM is addressed by an internal 8-bit address register for reading/writing data from/to the
RAM. This register is automatically incremented following a RAM transfer, allowing the entire palette to be
read/written with only one access of the address register. When the address register increments beyond
the last location in RAM, it is reset to the first location (address 0). All read and write accesses to the RAM
are asynchronous to the internal clocks but are performed within one dot clock. Therefore, read/write
accesses do not cause any noticeable disturbance on the display.
The color palette RAM is 24 bits wide for each location and 8 bits wide for each color. Since a MPU access
is 8 bits wide, the color data stored in the palette is eight bits when the 6-bit mode is chosen. When the 6-bit
mode is chosen, the two MSBs of color data in the palette have the values previously written. However, when
they are read back in the 6-bit mode, the two MSBs are zeros to be compatible with INMOS IMSG176 and
Brooktree Bt176. The output multiplexer shifts the six LSB bits to the six MSB positions and fills the two LSBs
with 0s after the color palette. The multiplexer then feeds the data to the DAC. The test mode data register
and the cyclic redundancy check (CRC) calculation both take data after the output multiplexer, enabling total
system verification. The color palette access is described in the following two sections, and it is fully
compatible with IMSG176/8 and Bt476/8.
2–4
Page 19
2.2.1Writing to Color-Palette RAM
To load the color palette, the MPU must first write to the color-palette RAM write address register (direct
register: 0000) with the address where the modification is to start. The selected color-palette RAM location
is loaded a byte at a time by writing a sequence of three bytes (red, green, and blue) to the palette RAM data
register (direct register: 0001). After the blue write cycle, the color-palette RAM address register increments
to the next location, which the MPU may modify by simply writing another sequence of red, green, and blue
data.
2.2.2Reading From Color-Palette RAM
Reading from the color-palette RAM is performed by writing to the palette read address register (direct
register: 001 1) with the location to be read. Three successive MPU reads from the palette RAM data register
produce red, green, and blue color data (6 or 8 bits depending on the 8/6
Following the blue read cycle, the address register is incremented. Since the color-palette RAM is dual
ported, the RAM may be read during active display without disturbing the video.
mode) for the specified location.
2.3Clock Selection
The TVP3026 VIP provides a maximum of four clock inputs (CLK0, CLK1, and CLK2/CLK2) which can be
selected as two TTL inputs and a differential ECL input or as four TTL inputs. The TTL inputs can be used
for video rates up to 140 MHz while the differential ECL can be utilized up to the device limit. At reset, CLK0
is selected as the clock source for VGA mode 2. This power-up state supports VGA pass through operation
without requiring software intervention.
An alternative clock source can be selected in the clock-selection register (index: 0x1A) during normal
operation. This chosen clock input is then used as the dot clock (representing pixel rate to the monitor, see
Table 2–5).
There are two ways of using CLK0 as a clock source. When CSR(2–0) = 11 1, CLK0 is selected as the clock
source to generate the internal dot clock (see T able 2–6). In this mode, multiplex control register bit MCR6
must be set to 1 and only the VGA port can be used. This selects latching of VGA(7–0) and VGABL
CLK0. When CSR(2–0) = 000, CLK0 is also selected as the clock source to generate the internal dot clock.
However, in this mode, MCR6 must be logic 0, which selects latching of VGA(7–0) and SYSBL
In this mode, the pixel port or the VGA port can be used.
Additionally , two crystal oscillator terminals (XT AL1, XTAL2) are provided for the integrated pixel clock and
memory clock frequency synthesis PLLs. These terminals are intended for use with a quartz crystal
resonator, but a discrete oscillator can also be utilized and input on the XTAL2 terminal (XTAL1 terminal
should be left floating in this case).
with
with LCLK.
Selection of the pixel clock PLL as the pixel clock source is performed by programming the clock selection
register. In general, when the pixel clock PLL is to be selected, it should be selected after the PLL has been
programmed and allowed to achieve lock.
0000Select CLK0 as clock source (for use with LCLK latching of VGA port). See
0001Select CLK1 as clock source
0010Select CLK2 as TTL clock source
0011Select CLK2 as TTL clock source
0100Select CLK2 and CLK2 as ECL clock source
0101Select pixel clock PLL as clock source
0110Disable internal dot clock for reduced power consumption.
0111Select CLK0 as clock source (for use with CLK0 latching of VGA port). See
1XXXReserved
x = do not care
subsection 2.6.2,
subsection 2.6.2,
VGA Modes
VGA Modes
.
.
2.4PLL Clock Generators
In addition to externally supplied clock sources, the TVP3026 has three on-chip, fully programmable,
frequency-synthesis phase-locked loops (PLLs). The first PLL ,pixel clock, is intended for pixel clock
generation for frequencies up to the device limit. The second PLL ,MCLK, is provided for general system
clocking such as the system clock or memory clock, and the third PLL ,called the loop clock PLL, is useful
for synchronizing pixel data and latch timing by compensating for system loop delay .
P
The clock generators use a modified M over (N × 2
(Appendix A provides a listing of all frequencies that can be synthesized and the register values for each.)
The advanced PLLs utilize an internal loop filter to provide maximum noise immunity and minimum jitter.
Except for the reference crystal or oscillator, no external components or adjustments are necessary. Each
PLL can be independently enabled or disabled for maximum system flexibility. Figure 2–1 illustrates the
TVP3026 PLL clocking scheme. The PLLs are programmed through a group of four registers in the
TVP3026 indirect register map. The registers are listed in Table 2–7.
2–6
) scheme to enable a wide range of precise frequencies.
Page 21
T able 2–7. PLL Top Level Registers
INDEXREGISTER
0x2CPLL address register (PAR)
0x2DPixel clock PLL data register (PPD)
0x2EMCLK PLL data register (MPD)
0x2FLoop clock PLL data register (LPD)
The PLL address register (P AR) points to the M, N, P, and status registers of each PLL. This register allows
read and write access and contains three 2-bit pointers, one for each PLL, according to the T able 2–8. Each
pointer may be programmed independently.
Once the PLL data register pointers are set, the selected register is accessed through the pixel clock PLL
data register (index: 0x2D), MCLK PLL data register (index: 0x2E) or the loop clock PLL data register (index:
0x2F). The PLL data register pointer bits are independently autoincremented following a write cycle to the
corresponding PLL data register. The current state of each pointer can be identified by reading the PLL
address register (index: 0x2C). The PLL data register pointer bits do not autoincrement following a read
cycle of the PLL data registers.
The most efficient way to program the pixel clock PLL is to first write zeros to PLL address register bits
P AR(1,0) followed by three consecutive writes to the pixel clock PLL data register to program the N, M, and
P-value registers. Following the third write, the pixel clock PLL pointer will point to the read-only status
register. The status register can then be polled until the LOCK bit is set (the pointer does not autoincrement
on reads). For test purposes, the pixel clock PLL can be output on the PCLKOUT terminal by setting the
pixel clock PLL P-value register bit 6 to 1.
2–7
Page 22
LCLK
CO
CLK0–2/2
RCLK
Loop
Clock PLL
XTAL2
XTAL1
Pixel Clock
PLL
Crystal
Amplifier
MCLK
PLL
VCLK
Divider
VCLK
Internal
Dot Clock
PCLKOUT
MCLK
Figure 2–1. TVP3026 Clocking Scheme
2.4.1Pixel Clock PLL
The pixel clock PLL may be used at frequencies up to the device limit. Appendix A provides optimal register
values for all frequencies that can be synthesized using the common 14.31818 MHz reference. The
following equations describe the voltage controlled oscillator frequency and the PLL output frequency for
the pixel clock PLL as a function of the N, M, and P values and the reference frequency F
The frequency of the voltage controlled oscillator (VCO) is given by:
F
VCO
+8
F
REF
65*M
65*N
Provided:
Minimum VCO FrequencyvF
v
V
Maximum VCO Frequency
Then the PLL output frequency is :
F
+
VCO
P
2
F
PLL
REF
.
(1)
(2)
The N-, M-, and P-value registers may be programmed to any value within the following limits:
40vN(5–0)v62
1vM(5–0)v62
0vP(1,0)v3
The bit assignments of the N-, M-, and P-value and the status register for the pixel clock PLL are given in
Table 2–10. The bits shown as set to 0 or 1 must be written with these fixed values. PCLKEN enables the
pixel clock PLL output onto the PCLKOUT output terminal when set to 1. When PCLKEN is reset to 0, the
PCLKOUT terminal is held at 0. PLLEN resets the PLL to 0 and enables the PLL to oscillate when set to
1. When PFORCE is set to 1, the pixel clock PLL uses its programmed N, M, and P registers and ignores
PLLSEL(1,0). When LFORCE is set to 1, the loop clock PLL uses its programmed N, M, and P registers and
ignores PLLSEL(1,0). The LOCK status bit indicates that the PLL has locked to the selected frequency when
set to 1. The remaining status register bits are for test purposes.
2–8
Page 23
T able 2–10. Pixel Clock PLL Registers
REGISTERBIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0
N value11N5N4N3N2N1N0
M value00M5M4M3M2M1M0
P valuePLLEN PCLKEN11LFORCE PFORCEP1P0
StatusXLOCKXXXXXX
X = do not care
2.4.1.1Pixel Clock PLL Frequency Selection
The pixel clock PLL frequency may be selected using the PLL select inputs PLLSEL(1,0) as shown in
Table 2–11. The first two selections are fixed frequency settings for standard VGA operation. Use of a
standard 14.31818 MHz crystal is assumed. When PLLSEL1 is set to 1, the frequency specified by the pixel
clock PLL N-, M-, and P-value registers is selected. When PLLSEL1 is set to 1 at power up or during a
software reset, the pixel clock PLL N-, M-, and P-value registers default to settings for 25.057 MHz, but with
the PLL disabled. Therefore, the system must reset PLLSEL(1,0) to 0x when a software reset occurs or the
pixel clock PLL and RCLK stops oscillating.
The frequency select inputs also apply to the loop clock PLL. When a fixed frequency is selected
(PLLSEL(1,0) = 0x), the loop clock PLL passes the dot clock frequency to the RCLK multiplexer. Internal
feedback is used, no external signal path from RCLK to LCLK is required. When PLLSEL1 is 1, the frequency
specified by the loop clock PLL N-, M-, and P-value registers is selected.
For VGA Mode 1, the pixel clock PLL is normally selected as the dot clock source (CSR = 0x05) and the
RCLK terminal passes the loop clock PLL output (MCK5 = 1). Then, when PLLSEL(1,0) changes between
a programmed frequency and a fixed frequency , the loop clock PLL automatically changes with it. The loop
clock PLL does not require reprogramming.
For VGA Mode 2, CLK0 should be selected as the dot clock source (CSR = 0x07) and the RCLK terminal
should pass the pixel clock PLL output (MCK5 = 0). In this case, the loop clock PLL should be disabled (bit
P7 = 0) since its output is not used.
T able 2–11. Pixel Clock PLL Frequency Selection
PLLSEL1PLLSEL0PIXEL CLOCK PLL FREQUENCYLOOP CLOCK PLL FREQUENCY
The memory clock (MCLK) PLL may be used at frequencies up to 100 MHz. Appendix A provides optimal
register values for all frequencies that can be synthesized using the common 14.31818 MHz reference. The
MCLK PLL maximum output frequency of 100 MHz may not be exceeded. The equations for the VCO
frequency and for the PLL output frequency are the same as for the pixel clock PLL.
F
VCO
+8
F
REF
Provided:
Minimum VCO FrequencyvF
Then the PLL output frequency is :
F
+
VCO
P
2
F
PLL
The N-, M-, and P-value registers may be programmed to any value within the following limits:
40vN(5–0)v62
1vM(5–0)v62
0vP(1,0)v3
The bit assignments of the N-, M-, and P-value and the status register for the MCLK PLL are given in
Table 2–12. The bits shown as 0 or 1 must be written with these fixed values. PLLEN resets the PLL with
0 and enables the PLL to oscillate when set to 1. When set to 1, the LOCK status bit indicates that the PLL
has locked to the selected frequency . The remaining status register bits are for test purposes. The MCLK
PLL and loop clock PLL are further controlled by the MCLK/loop clock control register shown in T able 2–13.
REGISTERBIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0
N value11N5N4N3N2N1N0
M value00M5M4M3M2M1M0
P valuePLLEN01100P1P0
StatusXLOCKXXXXXX
X = do not care
65*M
65*N
v
V
Maximum VCO Frequency
T able 2–12. MCLK PLL Registers
(3)
(4)
2–10
Page 25
T able 2–13. MCLK/Loop Clock Control Register (Index: 0x39 hex, Access: R/W, Default: 0x18)
000: Divide by 2 (default)
001: Divide by 4
010: Divide by 6
011: Divide by 8
100: Divide by 10
101: Divide by 12
110: Divide by 14
111: Divide by 16
Selects signal to output on RCLK terminal. Pixel clock PLL is selected as
default to support VGA mode 2. In VGA mode 2, the graphics accelerator
receives RCLK and returns its VGA output clock to the CLK0 terminal
along with synchronous VGA data. Select loop clock PLL for all modes
using LCLK data latching. The dot clock /N option provides the output of
the loop clock PLL N prescaler. This signal is a low pulse, one dot clock
wide, with a repetition rate of F
MKC4 selects the signal to output on MCLK terminal. MCLK PLL is
selected as default. Select dot clock to ensure a stable output on MCLK
while MCLK PLL frequency is reprogrammed. See subsection 2.4.2.1,
Changing the MCLK Frequency
until MKC3 bit transitions from 0 to 1. During this transistion, the MKC4
bit should not be changed.
Strobe for MCLK terminal output multiplexer control (MKC4). A 0 to 1
transition of this bit strobes in bit MKC4, causing bit MKC4 to take effect.
While MKC3 is transitioning from 0 to 1, MKC4 should not be changed.
Loop clock PLL post scalar Q divider. This additional frequency division
is applied after the 2P division of the loop clock PLL P-value register. For
a binary value of Q in MKC2–MKC0, the resulting frequency division is
2*(Q+1).
/ (65–N).
REF
. A change of this bit does not take effect
After the device resets, the MCLK PLL outputs a 50.1 1 MHz clock frequency and the pixel clock PLL output
depends on the PLLSEL1 and PLLSEL0 inputs according to Table 2–11. These frequencies assume a
standard 14.31818 MHz crystal reference. The actual output frequencies are proportional to the reference
frequency used.
2.4.2.1Changing the MCLK Frequency
The MCLK is normally used as the graphics controller system clock and memory clock. During
reprogramming of the PLLs, a wide range of unpredictable frequencies are generated as the PLL transitions
to the new programmed frequency . These transition effects can produce unwanted results in some systems.
The TVP3026 provides a mechanism for smooth transitioning of the MCLK PLL. The following programming
steps are recommended.
1.Disable the pixel clock PLL (PLLEN bit = 0). Program the pixel clock PLL N, M, and P registers
(with PLLEN bit = 1) to the same frequency to which MCLK is to be changed. Poll the pixel clock
PLL status until the LOCK bit is set to 1.
2.Select the pixel clock PLL as the dot clock source if it is not already selected.
3.Switch to output dot clock on the MCLK terminal by writing bits MKC4 and MKC3 to 0,0 followed
by 0,1 in the MCLK/loop clock control register.
4.Disable the MCLK PLL (PLLEN bit = 0). program the MCLK PLL N, M, and P registers (with
PLLEN bit = 1) for the new frequency . Poll the MCLK PLL status until the LOCK bit is set to 1.
5.Switch to output MCLK on the MCLK terminal by writing bits MKC4 MKC3 to 1,0 respectively,
followed by 1,1 respectively in the MCLK/loop clock control register.
2–11
Page 26
6.Disable the pixel clock PLL (PLLEN bit = 0). Program the pixel clock PLL N, M, and P registers
(with PLLEN bit = 1) for the original operating pixel frequency . Poll the pixel clock PLL status until
the LOCK bit is set to 1.
2.4.3Loop Clock PLL
Many of the current high performance graphics accelerators with built in VGA support prefer to generate
their own VRAM shift clock and pixel data latching clock (LCLK) as discussed in subsection 2.5.2,
Frame-Buffer Timing Without Using SCLK
reference output to be used by the graphics controller to generate these signals. A common industry
problem exists, however, in that the delay through the loop (i.e., from RCLK through the controller to produce
LCLK and pixel data) may be greater than the RCLK cycle time minus setup time. It then becomes very
difficult to resynchronize the rising edges of the LCLK signal to the internal dot clock within the specified
timing requirements. V ariations in graphics accelerator propagation delays from device to device can cause
severe production problems at the board level. The TVP3026 incorporates a unique loop clock PLL circuit
to maintain a valid LCLK/dot clock phase relationship and ensure that proper LCLK and pixel data setup
timing is met, regardless of the amount of system loop delay.
After device reset, the loop clock PLL provides the dot clock frequency to the RCLK output multiplexer.
However, the RCLK output multiplexer will ignore the loop clock PLL output and instead pass the pixel clock
PLL output to the RCLK terminal, which provides a reference clock to the VGA controller. In this configuration
(VGA mode 2), the VGA controller returns VGA data and video controls along with a synchronous clock that
becomes the TVP3026 dot clock source using CLK0. The PLLSEL(1,0) lines select either the 25.057 MHz
or 28.636 MHz VGA frequencies.
Figure 2–2 illustrates the pixel data latching structure and the operation of the loop clock PLL. The selected
clock source generates the dot clock which drives most of the digital logic of the TVP3026. The dot clock
is used as a reference frequency by the loop clock PLL and is subdivided as specified by the N value register.
The incoming LCLK is used as the other input of the PLL and is subdivided as specified by the M value
register. The PLL generates RCLK with the proper frequency and phase shift to phase align the divided dot
clock and divided LCLK. The pixel bus is latched on the rising edge of LCLK and then aligned with the internal
dot clock to synchronize with internal logic.
. As stated before, the TVP3026 provides an RCLK timing
Input Data Latch Structure
DQ
Dot
Dot Clock
Generator
Clock
DQ
LCLK
From Pixel Clock PLL
TVP3026
Loop Clock
PLL
RCLK
VRAM
Graphics
Accelerator
P(63–0)
LCLK
CLKx
Figure 2–2. Loop Clock PLL Operation
The bit assignments of the N-, M-, and P-value and the status register for the loop clock PLL are shown in
Table 2–14. The bits shown as 0 or set to 1 must be written with these fixed values. When cleared to 0,
PLLEN disables the PLL and when set to 1, enables the PLL to oscillate. When reset to 1,the LOCK status
bit indicates that the PLL has locked to the selected frequency. The remaining status register bits are for
test purposes.
2–12
Page 27
The N-, M-, and P-value registers may be programmed to any value within the following limits.
1vN(5–0)v62
1vM(5–0)v62
0vP(1,0)v3
LESEN enables the LCLK edge synchronizer function and should be set to 1 whenever a packed-24 mode
is used. In the packed-24 modes, only one LCLK rising edge per pixel group is aligned with the internal dot
clock. For example, in 8:3 packed-24 mode, only one of the three LCLKs is aligned to the internal dot clock.
The LCLK edge synchronizer function allows selection of which LCLK edge in the sequence of pixel bus
words is aligned with the internal dot clock. For each packed-24 mode there is an optimum setting for the
LCLK edge synchonizer delay LES1 and LES0. See Table 2–15 and subsection 2.6.6,
Packed-24 Mode
for more details.
T able 2–14. Loop Clock PLL Registers
REGISTERBIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0
N value11N5N4N3N2N1N0
M valueLES1LES0M5M4M3M2M1M0
P valuePLLEN111LESEN0P1P0
StatusXLOCKXXXXXX
X = do not care
2.4.3.1Programming for All Modes Except Packed-24
For all modes except packed-24, programming of the loop clock PLL registers depends on the system
configuration, pixel rate, color depth and pixel bus width. In addition, the internal VCO must be within its
operating range of 1 10 MHz to 220 MHz for the required RCLK output frequency. To determine the proper
M, N, P, and Q register values one should know the following:
•Dot clock frequency (MHz) (F
•Bits/pixel (B) – bits/pixel including overlay fields
•Pixel bus width (W) – total pixel bus width used for this mode
•External division factor (K) – external frequency division between RCLK output and LCLK input
The dot clock frequency can either be generated by the on-chip pixel clock PLL or by an external clock
source. The following two parameters can be easily calculated from the above parameters.
•LCLK frequency (MHz) (F
•RCLK frequency (MHz) (F
The LCLK frequency is given by
FD
B
W
FL+
) – pixel rate
D
) – frequency at which the pixel bus is loaded by the TVP3026
L
) – frequency at RCLK output terminal of TVP3026
R
(5)
,
The RCLK frequency is FL times the external divide factor. When no external divide factor, K = 1.
FR+K
FL+K
FD
B
W
(6)
The N and M values are set as follows:
N+65*4
W
B
M+61
The P and Q frequency dividers must be programmed so that the VCO is within its operating range. The
VCO frequency is post-scaled by the P-divider followed by the Q-divider. The P-divider register (P) can take
2–13
Page 28
on values of 0, 1, 2, or 3 which correspond to division factors of 1, 2, 4, or 8. The Q-divider register (Q) is
stored in bits 2 – 0 of the MCLK/loop clock control register (index: 0x39) and can take on values of 0, 1, 2,
. . ., 7 which correspond to division factors of 2, 4, 6, . . ., 16. The total post-scalar frequency division factor
is:
Z+2
P)1
(Q)1)+
F
VCO
(65*N
4F
D
)
(7)
K
Next, set F
Finally, determine the P and Q values:
IF Zv16 then P+TRUNC (log2Z), Q
IF Z
Set bits 7,6 of the N-value register to 1,1 (default). Set LES1 and LES0 in the M-value register (bits 7,6) to
0,0 (default). Set bits 7–2 of the P-value register to 111 1 00. This enables the PLL to oscillate and disables
the LCLK edge synchronizer function, which is only used for packed-24 modes. T o reset the PLL by resetting
bit 7 of the P-value register to 0.
to the lower limit of 1 10 MHz and solve for Z:
VCO
27.5
Z
+
u
(65*N
FD
16 then P+3, Q+INT
)
K
ǒ
+
Z*16
16
(8)
0
Ǔ
)
1
2.4.3.2Programming for Packed-24 Modes
For packed-24 modes, the loop clock PLL is programmed according to Table 2–15. The LCLK edge
synchronizer delay (M-value register bits 7 and 6) depends on whether the graphics accelerator is driving
the VRAM shift clock (true color control register bit TCR5 is cleared to 0) or the TVP3026 is driving the VRAM
shift clock (TCR5 = 1). See subsection 2.6.6,
modes. As shown in Table 2–15, a different setting is required for the M-value register in the 4:3 multiplex
mode depending on the silicon revision. Software can determine the silicon revision by reading the silicon
revision register at index 0x01 (a value ≤ 0x20 indicates revision A and ≥ 0x21 indicates revision B).
T able 2–15. Loop Clock PLL Settings for Packed-24 Mode
The latch-control register definition is listed in Table 2–16.
T able 2–16. Latch-Control Register (Index: 0x0F , Access: R/W, Default: 0x06)
BIT NAMEVALUESDESCRIPTION
LCR7, LCR600Reserved
0×06All 1:1, 4:1, 8:1, and 16:1 multiplex modes.
All 2:1 multiplex modes.
0×07
0×084:3 packed-24 (revision B)
LCR5–LCR0
The P and Q frequency dividers must be programmed so that the VCO is within its operating range of 1 10
MHz to 220 MHz. The VCO frequency is post scaled by the P-divider followed by the Q-divider. The P-divider
register (P) can take on values of 0, 1, 2, or 3 which correspond to division factors of 1, 2, 4, or 8. The
Q-divider register (Q) is stored in bits 2 – 0 of the MCLK/loop clock control register (index: 0x39) and can
take on values of 0, 1, 2, . . ., 7 which correspond to division factors of 2, 4, 6, . . ., 16. The total post-scalar
frequency division factor is:
Set bits 7–2 of the P-value register to 11 1 1 10. This enables the PLL to oscillate and enables the LCLK edge
synchronizer function. To reset the PLL, clear bit 7 of the P-value register to 0.
ǒ
16
Ǔ
)
1
2.4.3.3Typical Device Connection
After reset, the TVP3026 defaults to VGA mode 2 (VGA pass through mode, see subsection 2.6.2,
) as do other devices in the TVP302x family . The RCLK terminal outputs the pixel clock PLL frequency
Modes
which is selected by PLLSEL1 and PLLSEL0. CLK0 is selected as the clock source and the VGA port is
selected as well as VGABL
the default 50.1 1MHz clock frequency .
Figure 2–3 shows the typical device connection for a system with VRAM clocked by the graphics
accelerator. After power up, the pixel clock PLL is output on RCLK and this clock drives the graphics
accelerator’s VGA controller and video timing logic. The accelerator’s output clock is output synchronous
to the VGA data and is input to the TVP3026 CLK0 input as the dot clock source.
, VGAHS, and VGAVS and these are latched with CLK0. The MCLK PLL outputs
VGA
2–15
Page 30
Figure 2–4 shows the typical device connection for a system with VRAM clocked by the TVP3026. In this
case, the RCLK is tied back to the LCLK and this same clock drives the graphics-accelerator VGA controller
and video timing logic. If necessary , the RCLK and SCLK signals may be externally buffered within the timing
constraints (RCLK to LCLK delay) of the TVP3026. The pixel clock PLL is output on RCLK after power up.
For high resolution modes in both configurations, the pixel data is received from VRAM and the loop clock
PLL is used to adjust RCLK so that the received LCLK is aligned with the internal dot clock. The loop clock
PLL must be selected for output on the RCLK terminal. The pixel clock PLL (or an external clock source)
should be selected as the dot clock source.
VRAM
P(63–0)
Graphics
Accelerator
VGA(7–0)
CLK0
LCLK
TVP3026
MCLK
RCLK
Figure 2–3. Typical Configuration – VRAM Clocked by Accelerator
VRAM
Graphics
Accelerator
VGA(7–0)
CLK0
LCLK
P(63–0)
TVP3026
SCLK
MCLK
RCLK
Figure 2–4. Typical Configuration – VRAM Clocked by TVP3026
2.5Frame-Buffer Interface
The TVP3026 provides two output clock signals and one input clock signal for controlling the frame-buffer
interface — SCLK, RCLK, and LCLK. The VCLK output is a division of the internal dot clock and has no
guaranteed phase relationship with RCLK. Therefore, VCLK should not be used for frame buffer interface
timing (pixel data and video controls). VCLK can drive general purpose external logic. Clocking of the frame
buffer interface is discussed in subsection 2.5.1,
operational display modes as defined in Section 2.6,
Frame-Buffer Clocking
Multiplexing Modes of Operation
pixel latching sequence is initiated by a rising edge on LCLK. For those multiplexed modes in which multiple
pixels are latched on one LCLK rising edge, the pixel clock shifts the pixels out starting with the pixels that
reside on the low numbered pixel port terminals. For example, in an 8-bit-per-pixel pseudo-color mode with
an 8:1 multiplex ratio, the pixel display sequence is P(7 –0), P(15–8), P(23–16), P(31–24), P(39–32),
P(47–40), P(55–48), and P(63–56).
The TVP3026 frame-buffer interface also supports little- and big-endian data formats on the pixel bus. This
can be controlled by general-control register (GCR) bit 3. See subsection 2.6.1,
Big-Endian Data Format
, for details of operation.
. The 64-bit pixel bus allows many
, and T able 2–17. The
Little-Endian and
2–16
Page 31
2.5.1Frame-Buffer Clocking
The TVP3026 provides SCLK and RCLK signals, allowing for flexibility in the frame buffer interface timing.
For the pixel port (P63–P0), data is always latched on the rising edge of LCLK. If TCR5 in the true-color
control register is set to 1, use of SCLK is assumed and internal pipeline delay is added to Sync and Blank
to account for the delay in the generation of SCLK. When TCR5 bit clears to 0 (default), then this pipeline
delay is not added, and SCLK should not be used.
2.5.2Frame-Buffer Timing Without Using SCLK
For those systems where the color palette data latch clock (LCLK) and VRAM shift clock are generated by
the graphics controller, the TVP3026 SCLK output is not utilized. In these systems, RCLK should be
connected to the graphics controller to provide the timing reference for pixel data and video control signals.
LCLK should be a delayed version of RCLK such that the pixel data and video control signals meet the setup
and hold requirements relative to the rising edge of LCLK. LCLK may be a frequency-divided and delayed
version of RCLK as long as linear phase changes in RCLK produce linear phase changes in LCLK (and the
pixel data). Bit TCR5 in the true-color control register must be reset to 0 when SCLK is not being used, so
that additional pipeline delay in the video controls is not inserted.
The first LCLK rising edge out of blank latches the first pixel group. The last LCLK rising edge during blanking
latches the last pixel group. Figure 2–5 shows typical frame-buffer timing for this case. In Figure 2–5, the
delay from RCLK to SYSBL and P63 –P0 depends on the total system loop delay through the graphics
accelerator and the VRAM. This delay may be as long as is required. It need not be less than the RCLK cycle
time.
RCLK
SYSBL
P(63–0)
LCLK
Last Group of Pixel Data
Latch Last Group of Pixel Data
and SYSBL
High
1st
Group
Latch First Group of Pixel Data
and SYSBL
2nd
Group
High
3rd
Group
4th
Group
Figure 2–5. Frame-Buffer Timing Without Using SCLK
2.5.3Frame-Buffer Timing Using SCLK
The SCLK signal which is generated in the TVP3026 may be directly connected to VRAM, providing the shift
clock-to-clock data from VRAM into the TVP3026 pixel input port. The RCLK signal must be used as the
timing reference to clock pixel data into this port. Therefore, when SCLK is used, RCLK is typically directly
tied back to LCLK, or LCLK can be a delayed version (buffered) of RCLK within the timing requirements of
the TVP3026.
Operation using the SCLK timing mode must limit the RCLK-to-LCLK loop delay to the specified maximum
delay. This ensures that the relationship between the end of blanking (SYSBL
pulse is not disturbed. When SCLK is not used, the RCLK to SCLK delay may be as long as is needed by
system logic. Figure 2–6 illustrates the frame-buffer timing using SCLK.
active) and the first SCLK
2–17
Page 32
SYSBL
Latch First Group of Pixel Data
1st
2nd
Group
3rd
Group
Group
Latch Last Group
of Pixel Data
Last Group
LCLK = RCLK
P(63–0)
SCLK
Latch SYSBL
Falling Edge
Latch SYSBL
Rising Edge
Latch Last Group
of Pixel Data
Last Group of Pixel Data
Figure 2–6. Frame-Buffer Timing Using SCLK
2.5.4Split Shift-Register-Transfer Support
When SCLK is used, the TVP3026 supports the special clocking requirements of some VRAM devices. For
example, some VRAM devices require the first SCLK pulse to occur during blanking (SYSBL
between the split shift register transfer (SSRT) and the full shift register transfer VRAM operations. When
SCLK mode is enabled (TCR5 = 1) and SYSBL
is active, a high pulse on the SFLAG input is passed directly
to the SCLK output. When the high pulse on SFLAG is detected at any time during blanking, the first SCLK
pulse normally generated after coming out of blanking is suppressed. This is because the SSRT operation
leaves the first pixel group of the new line on the pixel bus as opposed to the last pixel group of the previous
line. Figure 2–7 shows the SCLK timing mode with the first SCLK pulse relocated. When this function is not
used, the SFLAG terminal should be connected to GND.
active)
SYSBL
LCLK = RCLK
P(63–0)
SFLAG
2–18
Latch First Group
of Pixel Data
SCLK
Latch Last Group of Pixel Data
Last
Group
SCLK Between Split Shift Register and Full Shift Register Transfer
1st Group
2nd
Group
3rd
Group
Figure 2–7. Frame-Buffer Timing Using SCLK (With First SCLK Pulse Relocated)
4th
Group
Page 33
2.6Multiplexing Modes of Operation
The TVP3026 offers a highly versatile multiplexing scheme as illustrated in T ables 2–17 through 2–21. The
multiplexing modes allow the pixel bus (P63–P0) to be programmed to 4, 8, 16, 24, or 32 bits/pixel with pixel
bus widths ranging from 8 to 64 bits. The use of on-chip multiplexing allows graphics systems to be designed
that can support multiple pixel depths and resolutions with no hardware modification. The TVP3026 can also
be configured for pseudo-color or true-color operation.
Multiplexing of the pixel bus is controlled by and programmed through the multiplex-control register and the
true-color control register. Table 2–17 details the register settings for each mode of operation.
2.6.1Little-Endian and Big-Endian Data Format
The TVP3026 pixel bus supports both little- and big-endian data formats for all pseudo-color, direct-color,
and true-color modes of operation. The data-format select is controlled by GCR3 of the general-control
register (see subsection 2.15.1,
set to little endian. When GCR3 is set to 1, the format is set to big endian.
In a big-endian design, the external VRAM data bus bits must be connected in reverse order to the TVP3026
pixel bus; i.e., D63 connected to P0, D0 connected to P63, etc. This configuration connects the pixels to the
P63–P0 bus in the correct order with the first pixel to be displayed on the LSBs of the P63–P0 bus. However,
the individual bits within each pixel are now connected in bit-reversed order. When big-endian format is
selected, this bit-reversed order of each pixel is compensated for internally . The bit-reversal of pixels takes
place in groups of 4, 8, 16, or 32 bits depending on the multiplexing mode selected. This scheme enables
big-endian systems to operate in all of the available color-depths excluding the packed-24 modes.
General Control Registers
2.6.2VGA Modes
The VGA modes emulate the VGA modes of most personal computers. The TVP3026 has a single
configuration called VGA mode 2 to support VGA modes. VGA mode 1, which was formerly specified to
utilize the loop clock PLL with the VGA pixel port is not recommended.
VGA mode 2 supports most graphics accelerators with integrated VGA and also supports add-on graphics
boards that receive the VGA pseudo-color data from a separate VGA controller using a feature connector.
VGA mode 2 is active at power up and after reset and is fully functional without any software intervention.
VGA data and video controls are received with a synchronous VGA clock.
The feature connector configuration is emulated by many graphics accelerators with integrated VGA. In this
configuration, the pixel clock PLL is output on the RCLK terminal (bit MKC5 = 0) and sent to the accelerator’s
clock input. The clock output from the accelerator is connected to the CLK0 input of the TVP3026. The loop
clock PLL is not used. The accelerator outputs the VGA video controls and VGA7–VGA0 data synchronous
with CLK0 and, thereby , emulates the feature connector configuration. In VGA mode 2, the TVP3026 derives
the dot clock from CLK0 and latches the VGA7–VGA0 data and VGA video controls using CLK0.
T o program for VGA mode 2, bit MCR7 in the multiplex control register must be set to 1 to select VGA mode,
and bit MCR6 must be reset to 0 to latch VGA7–VGA0 and the VGA video controls with CLK0. The clock
selection register bits CSR3–CSR0 must be set as 0111 for CLK0 data latching.
2.6.3Pseudo-Color Mode
In pseudo-color mode (sometimes called color indexing), the pixel-bus inputs address the palette RAM. The
pallete RAM functions as a color look-up table. The data in each RAM location is comprised of 24 bits, 8
bits for each of the red, green, and blue color DACs. The pseudo-color mode is further grouped into 3
submodes, depending on the data bits per pixel. In each submode, a pixel bus width of 8, 16, 32 or 64 bits
may be used. Data should always be presented on the least significant bits of the pixel bus. For example,
when a 16-bit pixel bus width is used, the pixel data must be presented on P15–P0. See T ables2–17 and
2–18 for more details.
Submode 1 uses four bit planes to address the color palette. The four bits are fed into the low-order address
bits of the palette with the four high-order address bits being defined by the palette-page register. This mode
provides 16 pages of 16 colors and can be used at multiplex ratios of 2:1 to 16:1.
). When GCR3 is reset 0 (default), the format is
2–19
Page 34
Submode 2 uses four bit planes to address the color palette. Each byte of the pixel bus contains two pixels
which are in reverse order (nibble swapped). The first pixel is latched in on the upper four bits and the second
pixel is latched in on the lower four bits of each byte. The 4-bit pixels are fed into the low-order address bits
of the palette with the four high-order address bits being defined by the palette-page register. This mode
provides 16 pages of 16 colors and can be used at multiplex ratios from 2:1 to 16:1.
Submode 3 uses eight bit planes to address the color palette. Since all eight bits of palette address are
specified from the pixel port, the palette-page register is not used. This mode provides 256 colors and can
be used at mulitplex ratios from 1:1 to 8:1.
NOTE
The port select and color-key switching functions must be disabled and set for
palette graphics when in the pseudo-color mode. This is the default condition at
reset. See Section 2.8,
Port Select and Color-Key Switching
.
2.6.4Direct-Color Mode
In direct-color mode, 24, 16, 15, or 12 bits of data can be transferred directly to the RGB DACs but with the
same amount of pipeline delay as the overlay data and the control signals. Depending on which direct-color
mode is selected, overlay is provided by utilizing the remaining bits of the pixel bus to address the palette
RAM. This results in a 24-bit RAM output that is then used as overlay information to the DACs. The overlay
capability is designed to work with the port select and color-key switching functions to provide overlay in
,
specific windows or on a pixel-by-pixel basis on the direct-color display as discussed in Section 2.8
Select and Color-Key Switching
NOTES in the following section.
. See T able 2–17 for more details on selecting the direct-color modes. See
Port
Submodes 1 and 2 are packed-24 modes. See subsection 2.6.6,
packed-24 modes.
Submodes 3 and 4 are the 32-bit direct-color modes that use eight bits to represent each color and eight
bits for overlay . The 64-bit-wide pixel bus of the TVP3026 allows multiplex ratios of 1:1 or 2:1. Submode 3
is organized as overlay, red, green, and blue, while submode 4 is organized as blue, green, red, and overlay .
Submode 5 is the XGA-compatible 5–6–5 (16-bit-color) mode supporting five bits of red, six bits of green,
and five bits of blue data. The TVP3026 supports multiplex ratios for this mode of 1:1, 2:1, and 4:1. Overlay
is not available in this mode.
Submode 6 is the TARGA-compatible 1–5–5–5 mode that uses 15 bits for color and 1 bit for overlay. It
allows 5 bits for each of red, green, and blue data and one bit for overlay . The TVP3026 supports 1:1, 2:1,
and 4:1 multiplex ratios in this mode.
Submode 7 is the 6–6–4 configuration. It provides six bits of red, six bits of green, and four bits of blue. The
TVP3026 supports 1:1, 2:1, and 4:1 multiplexing in this mode. Overlay is not available in this mode.
Submode 8 is the 4–4–4–4 configuration. It provides 12 bits of direct color and 4 bits of overlay . It allows
four bits for each of red, green, and blue data. The TVP3026 supports 1:1, 2:1, and 4:1 multiplexing ratios
in this mode.
Packed-24 Modes
, for a description of the
2.6.5True-Color Mode
In true-color mode, the palette RAM is partitioned into three independent 256-word x 8-bit memory blocks
that can be individually addressed by each color field of the true-color data. The independent memory blocks
provide data for a single DAC output. With this architecture, gamma correction for each color is possible.
Since the palette is used in true-color mode, there is no memory space to be used for the overlay function.
All of the true-color submodes are the same as direct color except that overlay is not available. See
Table 2–17 for more details on mode selection, and see NOTES below.
2–20
Page 35
NOTES
Since less than 8 bits are defined for each color in the various 12- or 16-bit director true-color modes, the data bits for the individual colors are internally shifted to
the MSB locations and the remaining LSB locations for each color are set to 0
before 8-bit data is sent to the DACs.
Since the overlay information goes through the pseudo-color data path, it is subject
to read masking and the palette-page register. This is especially important for those
direct-color modes that have less than eight bits of overlay information. The overlay
information in these modes justifies to the LSB positions, and the remaining MSB
positions are filled with the corresponding palette-page data before addressing the
palette RAM.
In order to display true color (gamma corrected through the palette), the port select
function or the color-key switching function must be set for palette graphics. For
direct color, both functions must be set for direct color.
When in the 24-bit direct-color or true-color modes, the data input works only in the
8-bit mode. In other words, when only six bits are used, the two LSB inputs for each
color need to be tied to GND. However, the palette, which is used by the overlay
input, is still governed by the 8/6
or 6 bits of data accordingly. The 8/6
The default condition after reset is for the port select function to be disabled and
selecting palette graphics (MSC4 = MSC5 = 0) The default condition for
the color key function is to be disabled and selecting direct-color graphics
(CKC4 = CKC3 = CKC2 = CKC1 = CKC0 = 0). The overall effect is to default to
palette graphics since the two are combined by a logical OR function. Also since
MCR7 = 1 at reset, the VGA port is selected.
function, and the output multiplexer selects 8 bits
function is also valid in the other 16-bit modes.
2.6.6Packed-24 Mode
The packed-24 mode provides for more efficient use of the frame buffer. For example, a 1280 x 1024 x
24 bpp display may be implemented using 4 Mbytes of VRAM. Without packed-24, this can require 6 or 8
Mbytes of VRAM. Packed-24 modes can be used with direct-color (color palette bypass) or with true-color
(gamma correction). The color depth is 24 bit/pixel and data may be arranged as R-G-B or B-G-R. Overlay
fields are not available. Either a 64-bit pixel bus or a 32-bit pixel bus may be used. The 64-bit pixel bus
supports 8:3 packed-24 (8 pixels per 3 LCLKs) and 5:2 packed-24 (5 pixels per 2 LCLKs). The 32-bit pixel
bus supports 4:3 packed-24 (4 pixels per 3 LCLKs) and 5:4 packed-24 (5 pixels per 4 LCLKs). See Tables
2–19 and 2–20 for data formats.
The loop clock PLL must be set up to generate RCLK at the proper frequency which can be 3/8, 2/5, 3/4,
or 4/5 of the dot clock frequency for the multiplexing ratios given above. Since the RCLK is PLL-synthesized,
a 50% duty cycle RCLK is generated. As compared to other packed-pixel palette DACs, which generate the
RCLK waveform using a digital state machine, the TVP3026 provides a longer RCLK period for a given dot
clock frequency. This means a higher screen refresh rate is possible using VRAM of the same speed grade.
For example, for the 8:3 packed-24 mode, the RCLK PLL must be set to output a clock that is 3/8 the
frequency of the pixel clock. For a 1280 x 1024 display at 135 MHz pixel rate, a 50.6 MHz VRAM serial clock
rate can be used. See subsection 2.4.3,
Packed-24 operation using the SCLK timing mode must limit the RCLK-to-LCLK loop delay to the specified
maximum delay . The following constraints apply to packed-24 mode:
•The number of LCLKs (pixel bus loads) during the active portion of the horizontal line must be
a multiple of the number of LCLKs for each pixel group, i.e., a multiple of 3 for 8:3 packed-24
mode.
•The number of LCLKs during the total horizontal line (active + blanked) must be a multiple of the
number of LCLKs for each pixel group.
Loop Clock PLL
, for a description of the loop clock PLL.
2–21
Page 36
•The first active pixel bus load (LCLK rising edge) of the horizontal line must load the first word
of the M-word sequence comprising the pixel group. For designs not using SCLK
(bit TCR5 = 0), the first active pixel bus load coincides with the first time SYSBL
is sampled high.
For designs using SCLK (bit TCR5 = 1), the first active pixel bus load occurs two LCLKs after the
first time SYSBL
is sampled high. See Figures 2–5 and 2–6.
Synchronization of the packed-24 operation is performed by the loop clock PLL. Consider an N:M packed-24
mode which packs N pixels into M pixel bus words. Internally , the TVP3026 must run through a sequence
of N dot clocks for each pixel group. The loop clock PLL supplies a clock (RCLK) which is M/N times the
dot clock frequency . The graphics accelerator uses RCLK to generate SYSBL
on any of the M LCLKs of the sequence. Once SYSBL
is sampled, the TVP3026 declares the proper LCLK
. Initially , SYSBL could change
as the first in the M-word sequence. However, the relationship between LCLK and the internal dot clock has
not been established. Only one LCLK rising edge in the M-word pixel group is aligned with the internal dot
clock, but which one of the M LCLKs is aligned has not been specified. This selection is important for
operation of the unpacking logic and is programmable using the LCLK edge synchronizer delay . The LCLK
edge synchronizer function allows selection of which LCLK edge of the pixel group is aligned with the internal
dot clock. For each packed-24 mode, there is an optimum setting for LES1 and LES0 (see T ables 2–14 and
2–15).
The following steps outline a typical setup procedure for packed-24 mode:
1.Program the pixel clock PLL for the desired dot clock frequency and poll status until locked.
2.Select pixel clock PLL as clock source in clock selection register.
3.Program true-color control register and multiplex control register as given in Table 2–17.
4.Download palette RAM when gamma correction is being used (true-color mode).
5.Program latch control register as given in Table 2–27.
6.Set port select and color-key switching functions appropriately. For true-color mode, select the
palette RAM. This is the power-up default. For direct-color mode, select palette bypass. From
defaults, this can be done by setting bit MSC5 = 1 in the miscellaneous control register.
7.Select loop clock PLL for output on RCLK terminal by setting MCLK/loop clock control register
bit MKC5 to 1.
8.Program the loop clock PLL as described in subsection 2.4.3.2,
, and poll status until locked.
Modes
Programming for Packed-24
2–22
Page 37
2.6.7Multiplex-Control Registers
The pixel port multiplexer is controlled by two 8-bit registers in the indirect register map (see T able 2–2). The
various multiplexing modes can be selected according to Table 2–17.
NOTES
For all modes utilizing VGA7–VGA0, MCR6 should be set to 0, When MCR6 is reset
to 0, VGABL
VGA7–VGA0 are latched by CLK0. This is referred to as VGA mode 2. VGA
mode 2 supports most graphics accelerators with integrated VGA and also
supports add-on graphics boards that receive the VGA pseudo-color data from a
separate VGA controller using a feature connector. VGA mode 2 is active at power
up and after reset, and is fully functional without any software intervention. VGA
data and video controls are received with a synchronous VGA clock.
For all modes, true-color control register bit TCR5 selects one of two timing modes
for the blanking pipelining and pixel bus timing. See Figures 2–5 and 2–6
When bit TCR5 is set to 0 (default) it is assumed that the VRAM shift clock is
sourced by the graphics accelerator, and that SCLK from the TVP3026 is not being
used. In this case, the first sample of blanking (SYSBL
first pixel group latched into P63–P0 are assumed to coincide on the same rising
edge of LCLK.
When bit TCR5 is set to 1, it is assumed that SCLK is used as the VRAM shift clock.
In this case, the TVP3026 must first sample blanking in order to start toggling SCLK
and then latch the first pixel group into P63–P0. Therefore, the TVP3026 assumes
there will be a 2-LCLK delay between the first sample of blanking inactive and the
latching of the first pixel group by LCLK. In this case, the TVP3026 inserts additional
pipeline delays to align the internal blanking signal with the pixel data at the DACs.
It is recommended that all unused input terminals be connected to ground to
conserve power.
, VGAVS, VGAHS are used and these video controls and
.
or VGABL) inactive and the
2–23
Page 38
T able 2–17. Multiplex Mode and Bus-Width Selection
NOTES: 3. Data bits per pixel is the number of bits of pixel information used as color data for each displayed pixel, often
referred to as the number of bit planes.
4. Multiplex ratio indicates the number of pixels per bus load or the number of pixels associated with each
LCLK (load clock) pulse. For example, with a 64-bit pixel bus width and 8 bit planes, each bus load is
comprised of 8 pixels. The RCLK frequency must be chosen as a function of the multiplex mode selected.
The RCLK frequency is not automatically set by mode selection; it must be set by programming the loop
clock PLL registers.
5. This column is a reference to T ables 2–18 through 2–21, where the actual manipulation of pixel information
and pixel latching sequences are illustrated for each of the multiplexing modes. For the pseudo-color pixel
latching sequence (V1 and S1 through S12) refer to Table 2–18. For the packed-24 mode pixel latching
sequence associated with the direct-color and true-color modes, refer to Table 2–19. For the direct-color
mode pixel latching sequence, refer to T able 2–20 for little-endian format and to Table 2–21 for big-endian
format.
NOTES: 3. Data bits per pixel is the number of bits of pixel information used as color data for each displayed pixel, often
referred to as the number of bit planes.
4. Multiplex ratio indicates the number of pixels per bus load or the number of pixels associated with each
LCLK (load clock) pulse. For example, with a 64-bit pixel bus width and 8 bit planes, each bus load is
comprised of 8 pixels. The RCLK frequency must be chosen as a function of the multiplex mode selected.
The RCLK frequency is not automatically set by mode selection; it must be set by programming the loop
clock PLL registers.
5. This column is a reference to T ables 2–18 through 2–21, where the actual manipulation of pixel information
and pixel latching sequences are illustrated for each of the multiplexing modes. For the pseudo-color pixel
latching sequence (V1 and S1 through S12) refer to Table 2–18. For the packed-24 mode pixel latching
sequence associated with the direct-color and true-color modes, refer to Table 2–19. For the direct-color
mode pixel latching sequence, refer to T able 2–20 for little-endian format and to Table 2–21 for big-endian
format.
NOTES: 3. Data bits per pixel is the number of bits of pixel information used as color data for each displayed pixel, often
1–5–5–5
7
16-bit
-
-
6–6–4
8
16-bit
---
4–4–4–4
referred to as the number of bit planes
4. Multiplex ratio indicates the number of pixels per bus load, or the number of pixels associated with each
LCLK (load clock) pulse. For example, with a 64-bit pixel bus width and 8 bit planes, each bus load is
comprised of 8 pixels. The RCLK frequency must be chosen as a function of the multiplex mode selected.
The RCLK frequency is not automatically set by mode selection; it must be set by programming the loop
clock PLL registers.
5. This column is a reference to T ables 2–18 through 2–21, where the actual manipulation of pixel information
and pixel latching sequences are illustrated for each of the multiplexing modes. For the pseudo-color pixel
latching sequence (V1 and S1 through S12) refer to Table 2–18. For the packed-24 mode pixel latching
sequence associated with the direct-color and true-color modes, refer to Table 2–19. For the direct-color
mode pixel latching sequence, refer to T able 2–20 for little-endian format and to Table 2–21 for big-endian
format.
T able 2–18. Pseudo-Color Mode Pixel-Latching Sequence (see Note 6)
VGA7 VGA0
P3 P0
P3 P0
P3 P0
P3 P0
P7 P4
P7 P4
P7 P4
P7 P4
P7 P4
P7 P4
P3 P0
P3 P0
P11–P8
P11–P8
P11–P8
P15–P12
P15–P12••
P11–P8
•
•
P31–P28
P63–P60
P7P4
P7P4
P7P0
P7P0
P7P0
P7P0
v1s1s2s3s4s5s6
–
s7s8s9s10s11s12
P7–P4P7–P4P7–P0P7–P0P7–P0P7–P0
P3–P0
P15–P12P15–P12P23–P16P23–P16
P11–P8P11–P8P31–P24•
•••
P31–P28P63–P60P55–P48
P27–P24P59–P56P63–P56
NOTE 6: The latching sequence is initiated by a rising edge on LCLK. For modes in which multiple pixels are
latched, the LCLK rising edge latches all the pixels and the pixel clock shifts them out starting with
the lowest-numbered pixel. For example, in pseudo-color submode 1 with a 16-bit pixel bus width,
the rising edge of LCLK latches four pixels and the pixel clock shifts them out in the order P(3–0),
P(7–4), P(11–8), and P(15–12). Note that each line in each entry above represents one pixel.
NOTE 7: The latching sequence is initiated by a rising edge on LCLK. For modes in which multiple pixels are latched
on one LCLK rising edge, the pixel clock shifts them out starting with the low-numbered pixel. Note that each
line of each table entry above represents one pixel. In the table, P31–P24(B) means P31 = BLUE7 (MSB),
P30 = BLUE6, . . ., P24 = BLUE0 (LSB). True-color modes are similar , but the overlay fields are not supported.
The TVP3026 has an on-chip three-color 64x64 pixel user-definable cursor. The cursor operation defaults
to the XGA standard, but X-windows and three-color modes are also available (see subsection 2.7.3,
Three-Color 64 X 64 Cursor
The pattern for the 64 x 64 cursor is provided by the cursor RAM, which may be accessed by the MPU at
any time. Cursor positioning is performed using the cursor-position (x,y) registers (see register bit definitions
in subsection 2.15.5,
increasing from left to right and from top to bottom, respectively , as seen on the display screen.
On-chip cursor control is performed by the indirect cursor-control register (index: 0x06). The direct cursor
control register provides an alternate means of enabling and disabling the cursor and selecting the cursor
mode. See the cursor-control register bit definitions in subsection 2.15.3,
and subsection 2.15.4,
2.7.1Cursor RAM
The 64 x 64 x 2 cursor RAM defines the pixel pattern within the 64x64 pixel cursor window. It is not initialized
and may be written to or read by the MPU at any time, even when the cursor is enabled.
The cursor RAM address zero is at the top left corner of the RAM as shown in Figure 2–8. The 0 bits for the
entire cursor array (associated with the cursor plane) cursor plane are stored in the first 512 bytes of the
RAM, and the 1 bits for the entire cursor array are stored in the last 512 bytes of the RAM. Information for
eight cursor pixels is stored in each byte. The MSB (D7) corresponds with the first or leftmost pixel displayed
on the screen.
The 64 x 64 x 2 cursor RAM stores a total of 8192 bits and is accessed through the 8-bit MPU data bus. There
are, therefore, 1024 bytes stored in the RAM and a 10-bit address is used. The upper two bits of the cursor
RAM address (A9, A8) are written to cursor control register (index: 0x06) bits CCR3 and CCR2. The MSB
of the address (CCR3) selects cursor plane 0 or cursor plane 1. The lower eight bits of the cursor RAM
address (A7–A0) are written to the cursor RAM write address register (direct register: 0000) for writing to
the RAM and to the cursor RAM read address register (direct register: 001 1) for reading the RAM. Then the
plane 0 or 1 data for the first eight pixels is written to the cursor RAM data register (direct register: 1011).
This stores the cursor pixel data in the cursor RAM and automatically increments the cursor RAM address
register. The upper two bits of the cursor RAM address also increment when the lower eight bits roll over
from 0xFF to 0x00. A second write to the cursor RAM data register loads the plane 0 or 1 data for the next
eight cursor pixels, and so on. Update of the entire cursor RAM requires 1024 writes to the cursor RAM data
register.
T o read from the cursor RAM, the address of the first cursor-RAM location to be read is loaded using CCR3
and CCR2 and the cursor-RAM read address register. Then a read is performed on the cursor-RAM data
register (direct register: 101 1) which reads the plane 0 or 1 data for eight consecutive pixels. Similar to the
cursor RAM write operation, when the read is completed, CCR3 and CCR2 and the cursor-RAM address
register are automatically incremented and further reads are made to successive cursor RAM locations.
Upload of the entire cursor RAM requires 1024 reads of the cursor RAM data register.
The cursor RAM upper address bits CCR3 and CCR2 in the cursor control register
default to zeros after reset. Since software normally sets these bits to 0s before
accessing the cursor RAM, it may not be necessary to write to CCR3 and CCR2
Internally , the entire 10-bit address is loaded into the address counter after a write
to the cursor RAM address register (direct register, 0000 or 0011), so CCR3 and
CCR2 should be written first if they are to be changed.
Vertical retrace is determined by detecting 2048 or 4096 pixel clocks between rising
edges of the internal BLANK
when set to 1.
). The cursor operates in both noninterlaced and interlaced modes.
Cursor Position-(x,y) Registers
). Positions x and y are defined in the TVP3026
Indirect Cursor Control Register
Direct Cursor-Control Register
signal. CCR4 selects 2048 when reset to 0 and 4096
, for more details.
NOTES
,
2–31
Page 46
Upper Left Corner of Cursor as
Displayed on Screen
CURSOR PLANE 0
64
Pixels
Byte 000Byte 001
Byte 008Byte 009
64
Pixels
First Displayed Pixel
(Leftmost)
Upper Left Corner of Cursor as
Displayed on Screen
64
Pixels
.
.
.
.
.
Byte 1F8Byte 1F9
D7 D6 D5 D4 D3 D2 D1 D0
Byte 200Byte 201
Byte 208Byte 209
.
.
.
.
.
8 Pixels
CURSOR PLANE 1
. . . . . . . .
. . . . . . . .
. . . . . . . .
64
Pixels
. . . . . . . .
. . . . . . . .
Byte 007
Byte 00F
Byte 1FF
Byte 207
Byte 20F
First Displayed Pixel
(Leftmost)
Byte 3F8Byte 3F9
8 Pixels
D7 D6 D5 D4 D3 D2 D1 D0
. . . . . . . .
Byte 3FF
Figure 2–8. Cursor-RAM Organization
2.7.2Cursor Positioning
The cursor-position (x,y) registers position the 64 x 64 cursor on the display screen. The cursor-position (x,y)
registers specify the location of the cursor bottom right corner on the display screen relative to the end of
the internal BLANK
The values written to the cursor position registers represent the position of the bottom right corner of the
cursor. When zero is written to the cursor position x or cursor position y registers, the cursor is off the screen.
When the cursor position (x,y) is (1,1), only a single pixel of the cursor (cursor 63,63)is displayed and it
appears at the upper left corner of the screen.
2–32
signal. Figure 2–9 shows the orientation of the x,y coordinates for positioning the cursor.
Page 47
When the upper left corner of the cursor is preferred as a reference, determine the screen (x,y) coordinate
where cursor (0,0) is to be positioned. Then add 64 (0x40) to the x coordinate and add 64 (0x40) to the y
coordinate and write these values to the cursor position (x,y) registers. For example, when the upper left
corner of the cursor is to be positioned at screen (0,0), write (0x40, 0x40) to the cursor (x, y) registers.
BLANK
X
BLANK
Screen (0,0)
Cursor Position (X,Y) = Screen (X,Y) Where Cursor (0,0) is Located + (64,64)
Cursor (0,0)
Cursor Position (X, Y)
Active Display Area
Y
64 × 64 Cursor Area
Figure 2–9. Cursor Positioning
2.7.3Three-Color 64 x 64 Cursor
The 64 x 64 x 2 cursor RAM provides two bits of cursor information on every dot clock cycle during the
64 x 64 cursor window. CCR1 and CCR0 specifiy whether the XGA mode (10) or X-window mode
(11) or 3-color mode (01) interprets the cursor information. When CCR1 and CCR0 are 00, the cursor is
disabled. The cursor enable/disable and mode select may also be programmed using the direct cursor
control register. The two bits of cursor pixel data determine the cursor appearance as shown in Table 2-22.
Table 2–22. Cursor RAM Vs. Color Selection
RAMCOLOR SELECTION
PLANE 1PLANE 0THREE-COLOR
00TransparentCursor color 0Transparent
01Cursor color 0Cursor color 1Transparent
10Cursor color 1TransparentCursor color 0
11Cursor color 2ComplementCursor color 1
MODE
XGA MODEX-WINDOW MODE
Cursor color 0, 1, and 3: These colors are set by writing to the cursor-color registers.
Transparent: The underlying pixel color is displayed.
Complement: The 1s complement of the underlying pixel color is displayed.
2–33
Page 48
2.7.4Interlaced Cursor Operation
The cursor supports an interlaced display when bit CCR5 in the cursor control register is set to 1. For the
purposes of this discussion assume that the interlaced display consists of an even field of scan lines
numbered 0, 2, 4, . . ., etc., and an odd field of scan lines numbered 1, 3, 5, . . ., etc. Scan line 0 is the first
scan line at the top of the display . When interlaced mode is enabled and cursor position y (CPy) is greater
than 64 (0x40) and less than or equal to 4095 (0xFFF), the first cursor line displayed depends on the state
of the ODD/EVEN
When CPy is an even number, the data in row 0 of the cursor RAM array is displayed during the even field
(ODD/EVEN
RAM array is displayed during the odd field (ODD/EVEN
scan lines.
When CPy is an odd number, the data in row 0 of the cursor RAM array is displayed during the odd field
(ODD/EVEN
RAM array is displayed during the even field (ODD/EVEN
scan lines.
When CPy is between 0 and 64 (0x40), the cursor is partially off the top of the screen. In this case, the data
in the first displayed row of the cursor RAM (row N) is always displayed on scan line 0, which is the first scan
line of the even field, followed by rows N + 2, N + 4, . . ., etc. on successive scan lines. The data in row
N + 1 is displayed on scan line 1, which is the first scan line of the odd field, followed by cursor rows
N + 3, N + 5, . . ., etc. on successive scan lines.
The CCR6 bit of the cursor control register allows the polarity of the received ODD/EVEN
inverted when set to 1.
terminal and value of CPy .
= 0), followed by rows 2, 4, . . ., 62 on successive scan lines. The data in row 1 of the cursor
= 1), followed by rows 3, 5, . . ., 63 on successive
= 1), followed by rows 2, 4, . . ., 62 on successive scan lines. The data in row 1 of the cursor
= 0), followed by rows 3, 5, . . ., 63 on successive
signal to be
2.8Port-Select and Color-Key Switching
The TVP3026 provides two integrated mechanisms for switching between direct-color images and overlay
graphics or between direct-color images and gamma-corrected true-color images midscreen. The
port-select function utilizes the external PSEL terminal to enable the display of multiple true-color or overlay
and direct-color on screen. The color-key switching function combines images on screen based on color
comparison with stored color range registers.
The port-select function is controlled by the miscellaneous-control register (index: 0x1E, see subsection
Miscellaneous-Control Register
2.15.2,
true-color, a true-color mode must be selected from Table 2–17. For switching between direct-color and
overlay, a direct-color mode must be selected from Table 2–17 and the VGA port must be disabled (MCR7
= 0). Overlay switching is not supported for those direct-color modes that do not have overlay capability . In
all cases, the color-key switching function should be disabled and direct-color (CKC4 = CKC3 = CKC2 =
CKC1 = CKC0 = 0) selected. The miscellaneous-control register enables the port-select function and
defines the polarity of PSEL. Since PSEL is sampled with LCLK, the granularity for port-select switching
depends on the number of pixels loaded for each LCLK.
The color-key switching function is controlled by the color-key-control register (index: 0x38, see subsection
Color-Key Control Register
2.15.7,
a true-color mode must be selected from Table 2–17. The incoming red, green, and blue color fields are
compared with their respective color range registers before gamma correction occurs. The overlay terminals
could also be used for the color comparison, although the overlay information is not displayable in true-color
mode. For switching between direct-color and overlay , a direct color mode must be selected from T able 2–17
and the VGA port must be disabled (MCR7 = 0). In all cases, the port-select function should be disabled
and direct-color(MSC5 = 1, MSC4 = 0) selected. The color-key control register enables/disables the red,
green, blue, and/or overlay range comparators and defines the polarity of the color-key switching function.
The comparison values are then written to the eight 8-bit color-key-range registers; color key overlay (low,
high), color key red (low, high), color key green (low, high), and color key blue (low, high). These registers
are accessed through index 0x30 through index 0x37. The granularity for color-key switching is on a
pixel-by-pixel basis.
, for register bit definitions). For switching between direct-color and
, for register definition). For switching between direct-color and true-color,
2–34
Page 49
The port-select and color-key functions are integrated like a logical OR function. When either of the functions
MULTIPLEX MODE SELECTED
switches to palette graphics (true-color or overlay through the palette RAM), palette graphics are displayed
instead of direct color. Therefore, when programming the device for any direct color mode, both the
color-key-control and miscellaneous-control registers must be set so that direct color graphics is displayed.
For true color, gamma corrected through the palette, one of the functions must be set to palette graphics.
2.8.1Port-Select Switching
The port-select switching function is governed by the following equation:
SWITCH = (PSEL × MSC4) ⊕ MSC5
where:
MSCn is the nth bit of the miscellaneous control register.
Table 2-23 then applies:
T able 2–23. Port-Select Switching
DISPLAY RESULT
SWITCH = 0SWITCH = 1
Direct-color with overlayDirect-colorOverlay
Direct-color with true-colorDirect-colorTrue-color
NOTES
The DAC output is undefined if SWITCH = 1 when doing overlay switching in a
direct-color mode that does not have overlay capability .
Miscellaneous-control register bits MSC5 and MSC4 enable or disable the port
select function and select the polarity, as shown in the equation above. When
port-select switching is disabled (MSC4 = 0), MSC5 sets the port-select function
to either palette graphics (MSC5 = 0, default) or direct-color graphics (MSC5 = 1).
The device supports port-select switching when using multiplexing modes.
However, caution must be observed when using the port-select function with the
multiplexing modes other than 1:1, since the PSEL signal is latched on LCLK (same
as the pixel port). Port-select switching on a pixel basis with multiplexing modes
other than 1:1 can be accomplished using the color-key switching function by
supplying multiple PSEL signals, one per pixel, into the available overlay terminals.
(11)
2.8.2Color-Key Switching
The TVP3026 supports color-key-switching modes in which color data from the direct-color and overlay
ports is compared to a set of user-definable color-key registers. Based on the outcome of the comparison,
either direct color, true-color , or overlay , is displayed. High and low color-key registers are provided for each
color and overlay so that ranges of colors can be compared as opposed to a single color value. The color-key
function is controlled by the color-key-control register bits CKC0–CKC4 according to the following equation:
COLOR–KEY = [(OL + CKC0
where: OL = 1 ifcolor-key OL low≤ overlay (Note 17)≤ color-key OL high
thenifCOLOR–KEY = 1, overlay or true-color is displayed.
R = 1ifcolor-key red low≤ direct color (RED)≤ color-key red high
G = 1ifcolor-key green low≤ direct color (GREEN)≤ color-key green high
B = 1ifcolor-key blue low≤ direct color (BLUE)≤ color-key blue high
if COLOR–KEY = 0, direct-color is displayed.
2–35
Page 50
NOTES
CKC0 –CKC3 can be used to individually enable or disable certain colors in the
comparison for maximum flexibility. When color-key switching is not desired,
CKC0–CKC3 should be set to 0. CKC4 then sets the default for either direct color
or palette graphics. The default condition at reset is CKC0 = CKC1 = CKC2 = CKC3
= CKC4 = 0. This causes the color-key function to default to direct-color graphics.
The color-key comparison for the overlay data is performed after the read mask and
palette page registers so that an 8-bit comparison can be performed. This also
gives the maximum flexibility to the user in performing the color comparisons. If the
overlay defined for a given mode is less than 8 bits per pixel, the data is shifted to
the LSB locations and the palette-page register (index: 0x1C) fills the remaining
MSB positions.
For those direct-color modes that have less than 8 bits for each pixel of red, green,
and blue direct-color data, the data is internally shifted to the MSB positions for
each color and the remaining LSB bits are filled with zeros before the 8-bit
comparisons are performed.
2.9Overscan Border
The TVP3026 provides the capability to produce a custom screen border using the overscan function. The
overscan function is enabled by the general-control register bit GCR6. The overscan color is userprogrammable by loading the overscan color red, green, and blue registers (see subsection 2.1.4,
and Overscan Color Registers
When the overscan function is enabled (GCR6 = 1), then the overscan color is displayed any time that OVS
is high and BLANK
and BLANK
is low (active). The blanking pedestal is imposed on the analog outputs when both OVS
are low. When overscan is disabled, then the blanking pedestal occurs whenever BLANK is low .
).
Cursor
The OVS terminal is always sampled on LCLK. Therefore, overscan can only be used with the VGA port
in VGA mode 1 (MSC6 = 1 in the multiplex control register). This selects SYSBL
latching of the VGA port.
Figure 2–10 demonstrates the use of OVS to produce a custom overscan screen border.
2–36
, SYSHS, SYSVS, and LCLK
Page 51
OVS
BLANK
Display Area
Overscan Border
Figure 2–10. Overscan
2.10 Horizontal Zooming
The TVP3026 supports a user-programmable horizontal zooming function of 2, 4, 8, 16, or 32×. Zooming
is controlled through the CKC5–CKC7 bits of the color-key control register (index: 0x38, see subsection
Color-Key Control Register
2.15.7,
, for the color-key control register definition).
When one of the horizontal zoom factors (other than 1×) is chosen, the internal pixel multiplexer is configured
so that it replicates the pixel data on successive dot clocks by the number of times specified by
CKC5–CKC7. Also, the RCLK frequency must be modified by changing the loop clock PLL registers to load
pixel data at the new reduced rate. The new RCLK frequency should be chosen as the old RCLK frequency
divided by the zoom factor.
The horizontal zoom function applies only to the pixel port (P63–P0) data. VGA data cannot be zoomed.
The maximum zoom factor for all packed-24 modes is 8
control register setting depends on the zoom factor as described in subsection 2.15.6,
Register
.
×. When zooming in 5:4 packed-24 mode, the latch
Latch-Control
2.11 Test Functions
The TVP3026 provides several functions that enable system testing and verification. These are detailed in
subsection 2.1 1.1,
2.11.116-Bit CRC
A 16-bit cyclic redundancy check (CRC) is provided so that video data integrity can be verified at the input
to the DACs. The CRC is updated when two consecutive horizontal sync (HSYNC) pulses are detected while
blanking is active (vertical retrace). For the use of the CRC function, HSYNC must be active low at the input
to the TVP3026. The CRC is only calculated on the active screen area, i.e., active blanking stops the
calculation. One complete vertical screen must be completed to generate a valid CRC.
The CRC can be performed on any of the 24 data lines that enter the DACs and is controlled by the CRC
bit select register (index: 0x3E). V alues from 0 to 23 (0x17) may be written to this register to select between
16-Bit CRC
, through subsection 2.1 1.4,
Silicon Revision
.
2–37
Page 52
the 24 different DAC data inputs. The 16-bit remainder that is calculated on the individual DAC data line can
be read from the CRC remainder LSB and CRC remainder MSB registers. See subsection 2.15.9,
Remainder LSB and MSB Registers
, and subsection 2.15.10,
CRC Bit-Select Register
, for the CRC register
CRC
bit definitions.
As long as the display pattern for each screen remains fixed, the CRC result should remain constant. When
the CRC result changes, an error condition should be assumed. The CRC is calculated using the algorithm
depicted by the circuit in Figure 2–1 1. The user can calculate and store the CRC remainder for a test screen
in software and compare this to the TVP3026 calculated CRC remainder to verify data integrity .
The TVP3026 provides a SENSE output to support system diagnostics. SENSE can determine the
presence of the CRT monitor or verify that the RGB termination is correct. SENSE
is reset to 0 when one
or more of the DAC outputs exceeds the internal comparator voltage of 350 mV. The internal 350-mV
reference has a tolerance of ±50 mV when using an external 1.235-V reference. When the internal voltage
reference is used, the tolerance is higher.
The sense comparators are also integrated with the sense test register (index: 0x3A) so that the comparison
results for the red, green, and blue comparators can be read independently through the 8-bit microinterface.
When the sense test register (STR) is read, the results are indicated in the bit positions of Table 2-24.
T able 2–24. Sense Test Register Results
INDEX: 0x3A, ACCESS: R/W, DEFAULT: UNINITIALIZED
STR BITSD7D6D5D4D3D2D1D0
DataDIS0000RGB
where: R = set to 1 if IOR > 350 mV
G = set to 1 if IOG > 350 mV
B = set to 1 if IOB > 350 mV
D6 – D3 are reserved
D7 is disable (set to 1) bit
NOTE
D7 can be set to 1 to disable the sense comparison function. At reset, the sense
comparison is enabled (D7 = 0). D6–D3 are reserved. When this register is written
to, to disable the sense comparator function, bits D6–D0 need to be reset 0.
Both the SENSE output and the sense test register are latched by the falling edge
of the internally sampled blank signal (SYSBL
or VGABL depending on bit MCR6).
In order to have stable voltage inputs to the comparators, the frame-buffer inputs
should be set such that data entering the DACs remains unchanged for a sufficient
period of time prior to and after the BLANK signal falling edge.
2.11.3Identification Code
An ID register with a hardwired code is provided that can be used as a software identification of the device
for different versions of the system design. The ID register is read only through index 0x3F . The value defined
for the TVP3026 is 0x26.
2–38
Page 53
2.11.4Silicon Revision
The silicon revision register (index: 0x01) is a read-only register that enables software to identify the silicon
revision of the TVP3026. On the first pass silicon, this register reads back 0x00. A major revision number
is stored in bits 7–4 and a minor revision number is stored in bits 3–0.
2.12 General-Purpose I/O Register and Terminals
The general-purpose I/O register and output terminals provide a means of controlling external functions
through the TVP3026 microinterface. The 8-bit general-purpose I/O data register has five bit locations
(D0 – D4) tied to external I/O terminals (GI/O0 – GI/O4). The other three bits (D5 – D7) can be used for
general data storage and do not affect any other circuitry . The general-purpose I/O data register is controlled
by the general-purpose I/O control register. GP I/O control register bits IOC0–IOC4 control whether the
corresponding general-purpose I/O terminals are configured as inputs or outputs. The reset default
condition is for GP I/O control register bits IOC0–IOC4 = 0, which configures terminals GI/O0–GI/O4 as
inputs. When any of the GP I/O control register bits are set to 1, the corresponding GI/O terminals are
configured as outputs.
The general-purpose I/O control register, data register , and terminal relationships are shown in Table 2–25.
Table 2–25. General Purpose I/O Registers
DATA BIT
D7D6D5D4D3D2D1D0
General-Purpose I/O Control Register
Index: 0x2A
Access: R/W
Default: 0x00
General-Purpose I/O Data Register
Index: 0x2B
Access: R/W
Default: Uninitialized
There are two ways to reset the TVP3026. The RESET input terminal can perform a hardware reset.
Alternatively, the device has an integrated software reset function.
A hardware reset is initiated by pulling the RESET input terminal low. When RESET is pulled low all
TVP3026 registers go to default states. This reset is asynchronous, and any glitch on this terminal could
change the intended register setup. The default state at reset is VGA mode, and all default register settings
are given in Table 2–2. When a reset is desired at power up, an external resistor, capacitor, and diode
network can be connected to the RESET
terminal. When TTL logic is employed to provide the signal to the
RESET terminal, a pullup resistor should be used to make sure that CMOS levels are achieved.
For a software reset, anytime the reset register (index: 0xFF) is written to, all registers are initialized to
TVP3026 default settings. The data written into the reset register is ignored.
2.14 Analog Output Specifications
The DAC outputs are controlled by three current sources (only two for IOR and IOB) as shown in
Figure 2–12. The default condition is to have 0 IRE difference between blank and black levels, which is
shown in Figure 2–13. When a 7.5-IRE (Institute of Radio Engineers, predecessor to the IEEE) pedestal
is desired, it can be selected by setting bit 4 of the general-control register. This video output is shown in
Figure 2–14.
2–39
Page 54
A resistor (R
PEDESTAL
) is needed between the FS ADJUST terminal and GND to control the magnitude of the
SET
full-scale video signal. The IRE relationships in Figures 2–13 and 2–14 are maintained regardless of the
full-scale output current.
The relationship between R
R
(Ω) = K1 × V
SET
and the full-scale output current IOG is:
SET
(V)/IOG (mA)(13)
ref
The full-scale output current on IOR and IOB for a given R
PSEL polarity select. When MSC5 is reset to 0 and setting PSEL to active high
selects direct-color (provided that the color-key function is set to select
true-color.
Port select switching enable. When MSC4 is set to 1, direct-color /true-color or
rect-color/overlay switching is controlled by the
polarity of the PSEL input.
8- or 6-bit operation bit. When MSC2 is set to 1, MSCR3 determines 8- or 6-bit
operation.
8/6 terminal disable. When MSC2 is set to 1, the 8/6 terminal is ignored and the
8/6 function is controlled by bit 3 of this register.
p
nput.
p
controls the
0: Disable (default)
1: Enable
NOTE 9: Additional power reduction can be achieved by disabling the internal dot clock by writing the binary value 1 10
2–42
to clock selection register (index: 0x1A) bits 2–0.
is enabled. During interlaced cursor o eration, the ODD/EVEN terminal
gg
yg
DCC7–DCC2
000000
Reserved
yg
The indirect cursor-control register is accessed using the indirect register map. This register provides for
enabling and disabling the cursor and other cursor controls. The cursor mode-select may also be controlled
using the direct cursor-control register. The indirect cursor-control register definition is listed in Table 2–28.
Table 2–28. Indirect Cursor-Control Register
BIT NAMEVALUESDESCRIPTION
0: Use indirect
CCR7
CCR4
CCR3, CCR200: (default)
CCR1, CCR0
CCR (default)
1: Use direct CCR
0: Normal (default)
1: Invert
0: Disable (default)
1: Enable
0: 2048 pixels
(default)
1: 4096 pixels
00: Cursor off
(default)
01: Three-color
cursor
10: XGA cursor
11: X-windows
cursor
Cursor control register select. CCR7 selects which cursor control register is
used (direct or indirect). The video BIOS must initialize this bit to 1 for driver
software that uses the direct cursor control register.
ODD/EVEN sense invert. When CCR6 is reset to 0, the field indicator
ODD/EVEN
1 for the odd field and is reset to 0 for the even field. When CCR6 is set to 1,
the polarity of ODD/EVEN
Enable interlaced cursor. When CCR5 is set to 1, interlaced cursor operation
indicates the odd or even field, as determined by value in CCR6.
Vertical blank detection method. V ertical blank is detected using only the blank
signal. The logic detects when there has been either 2048 or 4096 consecutive
dot clocks between rising edges of BLANK.
Cursor RAM address bits 9 and 8. CCR3 is bit 9 and CCR2 is bit 8. These bits
are used with the lower 8 bits of the cursor RAM address supplied by the cursor
RAM address register in the direct register map.
Cursor mode select. CCR1 and CCR0 disable the cursor and select the format
used to interpret the information stored in the cursor RAM when displaying the
cursor. See Table 2–27.
used by the hardware cursor in interlaced display mode, is set to
The direct cursor control register is accessed using the direct register map. This register provides an
alternate means of enabling and disabling the cursor and selecting the cursor mode. This register is provided
for compatibility with commonly used software drivers. The direct cursor-control register definition is listed
in Table 2–29.
Table 2–29. Direct Cursor-Control Register
BIT NAMEVALUESDESCRIPTION
00: Cursor off
(default)
01: Three color
DCC1, DCC0
cursor
10: XGA cursor
11: X-windows
cursor
Cursor mode select. DCC1 and DCC0 disable the cursor and select the format
used to interpret the information stored in the cursor RAM when displaying the
cursor. See Table 2–27.
These registers specify the (x,y) coordinate of the lower right corner of the cursor, see Table 2-30. All
registers are uninitialized and may be written to or read from by the MPU at any time.
The cursor-position X and Y values to be written are calculated as follows:
CPx = desired display screen x position for upper left corner of cursor + 0x40
CPy = desired display screen y position for upper left corner of cursor + 0x40
V alues from 0 to 4095 (0xFFF) can be written into the cursor-position X and Y registers. The values written
into the cursor-position X and Y registers are the screen coordinates for the lower right corner of the cursor.
When zero is written to either the CPx or CPy registers, the cursor is positioned off screen. See subsection
Cursor Positoning
2.7.2,
.
2–44
Page 59
2.15.6Color-Key Control Register (Index 0x38, Access R/W, Default 0x00)
multi lier is configured so that it loads ixel data at a reduced rate. Also, the
CKC7–CKC5
qy
(P63–P0) data. VGA data cannot be zoomed
Color-key-function select. CKC4 controls the polarity of the color-key function
q()
yg
q()
yg
q()
yg
q()
yg
The color-key control register definition is listed in Table 2–31.
Horizontal zoom factor. When other than 1× zoom is selected, the internal pixel
p
RCLK frequency must be modified to facilitate the new reduced rate. The new
RCLK frequency should be chosen as the old RCLK frequency divided by the
zoom factor. The horizontal zoom function applies only to the pixel port
–
See equation (12) in subsection 2.8.2,
Blue-compare enable. CKC3 enables or disables the direct-color blue field
comparison. See equation (12) in subsection 2.8.2,
Green-compare enable. This is used to enable or disable the direct-color green
field comparison. See equation (12) in subsection 2.8.2,
Red-compare enable. This is used to enable or disable the direct-color red field
comparison. See equation (12) in subsection 2.8.2,
Overlay compare enable. This is used to enable or disable the overlay field
comparison. See equation (12) in subsection 2.8.2,
These registers specify the color comparison ranges for the four direct-color data fields when performing
color-key switching. A low and a high register are provided for each of the four data fields to facilitate the
range comparison. See subsection 2.8.2,
Color-Key Switching
eight registers total, two for each color and associated overlay . The formats for both low and high registers
are shown in T able 2-32. V alues 0 to 0xFF may be written into the four color-key-low and four color-key-high
registers.
, for more details on their usage. There are
T able 2–32.
Data BitD7D6D5D4D3D2D1D0
Low ValueL7L6L5L4L3L2L1L0
Data BitD7D6D5D4D3D2D1D0
High ValueH7H6H5H4H3H2H1H0
These registers read the result of the 16-bit CRC calculation (see subsection 2.1 1.1,
not initialized and can be read by the MPU at any time. The CRC is updated when two consecutive HSYNC
pulses are detected while BLANK is active (vertical retrace). The CRC is only calculated on the active screen
area, i.e., active blanking stops the calculation, see Table 2-33. One complete vertical screen must be
completed to generate a valid CRC.
This write-only register specifies which of the 24 DAC data lines the 16-bit CRC should be calculated on (see
subsection 2.1 1.1,
The CRC bit select register data format is shown in Table 2-34. V alues from 0 to 23 (0x17) may be written
into the register to select the appropriate data line.
BIT NAMEVALUESDESCRIPTION
BSR7–BSR5 000Reserved
BSR4–BSR0
2–46
16-Bit CRC
). The register is not initialized and can be written to by the MPU at any time.
CRC control code. BSR4–BSR0 selects one of the 24 DAC input
p
.
Page 61
3 Electrical Characteristics
3.1Absolute Maximum Ratings Over Operating Free-Air Temperature Range
(unless otherwise noted)
Supply voltage, V
Input voltage range, V
Analog output short-circuit duration to any power supply or commonunlimited. . . . . . .
Operating free-air temperature range, T
Storage temperature range, T
Junction temperature, T
Case temperature for 10 seconds, T
Lead temperature 1,6 mm (1/16 inch) from case for 10 seconds260°C. . . . . . . . . . . . . .
†
Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These
are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated
under “recommended operating conditions” is not implied. Exposure to absolute-maximum-rated conditions for
extended periods may affect device reliability.
NOTE 1: All voltage values are with respect to GND.
Supply voltages, AV
Reference voltage, V
High-level input voltage, V
Low-level input voltage, V
Output load resistance, R
FS ADJUST resistor, R
XTAL1/XTAL2 crystal frequency14.31818MHz
Operating free-air temperature, T
DAC-to-DAC matching2%5%
DAC-to-DAC crosstalk–20dB
Output compliance–11.2V
Voltage reference output voltage1.15 1.2351.26V
Output impedance50kΩ
Output capacitancef = 1 MHz, I
Sense voltage reference300350400mV
Clock and data feedthrough–20dB
Glitch area (see Note 3)50pV–s
Pipeline delay, VGA port18
Pipeline delay, pixel port (see Note 4)18
8/6 high8
8/6 low6
8/6 high1
8/6
low1/4
8/6 high1
8/6
low1/4
White level relative to blank17.69 19.0520.4mA
White level relative to black
(7.5 IRE only)
Black level relative to blank
(7.5 IRE only)
Blank level on IOR, IOB0550µA
Blank level on IOG
(with SYNC enabled)
Sync level on IOG (with
SYNC enabled)
One LSB (8/6 high)69.1µA
One LSB (8/6 low)276.4µA
= 013pF
OUT
16.74 17.6218.5mA
0.951.441.9mA
6.297.68.96mA
0550µA
DOTCLK
periods
DOTCLK
periods
Pixel clock PLL,
MCLK PLL
NOTES: 2. Test conditions for RS343-A video signals (unless otherwise specified), see Section 3.2,
Operating Conditions
internal voltage reference, R
3. Glitch area does not include clock and data feedthrough. The – 3-dB test bandwidth is twice the clock rate.
4. Pipeline delay from pixel port depends on Latch Control Register setting. Value shown is for LCR = 0x06.
, using external voltage reference V
may need to be adjusted in order to meet these limits.
SET
= 1.235 V, R
ref
= 523 Ω. When using the
SET
p
Recommended
3–3
Page 64
3.5 Timing Requirements (see Note 5 and Figures 3-1 and 3-2)
Pixel clock PLL
t
Clock cycle time
ns
TVP3026
-135
MIN MAXMIN MAXMIN MAXMIN MAX
DOTCLK frequency135175220250MHz
Internal
frequency
PCLKOUT
frequency
MCLK PLL frequency100100100100MHz
VCO frequency, pixel clock PLL,
MCLK PLL, and loop clock PLL
CLK0 frequency for VGA mode 285858585MHz
cyc
Delay time, RCLK to LCLK
t
d4
(see Note 6)
Setup time, RS(3–0) valid before RD
t
su1
or WR↓
Hold time, RS(3–0) valid after RD or
t
h1
WR
↓
t
Setup time, D(7–0)valid before WR↑35353535ns
su2
t
Hold time, D(7–0)valid after WR↑0000ns
h2
Setup time, VGA(7–0) and VGAHS,
VGAVS
t
su3
t
h3
t
su4
t
h4
t
su5
t
h5
NOTES: 5. TTL input signals are 0 to 3 V with less than 3 ns rise/fall time between the 10% and 90% levels unless
, and VGABL valid before
CLK0↑
Hold time, VGA(7–0) and VGAHS,
VGAVS
, and VGABL valid after
CLK0↑
Setup time, P(63–0), and PSEL
valid before LCLK↑
Hold time, P(63–0), and PSEL valid
after LCLK↑
Setup time, SYSHS, SYSVS, and
OVS valid before LCLK↑
Hold time, SYSHS, SYSVS, and
OVS valid after LCLK↑
otherwise specified. ECL input signals are VDD–1.8 V to VDD– 0.8 V with less than 2 ns rise/fall time
between the 20% and 80% levels. For input and output signals, timing reference points are at the 10% and
90% signal levels. Analog output loads are less than 10 pF. D7–D0 output loads are less than 50 pF. All
other output loads are less than 50 pF unless otherwise specified.
6. This parameter only applies when SCLK is used as the VRAM shift clock. When SCLK is not used, the delay
may be as much as is required by system logic (assuming the loop clock PLL compensates for the system
delay).
TTL
ECL
110220110220110220110250MHz
7.47.17.17.1
7.45.74.54
10101010ns
10101010ns
2222ns
2222ns
2222ns
1111ns
2222ns
1111ns
TVP3026
-175
135175220250MHz
110110110110MHz
0.50.50.50.5
TVP3026
-220
TVP3026
-250
UNIT
RCLK
periods
3–4
Page 65
3.5 Timing Requirements (see Note 5 and Figures 3-1 and 3-2) (continued)
t
ns
t
4
ns
TVP3026
-135
MIN MAXMIN MAXMIN MAXMIN MAX
Setup time, SYSBL valid before
t
su6
LCLK↑
t
Hold time, SYSBL valid after LCLK↑2222ns
h6
t
Pulse duration, RD or WR low50505050ns
w1
t
Pulse duration, RD or WR high30303030ns
w2
Pulse duration, clock
w3
high
Pulse duration, clock
w
low
NOTE 5. TTL input signals are 0 to 3 V with less than 3 ns rise/fall time between the 10% and 90% levels unless otherwise
specified. ECL input signals are VDD–1.8 V to VDD–0.8 V with less than 2 ns rise/fall time between the 20%
and 80% levels. For input and output signals, timing reference points are at the 10% and 90% signal levels.
Analog output loads are less than 10 pF. D7–D0 output loads are less than 50 pF . All other output loads are
less than 50 pF unless otherwise specified.
TTL
ECL
TTL
ECL
3333ns
3322
32.522
3322
32.522
TVP3026
-175
TVP3026
-220
TVP3026
-250
UNIT
3–5
Page 66
3.6 Switching Characteristics (See Figures 3-1 and 3-2)
PARAMETER
UNIT
TVP3026-135TVP3026-175
MINTYPMAXMINTYPMAX
SCLK/RCLK frequency (see Note 7)8585MHz
VCLK frequency (see Note 7)8585MHz
t
t
t
t
t
t
t
t
NOTES: 7. SCLK can drive an output capacitive load up to 60 pF. The worst-case transition time between the 10% and
Enable time, RD low to D(7–0) valid4040ns
en1
Disable time, RD high to D(7–0) disabled1717ns
dis1
Valid time, D(7–0) valid after RD high55ns
v1
Delay time, RD low to D(7–0) starting to turn on55ns
d1
Delay time, selected input clock high/low to
d2
DOTCLK (internal signal) high/low
Delay time, SCLK high/low to RCLK high/low
d3
(see Notes 8, 9, and 10)
Analog output settling time(seeNote 11)65ns
d6
Analog output rise time (see Note 12)22ns
r
Analog output skew0202ns
90% levels is less than 4 ns (typically 3 ns). RCLK and VCLK can drive output capacitive loads up to 15 pF ,
with worst-case transition times between 10% and 90% levels less than 4 ns (typically 3 ns).
8. The SCLK delay time to RCLK depends on the load that the signals drive. This parameter is measured with
a VCLK = RCLK load of 15 pF and SCLK load of 60 pF.
9. In SCLK mode, RCLK is delayed from SCLK so that when RCLK is connected to LCLK, the timing is
essentially the same as the TLC3407x family of parts.
10. This parameter applies when SCLK is used.
11. Measured within ± 1 LSB from 50% point of full-scale transition to output settling, (settling time does not
include clock and data feedthrough).
12. Measured between 10% and 90% of full-scale transition.
77ns
124124ns
3–6
Page 67
3.6 Switching Characteristics (See Figures 3-1 and 3-2) (continued)
PARAMETER
UNIT
TVP3026-220TVP3026-250
MINTYPMAXMINTYPMAX
SCLK/RCLK frequency (see Note 7)8585MHz
VCLK frequency (see Note 7)8585MHz
t
t
t
t
t
t
t
t
NOTES: 7. SCLK can drive an output capacitive load up to 60 pF. The worst-case transition time between the 10% and
Enable time, RD low to D(7–0) valid4040ns
en1
Disable time, RD high to D(7–0) disabled1717ns
dis1
Valid time, D(7–0) valid after RD high55ns
v1
Delay time, RD low to D(7–0) starting to turn on55ns
d1
Delay time, selected input clock high/low to
d2
DOTCLK (internal signal) high/low
Delay time, SCLK high/low to RCLK high/low
d3
(see Notes 8, 9, and 10)
Analog output settling time(seeNote 11)55ns
d6
Analog output rise time (see Note 12)22ns
r
Analog output skew0202ns
90% levels is less than 4 ns (typically 3 ns). RCLK and VCLK can drive output capacitive loads up to 15 pF ,
with worst-case transition times between 10% and 90% levels less than 4 ns (typically 3 ns).
8. The SCLK delay time to RCLK depends on the load that the signals drive. This parameter is measured with
a VCLK = RCLK load of 15 pF and SCLK load of 60 pF.
9. In SCLK mode, RCLK is delayed from SCLK so that when RCLK is connected to LCLK, the timing is
essentially the same as the TLC3407x family of parts.
10. This parameter applies when SCLK is used.
11. Measured within ± 1 LSB from 50% point of full-scale transition to output settling, (settling time does not
include clock and data feedthrough).
12. Measured between 10% and 90% of full-scale transition.
77ns
124124ns
3.7Timing and Switching Diagrams
RS3–RS0
,WR
RD
D7–D0
D7–D0
t
su1
Figure 3–1. MPU Interface Timing and Switching Waveforms
Valid
t
h1
t
en1
t
d1
t
w1
Data Out, RD Low
t
su2
Data In,
WR Low
t
w2
t
dis1
t
v1
t
h2
3–7
Page 68
CLK0–2/2
t
cyc
t
w3
t
w4
DOTCLK
(internal signal)
SCLK
RCLK
LCLK
VGA7–VGA0
VGAHS, VGAVS
VGABL
P63–P0, PSEL
SYSHS, SYSVS
OVS, SYSBL
IOR, IOG, IOB
t
su3
t
d2
Data
t
d2
t
d3
t
h3
t
su4
Data
t
, t
su5
su6
Data
t
d3
t
h4
th5, t
h6
t
d6
3–8
t
r
Figure 3–2. Video Input/Output Timing and Switching Waveforms
Page 69
Appendix A
Frequency Synthesis PLL Register Settings
Table A–1 provides a listing of all possible frequency settings that may be used by the pixel clock PLL for
frequency synthesis using the common 14.31818 MHz crystal. The same register settings may be used for
the MCLK PLL provided that the MCLK maximum frequency of 100 MHz is not exceeded. The constraints
used to generate the table include limits for the VCO frequency and limits for the N-register value.
PLL Architecture— TVP3026
Reference Frequency (MHz)— 14.318180
Minimum VCO Frequency (MHz)— 110.000000
Maximum VCO Frequency (MHz)— 250.000000
Minimum N-Register V alue (dec)— 40
Maximum N-Register V alue (dec)— 62
T able A–1. PLL Register Settings for 14.31818 MHz Reference
OUTPUTVCONREGMREGPREG
14.32114.55FE3EB3
14.89119.13E827B3
14.91119.32E928B3
14.94119.53EA29B3
14.97119.75EB2AB3
15.00120.00EC2BB3
15.03120.27ED2CB3
15.07120.57EE2DB3
15.11120.91EF2EB3
15.16121.28F02FB3
15.21121.70F130B3
15.27122.18F231B3
15.34122.73F332B3
15.42123.36F433B3
15.46123.71E826B3
15.51124.09F534B3
15.56124.51EA28B3
15.62124.96F635B3
15.68125.45EC2AB3
15.75126.00F736B3
15.83126.60EE2CB3
15.91127.27F837B3
16.00128.02F02EB3
A–1
Page 70
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
16.04128.29E825B3
16.11128.86F938B3
16.19129.49EA27B3
16.23129.82F230B3
16.27130.17FB28B3
16.36130.91FA39B3
16.47131.73FD2AB3
16.52132.17F432B3
16.58132.63FE2BB3
16.61132.87E824B3
16.70133.64FB3AB3
16.81134.47EA26B3
16.84134.76F02DB3
16.92135.37F634B3
17.00136.02E12EB3
17.05136.36FC28B3
17.18137.45FC3BB3
17.30138.41E924B3
17.33138.66EE2AB3
17.39139.09F330B3
17.43139.45EA25B3
17.50140.00F836B3
17.57140.58EB26B3
17.62140.98F431B3
17.69141.50F02CB3
17.73141.82EC27B3
17.75142.04E822B3
17.90143.18FD3CB3
18.05144.43EA24B3
18.09144.69EE29B3
18.14145.09F22EB3
18.22145.79F633B3
18.30146.36EF2AB3
18.33146.62E821B3
18.41147.27FA38B3
18.49147.95E922B3
18.53148.24F02BB3
18.61148.91F734B3
A–2
Page 71
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
18.68149.41EA23B3
18.72149.79F430B3
18.79150.34F12CB3
18.84150.72EE28B3
18.87150.99EB24B3
18.90151.20E820B3
19.09152.73FE3DB3
19.30154.39EA22B3
19.33154.64ED26B3
19.37154.97F02AB3
19.43155.45F32EB3
19.47155.78E81FB3
19.52156.20F632B3
19.59156.75EE27B3
19.69157.50F936B3
19.77158.18EC24B3
19.83158.60F42FB3
19.89159.09EF28B3
19.92159.37EA21B3
20.05160.36FC3AB3
20.18161.40EB22B3
20.21161.71F029B3
20.28162.27F530B3
20.35162.78EE26B3
20.45163.64FA37B3
20.54164.35EA20B3
20.58164.66F12AB3
20.62164.95E81DB3
20.68165.45F834B3
20.76166.09ED24B3
20.83166.61F631B3
20.88167.05E91EB3
20.93167.41F42EB3
21.00168.00F22BB3
21.06168.45F028B3
21.10168.80EE25B3
21.14169.09EC22B3
21.17169.33EA1FB3
21.19169.53E81CB3
A–3
Page 72
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
21.48171.82BD3BB3
21.76174.11E81BB3
21.79174.31EA1EB3
21.82174.55EC21B3
21.85174.83EE24B3
21.90175.19F027B3
21.95175.64F22AB3
22.03176.22F42DB3
22.07176.59E91CB3
22.13177.02F630B3
22.19177.55ED22B3
22.27178.18F833B3
22.34178.69E81AB3
22.37178.98F128B3
22.41179.29EA1DB3
22.50180.00FA36B3
22.61180.86EE23B3
22.67181.36F52EB3
22.74181.93F026B3
22.78182.23EB1EB3
22.91183.27FC39B3
23.03184.27EA1CB3
23.07184.55EF24B3
23.13185.03F42CB3
23.18185.45EC1FB3
23.27186.14F934B3
23.36186.89EE22B3
23.43187.44F62FB3
23.48187.85E818B3
23.52188.18F32AB3
23.58188.66B025B3
23.62189.00ED20B3
23.66189.25EA1BB3
23.86190.91FE3CB3
24.05192.44E817B3
24.08192.64EB1CB3
24.11192.92EE21B3
24.16193.30F126B3
24.23193.85F42BB3
A–4
Page 73
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
24.28194.23EA1AB3
24.34194.73F730B3
24.43195.40F024B3
24.46195.68E918B3
24.55196.36FA35B3
24.63197.02E816B3
24.66197.27EF22B3
24.73197.85F62EB3
24.82198.55F227B3
24.87198.95EE20B3
24.90199.21EA19B3
25.06200.45FD3AB3
25.20201.60E815B3
25.23201.82EC1CB3
25.27202.14F023B3
25.33202.66F42AB3
25.38203.06EB1AB3
25.45203.64B831B3
25.52204.19EA18B3
25.57204.55F328B3
25.62204.98EE1FB3
25.65205.23A916B3
25.77206.18BC38B3
25.91207.27EC1BB3
25.95207.61F124B3
26.03208.26F62DB3
26.11208.88F022B3
26.15209.17EA17B3
26.25210.00FB36B3
26.35210.76E813B3
26.38211.00EE1EB3
26.43211.47F429B3
26.49211.91ED1CB3
26.59212.73BA34B3
26.68213.47EB18B3
26.73213.82F225B3
26.77214.15EA16B3
26.85214.77F932B3
26.92215.35E812B3
26.95215.61F021B3
A–5
Page 74
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
27.05216.36F830B3
27.13217.03EE1DB3
27.20217.64F72EB3
27.27218.18EC19B3
27.33218.68F62CB3
27.39219.13EA15B3
27.44219.55F52AB3
27.49219.93E811B3
28.64114.55FE3EB2
29.78119.13E827B2
29.83119.32E928B2
29.88119.53EA29B2
29.94119.75EB2AB2
30.00120.00EC2BB2
30.07120.27ED2CB2
30.14120.57EE2DB2
30.23120.91EF2EB2
30.32121.28F02FB2
30.43121.70F130B2
30.55122.18F231B2
30.68122.73F332B2
30.84123.36F433B2
30.93123.71E826B2
31.02124.09F534B2
31.13124.51EA28B2
31.24124.96F635B2
31.36125.45EC2AB2
31.50126.00F736B2
31.65126.60EE2CB2
31.82127.27F837B2
32.01128.02F02EB2
32.07128.29E825B2
32.22128.86F938B2
32.37129.49EA27B2
32.45129.82F230B2
32.54130.17EB28B2
32.73130.91FA39B2
32.93131.73ED2AB2
33.04132.17F432B2
33.16132.63EE2BB2
A–6
Page 75
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
33.22132.87E824B2
33.41133.64FB3AB2
33.62134.47EA26B2
33.69134.76F02DB2
33.84135.37F634B2
34.01136.02F12EB2
34.09136.36EC28B2
34.36137.45FC3BB2
34.60138.41E924B2
34.67138.66EE2AB2
34.77139.09F330B2
34.86139.45EA25B2
35.00140.00F836B2
35.14140.58EB26B2
35.24140.98F431B2
35.37141.50F02CB2
35.45141.82EC27B2
35.51142.04E822B2
35.80143.18FD3CB2
36.11144.43EA24B2
36.17144.69EE29B2
36.27145.09F22EB2
36.45145.79F633B2
36.59146.36EF2AB2
36.65146.62E821B2
36.82147.27FA38B2
36.99147.95E922B2
37.06148.24F02BB2
37.23148.91F734B2
37.35149.41EA23B2
37.45149.79F430B2
37.59150.34F12CB2
37.68150.72EE28B2
37.75150.99EB24B2
37.80151.20E820B2
38.18152.73FE3DB2
38.60154.39EA22B2
38.66154.64ED26B2
38.74154.97F02AB2
38.86155.45F32EB2
A–7
Page 76
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
38.95155.78E81FB2
39.05156.20F632B2
39.19156.75EE27B2
39.37157.50F936B2
39.55158.18EC24B2
39.65158.60F42FB2
39.77159.09EF28B2
39.84159.37EA21B2
40.09160.36FC3AB2
40.35161.40EB22B2
40.43161.71F029B2
40.57162.27F530B2
40.69162.78EE26B2
40.91163.64FA37B2
41.09164.35EA20B2
41.16164.66F12AB2
41.24164.95E81DB2
41.36165.45F834B2
41.52166.09ED24B2
41.65166.61F631B2
41.76167.05E91EB2
41.85167.41F42EB2
42.00168.00F22BB2
42.11168.45F028B2
42.20168.80EE25B2
42.27169.09EC22B2
42.33169.33EA1FB2
42.38169.53E81CB2
42.95171.82FD3BB2
43.53174.11E81BB2
43.58174.31EA1EB2
43.64174.55EC21B2
43.71174.83EE24B2
43.80175.19F027B2
43.91175.64F22AB2
44.06176.22F42DB2
44.15176.59E91CB2
44.26177.02F630B2
44.39177.55ED22B2
44.55178.18F833B2
A–8
Page 77
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
44.67178.69E81AB2
44.74178.98F128B2
44.82179.29EA1DB2
45.00180.00FA36B2
45.22180.86EE23B2
45.34181.36F52EB2
45.48181.93F026B2
45.56182.23EB1EB2
45.82183.27FC39B2
46.07184.27EA1CB2
46.14184.55EF24B2
46.26185.03F42CB2
46.36185.45EC1FB2
46.53186.14F934B2
46.72186.89EE22B2
46.86187.44F62FB2
46.96187.85E818B2
47.05188.18F32AB2
47.17188.66F025B2
47.25189.00ED20B2
47.31189.25EA1BB2
47.73190.91FE3CB2
48.11192.44E817B2
48.16192.64EB1CB2
48.23192.92EE21B2
48.32193.30F126B2
48.46193.85F42BB2
48.56194.23EA1AB2
48.68194.73F730B2
48.85195.40F024B2
48.92195.68E918B2
49.09196.36FA35B2
49.25197.02E816B2
49.32197.27EF22B2
49.46197.85F62EB2
49.64198.55F227B2
49.74198.95EE20B2
49.80199.21EA19B2
50.11200.45FD3AB2
50.40201.60E815B2
A–9
Page 78
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
50.45201.82EC1CB2
50.53202.14F023B2
50.66202.66F42AB2
50.76203.06EB1AB2
50.91203.64F831B2
51.05204.19EA18B2
51.14204.55F328B2
51.24204.98EE1FB2
51.31205.23E916B2
51.55206.18FC38B2
51.82207.27EC1BB2
51.90207.61F124B2
52.07208.26F62DB2
52.22208.88F022B2
52.29209.17EA17B2
52.50210.00FB36B2
52.69210.76E813B2
52.75211.00EE1EB2
52.87211.47F429B2
52.98211.91ED1CB2
53.18212.73FA34B2
53.37213.47EB18B2
53.45213.82F225B2
53.54214.15EA16B2
53.69214.77F932B2
53.84215.35E812B2
53.90215.61F021B2
54.09216.36F830B2
54.26217.03EE1DB2
54.41217.64F72EB2
54.55218.18EC19B2
54.67218.68F62CB2
54.78219.13EA15B2
54.89219.55F52AB2
54.98219.93E811B2
57.27114.55FE3EB1
59.56119.13E827B1
59.66119.32E928B1
59.76119.53EA29B1
59.88119.75EB2AB1
A–10
Page 79
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
60.00120.00EC2BB1
60.14120.27ED2CB1
60.29120.57EE2DB1
60.45120.91EF2EB1
60.64121.28F02FB1
60.85121.70F130B1
61.09122.18F231B1
61.36122.73F332B1
61.68123.36F433B1
61.85123.71E826B1
62.05124.09F534B1
62.25124.51EA28B1
62.48124.96F635B1
62.73125.45EC2AB1
63.00126.00F736B1
63.30126.60EE2CB1
63.64127.27F837B1
64.01128.02F02EB1
64.15128.29E825B1
64.43128.86F938B1
64.74129.49EA27B1
64.91129.82F230B1
65.08130.17EB28B1
65.45130.91FA39B1
65.86131.73ED2AB1
66.08132.17F432B1
66.32132.63EE2BB1
66.44132.87E824B1
66.82133.64FB3AB1
67.23134.47EA26B1
67.38134.76F02DB1
67.69135.37F634B1
68.01136.02F12EB1
68.18136.36EC28B1
68.73137.45FC3BB1
69.20138.41E924B1
69.33138.66EE2AB1
69.55139.09F330B1
69.72139.45EA25B1
70.00140.00F836B1
A–11
Page 80
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
70.29140.58EB26B1
70.49140.98F431B1
70.75141.50F02CB1
70.91141.82EC27B1
71.02142.04E822B1
71.59143.18FD3CB1
72.21144.43EA24B1
72.34144.69EE29B1
72.55145.09F22EB1
72.89145.79F633B1
73.18146.36EF2AB1
73.31146.62E821B1
73.64147.27FA38B1
73.98147.95E922B1
74.12148.24F02BB1
74.45148.91F734B1
74.70149.41EA23B1
74.90149.79F430B1
75.17150.34F12CB1
75.36150.72EE28B1
75.50150.99EB24B1
75.60151.20E820B1
76.36152.73FE3DB1
77.19154.39EA22B1
77.32154.64ED26B1
77.49154.97F02AB1
77.73155.45F32EB1
77.89155.78E81FB1
78.10156.20F632B1
78.37156.75EE27B1
78.75157.50F936B1
79.09158.18EC24B1
79.30158.60F42FB1
79.55159.09EF28B1
79.68159.37EA21B1
80.18160.36FC3AB1
80.70161.40EB22B1
80.86161.71F029B1
81.14162.27F530B1
81.39162.78EE26B1
A–12
Page 81
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
81.82163.64FA37B1
82.17164.35EA20B1
82.33164.66F12AB1
82.47164.95E81DB1
82.73165.45F834B1
83.05166.09ED24B1
83.31166.61F631B1
83.52167.05E91EB1
83.71167.41F42EB1
84.00168.00F22BB1
84.22168.45F028B1
84.40168.80EE25B1
84.55169.09EC22B1
84.66169.33EA1FB1
84.76169.53E81CB1
85.91171.82FD3BB1
87.05174.11E81BB1
87.15174.31EA1EB1
87.27174.55EC21B1
87.42174.83EE24B1
87.59175.19F027B1
87.82175.64F22AB1
88.11176.22F42DB1
88.30176.59E91CB1
88.51177.02F630B1
88.77177.55ED22B1
89.09178.18F833B1
89.35178.69E81AB1
89.49178.98F128B1
89.64179.29EA1DB1
90.00180.00FA36B1
90.43180.86EE23B1
90.68181.36F52EB1
90.96181.93F026B1
91.12182.23EB1EB1
91.64183.27FC39B1
92.13184.27EA1CB1
92.27184.55EF24B1
92.52185.03F42CB1
92.73185.45EC1FB1
A–13
Page 82
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
93.07186.14F934B1
93.44186.89EE22B1
93.72187.44F62FB1
93.93187.85E818B1
94.09188.18F32AB1
94.33188.66F025B1
94.50189.00ED20B1
94.62189.25EA1BB1
95.45190.91FE3CB1
96.22192.44E817B1
96.32192.64EB1CB1
96.46192.92EE21B1
96.65193.30F126B1
96.92193.85F42BB1
97.11194.23EA1AB1
97.36194.73F730B1
97.70195.40F024B1
97.84195.68E918B1
98.18196.36FA35B1
98.51197.02E816B1
98.64197.27EF22B1
98.93197.85F62EB1
99.27198.55F227B1
99.47198.95EE20B1
99.60199.21EA19B1
100.23200.45FD3AB1
100.80201.60E815B1
100.91201.82EC1CB1
101.07202.14F023B1
101.33202.66F42AB1
101.53203.06EB1AB1
101.82203.64F831B1
102.09204.19EA18B1
102.27204.55F328B1
102.49204.98EE1FB1
102.61205.23E916B1
103.09206.18FC38B1
103.64207.27EC1BB1
103.81207.61F124B1
104.13208.26F62DB1
A–14
Page 83
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
104.44208.88F022B1
104.58209.17EA17B1
105.00210.00FB36B1
105.38210.76E813B1
105.50211.00EE1EB1
105.73211.47F429B1
105.95211.91ED1CB1
106.36212.73FA34B1
106.74213.47EB18B1
106.91213.82F225B1
107.08214.15EA16B1
107.39214.77F932B1
107.67215.35E812B1
107.81215.61F021B1
108.18216.36F830B1
108.52217.03EE1DB1
108.82217.64F72EB1
109.09218.18EC19B1
109.34218.68F62CB1
109.57219.13EA15B1
109.77219.55F52AB1
109.96219.93E811B1
114.55114.55FE3EB0
119.13119.13E827B0
119.32119.32E928B0
119.53119.53EA29B0
119.75119.75EB2AB0
120.00120.00EC2BB0
120.27120.27ED2CB0
120.57120.57EE2DB0
120.91120.91EF2EB0
121.28121.28F02FB0
121.70121.70F130B0
122.18122.18F231B0
122.73122.73F332B0
123.36123.36F433B0
123.71123.71E826B0
124.09124.09F534B0
124.51124.51EA28B0
124.96124.96F635B0
A–15
Page 84
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
125.45125.45EC2AB0
126.00126.00F736B0
126.60126.60EE2CB0
127.27127.27F837B0
128.02128.02F02EB0
128.29128.29E825B0
128.86128.86F938B0
129.49129.49EA27B0
129.82129.82F230B0
130.17130.17EB28B0
130.91130.91FA39B0
131.73131.73ED2AB0
132.17132.17F432B0
132.63132.63EE2BB0
132.87132.87E824B0
133.64133.64FB3AB0
134.47134.47EA26B0
134.76134.76F02DB0
135.37135.37F634B0
136.02136.02F12EB0
136.36136.36EC28B0
137.45137.45FC3BB0
138.41138.41E924B0
138.66138.66EE2AB0
139.09139.09F330B0
139.45139.45EA25B0
140.00140.00F836B0
140.58140.58EB26B0
140.98140.98F431B0
141.50141.50F02CB0
141.82141.82EC27B0
142.04142.04E822B0
143.18143.18FD3CB0
144.43144.43EA24B0
144.69144.69EE29B0
145.09145.09F22EB0
145.79145.79F633B0
146.36146.36EF2AB0
146.62146.62E821B0
A–16
Page 85
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
147.27147.27FA38B0
147.95147.95E922B0
148.24148.24F02BB0
148.91148.91F734B0
149.41149.41EA23B0
149.79149.79F430B0
150.34150.34F12CB0
150.72150.72EE28B0
150.99150.99EB24B0
151.20151.20E820B0
152.73152.73FE3DB0
154.39154.39EA22B0
154.64154.64ED26B0
154.97154.97F02AB0
155.45155.45F32EB0
155.78155.78E81FB0
156.20156.20F632B0
156.75156.75EE27B0
157.50157.50F936B0
158.18158.18EC24B0
158.60158.60F42FB0
159.09159.09EF28B0
159.37159.37EA21B0
160.36160.36FC3AB0
161.40161.40EB22B0
161.71161.71F029B0
162.27162.27F530B0
162.78162.78EE26B0
163.64163.64FA37B0
164.35164.35EA20B0
164.66164.66F12AB0
164.95164.95E81DB0
165.45165.45F834B0
166.09166.09ED24B0
166.61166.61F631B0
167.05167.05E91EB0
167.41167.41F42EB0
168.00168.00F22BB0
168.45168.45F028B0
A–17
Page 86
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
168.80168.80EE25B0
169.09169.09EC22B0
169.33169.33EA1FB0
169.53169.53E81CB0
171.82171.82FD3BB0
174.1 1174.11E81BB0
174.31174.31EA1EB0
174.55174.55EC21B0
174.83174.83EE24B0
175.19175.19F027B0
175.64175.64F22AB0
176.22176.22F42DB0
176.59176.59E91CB0
177.02177.02F630B0
177.55177.55ED22B0
178.18178.18F833B0
178.69178.69E81AB0
178.98178.98F128B0
179.29179.29EA1DB0
180.00180.00FA36B0
180.86180.86EE23B0
181.36181.36F52EB0
181.93181.93F026B0
182.23182.23EB1EB0
183.27183.27FC39B0
184.27184.27EA1CB0
184.55184.55EF24B0
185.03185.03F42CB0
185.45185.45EC1FB0
186.14186.14F934B0
186.89186.89EE22B0
187.44187.44F62FB0
187.85187.85E818B0
188.18188.18F32AB0
188.66188.66F025B0
189.00189.00ED20B0
189.25189.25EA1BB0
190.91190.91FE3CB0
A–18
Page 87
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
192.44192.44E817B0
192.64192.64EB1CB0
192.92192.92EE21B0
193.30193.30F126B0
193.85193.85F42BB0
194.23194.23EA1AB0
194.73194.73F730B0
195.40195.40F024B0
195.68195.68E918B0
196.36196.36FA35B0
197.02197.02E816B0
197.27197.27EF22B0
197.85197.85F62EB0
198.55198.55F227B0
198.95198.95EE20B0
199.21199.21EA19B0
200.45200.45FD3AB0
201.60201.60E815B0
201.82201.82EC1CB0
202.14202.14F023B0
202.66202.66F42AB0
203.06203.06EB1AB0
203.64203.64F831B0
204.19204.19EA18B0
204.55204.55F328B0
204.98204.98EE1FB0
205.23205.23E916B0
206.18206.18FC38B0
207.27207.27EC1BB0
207.61207.61F124B0
208.26208.26F62DB0
208.88208.88F022B0
209.17209.17EA17B0
210.00210.00FB36B0
210.76210.76E813B0
211.00211.00EE1EB0
211.47211.47F429B0
211.91211.91ED1CB0
212.73212.73FA34B0
213.47213.47EB18B0
A–19
Page 88
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
213.82213.82F225B0
214.15214.15EA16B0
214.77214.77F932B0
215.35215.35E812B0
215.61215.61F021B0
216.36216.36F830B0
217.03217.03EE1DB0
217.64217.64F72EB0
218.18218.18EC19B0
218.68218.68F62CB0
219.13219.13EA15B0
219.55219.55F52AB0
219.93219.93E811B0
220.28220.28F428B0
220.91220.91F326B0
221.45221.45F224B0
221.93221.93F122B0
222.35222.35F020B0
222.73222.73EF1EB0
223.06223.06EE1CB0
223.36223.36ED1AB0
223.64223.64EC18B0
223.88223.88EB16B0
224.1 1224.11EA14B0
224.32224.32E912B0
224.51224.51E810B0
229.09229.09FE3BB0
233.67233.67E80EB0
233.86233.86E910B0
234.07234.07EA12B0
234.30234.30EB14B0
234.55234.55EC16B0
234.82234.82ED18B0
235.12235.12EF1AB0
235.45235.45EF1CB0
235.83235.83F01EB0
236.25236.25F120B0
236.73236.73F222B0
237.27237.27F324B0
237.90237.90F426B0
A–20
Page 89
T able A–1. PLL Register Settings for 14.31818 MHz Reference (Continued)
OUTPUTVCONREGMREGPREG
238.25238.25E80DB0
238.64238.64F528B0
239.05239.05EA11B0
239.50239.50F62AB0
240.00240.00EC15B0
240.55240.55F72CB0
241.15241.15EE19B0
241.82241.82F82EB0
242.57242.57F01DB0
242.84242.84E80CB0
243.41243.41F930B0
244.03244.03EA10B0
244.36244.36F221B0
244.71244.71EB12B0
245.45245.45FA32B0
246.27246.27ED16B0
246.71246.71F425B0
247.18247.18EE18B0
247.42247.42E80BB0
248.18248.18FB34B0
249.01249.01EA0FB0
249.30249.30F01CB0
249.92249.92F629B0
A–21
Page 90
A–22
Page 91
Appendix B
PLL Programming Examples
Loop Clock PLL
The internal structure of the loop clock PLL is shown in Figure B–1. The loop clock PLL phase aligns the
received LCLK with the internal dot clock in order to ensure reliable data latching into the TVP3026. The
phase detector performs phase comparison at the rising edge of the received clocks after the N and M
prescalers. The charge pump and loop filter generate an analog control signal to the voltage controlled
oscillator. The VCO frequency is then divided by the P and Q post-scalers. The P post-scaler provides
division ratios of 1, 2, 4, or 8. The Q post-scalar provides additional division ratios of 2, 4, 6, 8, 10, 12, 14
and 16. The Q post-scalar provides for the extra low frequencies needed for low-resolution graphics using
a high multiplex ratio, such as 640 x 480, 8 bits/pixel, using a 64-bit pixel bus. The output from the loop clock
PLL or the pixel clock PLL may be selected for output on the RCLK terminal.
Dot Clock
LCLK
1
65–N
1
65–M
Phase
Detector
Up
Down
Charge
Pump
VCO
1
2
Figure B–1. Loop Clock PLL Structure
As a programming example, we can follow the procedure of subsection 2.4.3.1,
Except Packed-24
, for a mode using a 170 MHz pixel clock, 8 bits/pixel, a 64-bit pixel bus, and an external
division factor (through the GUI accelerator) of 2.
FD+
170 MHz,B+8,W+64,K+2
FL+
FD
FR+K
N+65*4
B
+
170
W
FL+2
W
B
8
+
21.25 MHz
64
21.25+42.5 MHz
+65*4
64
8
+33+
0x21
M+61+0x3D
27.5(65*N)
Z
+
FD
K
27.5(65*33)
+
1702
+
2.59
P
1
2(Q+1)
OUT
Programming for All Modes
Since Z < 16 and log2 (Z) is between 1 and 2, then P = 1 and Q = 0
Since bits 7 and 6 of the N-value register must be 1,1 the N-value register is loaded with 0x21 + 0xC0 = 0xE1.
The M-value register is loaded with 0x3D. Since bits 7–2 of the P-value register must be 11 1 1 00, the P-value
register is loaded with 0x01 + 0xF0 = 0xF1. Bits 2–0 of the MCLK/loop clock control register (index: 0x39)
are loaded with the Q value of 000.
B–1
Page 92
The resulting divide ratios and clock frequencies are illustrated in Figure B–2.
TVP3026
Loop Clock PLL
Dot Clock
170 MHz
÷32
N = 33
(65 –N = 32)
5.3 MHz
Phase
Detector
Up
Down
Charge
Pump
VCO
170 MHz
÷ 2÷ 2
85 MHz
OUT
42.5 MHz
LCLK
21.25 MHz
÷ 4
M = 61
(65 –M = 4)
5.3 MHz
GUI Accelerator
P = 1
(2P = 2)
Q = 0
(2 [Q +1] = 2)
÷ 2
42.5 MHz21.25 MHz
K = 2
Figure B–2. Loop Clock PLL Example
Pixel Clock and MCLK PLLs
The internal structure used for the pixel clock and MCLK PLLs is shown in Figure B–3. These PLLs
synthesize the pixel clock and MCLK frequencies. The reference clock can be either a resonant crystal or
can be driven with a TTL level signal. The phase detector performs phase comparison at the rising edge
of the received clocks after the N and M prescalers. The charge pump and loop filter generate an analog
control signal to the VCO. The VCO frequency is then divided by the P post-scalar. The P post-scalar
provides division ratios of 1, 2, 4, or 8. The output from the pixel clock PLL or the loop clock PLL may be
selected for output on the RCLK terminal. The output from the MCLK PLL or the internal dot clock (to provide
a smooth transition on MCLK) may be selected for output on the MCLK terminal. The same PLL register
values may be used for the pixel clock PLL or MCLK PLL as long as the output frequency of the MCLK PLL
does not exceed 100 MHz.
Ref Clock
1
65–N
Phase
Detector
1
65–M
Up
Down
Charge
Pump
1
8
VCO
1
P
2
OUT
Figure B–3. Pixel Clock and MCLK PLL Structure
As a programming example, we can consider programming the pixel clock PLL for a mode using a 170 MHz
pixel clock. Since the reference clock is the common 14.31818 MHz crystal, the register values in
B–2
Page 93
Appendix A may be used directly. The closest frequency in Table A–1 is 169.53 MHz for which the PLL
registers are loaded with N-value register = 0xE8, M-value register = 0x1C, and P-value register = 0xB0.
The N and M numbers are the lower 6 bits of the N-value register and the M-value register respectively . The
P number is the lower two bits of the P-value register. After extracting and converting to decimal, this
becomes N = 40, M = 28, and P = 0. The resulting divide ratios for the prescalers and the post-scaler and
the resulting clock frequencies are illustrated in Figure B–4.
Ref Clock
14.31818 MHz
21.19 MHz
÷ 25
N = 40
(65 –N = 25)
÷ 37
M = 28
(65 –M = 37)
0.57 MHz
Phase
Detector
0.57 MHz
Up
Down
Charge
Pump
VCO
÷8
169.53 MHz21.19 MHz
Figure B–4. Pixel Clock PLL Example
The equations given in subsection 2.4.1,
Pixel Clock PLL
, give the same result for the VCO frequency and
PLL output frequency . The VCO frequency is within the specified limits.
F
VCO
F
PLL
+8
F
REF
110 MHzvF
F
VCO
+
P
2
+
65*M
65*N
VCO
169.53
0
2
+8
v
220 MHz
+
169.53 MHz
14.31818
65*28
65*40
+
169.53 MHz
÷ 1
P = 0
(2P = 1)
OUT
169.53 MHz
B–3
Page 94
B–4
Page 95
Appendix C
Recommended Clock Programming Procedures
The following procedures are recommended for programming the TVP3026 PLLs. In a typical system, many
combinations of resolution and refresh rates are possible. The PLLs must be able to switch between any
two of these frequencies. It is difficult to test all possible combinations. In order to reduce the possibility of
error, it is recommended that the PLL is reset prior to programming. This causes the voltage controlled
oscillator (VCO) to stop oscillating prior to searching for the new programmed frequency . When this is done,
the frequency search always begins at the same point and the possibility for error is greatly reduced.
MCLK PLL
This is the simplified method of programming the MCLK PLL. If the system does not allow MCLK to be
stopped or is sensitive to transition effects on MCLK, the procedure described in Section 2.4.2.1 can be used
instead.
1.Disable MCLK PLL (PLLEN bit = 0).
2.Program MCLK PLL N, M, and P registers (with PLLEN bit = 1) for new frequency.
VGA Mode Setup
1.Set loop clock PLL PLLEN bit to 0.
2.Set pixel clock PLL PLLEN bit to 0.
3.Set PLLSEL(1, 0) bits to 1x. (This causes programmed PLLEN bits to take effect. VCOs are
stopped.)
4.Set PLLSEL(1, 0) bits to 00 (25.057 MHz) or 01 (28.686 MHz).
Table C–1. Programming Procedure – VGA Mode Setup
IndexDataComment
1A77Select CLK0 as clock source. Set bits 6–4 to disable
18, 1980, 98VGA mode
2C2APoint to P registers
2F0Set loop clock PLL PLLEN bit to 0
2D0Set pixel clock PLL PLLEN bit to 0
PLLSEL(1, 0)11Causes programmed PLLEN bits to take effect. VCOs
PLLSEL(1, 0)00 (for 25.057 MHz)
3918Pixel clock PLL routed to RCLK terminal (see Note 2).
NOTES: 1. These procedures show the order of programming that should be used for programming the clocks and
related registers. The complete mode setup may require other registers to be programmed also.
2. In standard VGA modes, the PLLSEL(1,0) inputs select the pixel clock PLL fixed frequency settings (25.057
MHz or 28.636 MHz). The loop clock PLL is normally reset and the pixel clock PLL is routed to the RCLK
output.
01 (for 28.636 MHz)
unused VCLK output.
are stopped.
Select one of the hard-wired VGA pixel clock PLL
settings.
C–1
Page 96
Extended Mode Setup
1.Set loop clock PLL PLLEN bit to 0.
2.Set pixel clock PLL PLLEN bit to 0.
3.Set PLLSEL(1, 0) bits to 1x. (This causes programmed PLLEN bits to take effect. VCOs are
stopped.)
4.Program pixel clock PLL N, M, and P registers (with PLLEN bit = 1) for new frequency.
5.Poll pixel clock PLL status register until LOCK bit is set to 1.
7.Program loop clock PLL N, M, and P registers (with PLLEN bit = 1) to new setting.
8.Poll loop clock PLL status register until LOCK bit is set to 1.
T able C–2 TVP3026 Clock Programming Procedure – Extended Mode Setup
IndexDataComment
1A75Select pixel clock PLL as clock source. Set bits 6–4 to
2C2APoint to P registers
2F0Set loop clock PLL PLLEN bit to 0.
2D0Set pixel clock PLL PLLEN bit to 0.
PLLSEL(1, 0)11Causes programmed PLLEN bits to take effect. VCOs
2C0Point to N registers
2DN, M, P from tableProgram pixel clock PLL (see Note 4)
2C3FPoint to status registers
2D(read)Poll until bit 6 (LOCK bit) is set
393X
2C0Point to N registers
2FE1, 3D, Fx† (8 bpp)
2C3FPoint to status registers
2F(read)Poll until bit 6 (LOCK bit) is set to 1.
†
Depends on pixel clock frequency so that the loop clock PLL VCO is within its operating range.
NOTES: 3. Setting index 0x1A bits 6–4 to 111 for all modes is optional. This disables the unused VCLK output for the
purpose of eliminating unnecessary switching. This changes the value from 0x07 to 0x77 for VGA mode,
and from 0x05 to 0x75 for high-resolution VGA and extended modes.
4. The upper two bits of the N register for all PLLs should be set to 11.
F1, 3D, Fx (15/16 bpp)
F9, BE, Fx (24 bpp, 8:3 mux)
F9, 3D, Fx (32 bpp)
†
disable unused VCLK output (see Note 3).
are stopped.
Set Q divider for loop clock PLL
Program loop PLL
C–2
Page 97
Appendix D
PC-Board Layout Considerations
PC-Board Considerations
It is recommended that a 4-layer PC board be used with the TVP3026 video interface palette: one layer for
5-V power, one for GND, and two for signals. The layout should be optimized for the lowest noise on the
TVP3026 power and ground lines by shielding the digital inputs and providing good decoupling. The lead
length between groups of analog V
minimize inductive ringing. The TVP3026 P0–P63 terminal assignments have been selected for minimum
interconnect lengths between these inputs and the standard VRAM pixel data outputs. The TVP3026 should
be located as close as possible to the output connectors to minimize noise pickup and reflections due to
impedance mismatch.
The analog outputs are susceptible to crosstalk from digital lines; digital traces must not be routed under
or adjacent to the analog output traces.
For maximum performance, the analog-video-output impedance, cable impedance, and load impedance
should be the same. The load resistor connection between the video outputs and GND should be as close
as possible to the TVP3026 to minimize reflections. Unused analog outputs should be connected to GND.
Analog output video edges exceeding the CRT monitor bandwidth can be reflected, producing cablelength-dependent ghosts. Simple pulse filters can reduce high-frequency energy, thus reducing EMI and
noise. The filter impedance must match the line impedance.
Ground Plane
It is also recommended that only one ground plane be used for both the TVP3026 and the rest of the logic.
Separate digital and analog ground planes are not needed and can potentially cause system problems.
and GND terminals (see Figure D–1) should be minimized so as to
DD
Power Plane
Split-power planes for the TVP3026 and the rest of the logic are recommended. The TVP3026 VIP analog
circuitry should have its own power plane, referred to as AV
connected at a single point through a ferrite bead, as shown in Figures D–1 and D–2.This bead should be
located as near as possible to where the power supply connects to the board. To maximize the
high-frequency power supply rejection, the video output signals should not overlay the analog power plane.
. These two power planes should be
DD
Supply Decoupling
The bypass capacitors should be installed using the shortest leads possible. This reduces the lead
inductance and is consistent with reliable operation.
For the best performance, a 0.1-µF ceramic capacitor in parallel with a 0.01-µF chip capacitor should be
used to decouple each of the groups of power terminals to GND. These capacitors should be placed as close
as possible to the device, as shown in Figure D–2.
When a switching power supply is used, the designer should pay close attention to reducing power supply
noise and consider using a 3-terminal voltage regulator for supplying power to A V
DD
.
D–1
Page 98
COMP and REF Terminals
A 0.1-µF ceramic capacitor should be connected between COMP1 and COMP2 to avoid noise and
color-smearing problems. A 0.1-µF ceramic capacitor is also recommended between GND and REF to
further stabilize the output image. This 0.1-µF capacitor is needed for either internal or external voltage
references. These capacitor values may depend on the board layout; experimentation may be required in
order to determine optimum values.
Analog Output Protection
The TVP3026 analog output should be protected against high-energy discharges, such as those from
monitor arc-over or from hot-switching ac-coupled monitors.
The diode protection circuit shown in Figure D–1 can prevent latch-up under severe discharge conditions
without adversely degrading analog transition times. The IN4148/9 parts are low-capacitance,
fast-switching diodes, which are also available in multiple-device packages (FSA250X or FSA270X) or
surface-mountable pairs (BAV99 or MMBD7001).
PLL Supply
A separate 5-V regulator is recommended for the PLL supply . A typical circuit is shown in Figure D–1.
The vendor numbers above are listed only as a guide. Substitution of devices with similar
characteristics will not affect the performance of the TVP3026.
‡
Or equivalent only.
NOTE A: R1, D1, and reset circuit are optional. In general, each pair of device power and
IOB
DD
RESET
Location
GND terminals should be separately decoupled with 0.1-µF and 0.01-µF
capacitors
ref
GND
C1–C2 C3–C4
C12
R2R3R4R5
DV
DD
Optional
Power-Up
Reset
DescriptionVENDOR PART NUMBER
0.01-µF ceramic chip capacitorAVX 12102T103QA1018
R1
C13
D1
DAC
Output
C6 – C11, C20C14 – C19
GND
To Video Connector
DD
1N148/9
1N148/9
GND
‡
Optional Diode
Protection
Circuit
To Monitor
†
DV
Figure D–1. Typical Connection Diagram and Parts
D–3
Page 100
C19
C11
C10C18
C3
C1
C4
C2
R1
D1
C5C12
R2
R3
Edge of Board
R4
C9C17
TVP3026
(160-Pin QFP)
C8
C16
C14C6
C15C7
C20
R5
+
C13
L1
P1
DB15
Connector
Analog Power
Digital Power
Figure D–2. Typical Component Placement With Split-Power Plane
D–4
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.