spruf72c
spruf72c
Reference Guide
Preface....................................................................................................................................... 14
1 Purpose of the Video Processing Back End........................................................................... 18
1.1 Features .................................................................................................................. 18
1.2 Functional Block Diagram .............................................................................................. 21
1.3 Supported Use Case Statement ....................................................................................... 21
1.4 Industry Standard(s) Compliance Statement ........................................................................ 21
2 Display Subsystem Environment .......................................................................................... 21
2.1 Analog Display Interface ................................................................................................ 23
2.2 Digital Display Interface ................................................................................................. 32
2.3 VPBE Display Subsystem I/O Multiplexing ........................................................................... 44
3 VPBE Integration ................................................................................................................ 47
3.1 Clocking, Reset, and Power Management Scheme ................................................................ 47
3.2 Hardware Requests ..................................................................................................... 53
3.3 Video DAC Configuration ............................................................................................... 53
3.4 VPBE Top-Level Register Mapping Summary ....................................................................... 56
4 VPBE Functional Description ............................................................................................... 56
4.1 Block Diagram ........................................................................................................... 56
4.2 Interfacing with Displays ................................................................................................ 57
4.3 Master/Slave Mode Interface .......................................................................................... 61
4.4 On-Screen Display (OSD) Module .................................................................................... 62
4.5 Video Encoder Module ................................................................................................ 102
5 Programming Model .......................................................................................................... 138
5.1 Setup for Typical Configuration ...................................................................................... 138
5.2 Resetting the VPBE Subsystem ..................................................................................... 138
5.3 Configuring the Clocks and Control Signals ........................................................................ 138
5.4 Programming the On-Screen Display (OSD) ....................................................................... 139
5.5 Programming the VENC............................................................................................... 146
6 VPBE Registers ................................................................................................................ 152
6.1 VPSSCLK - VPSS Clock Controller ................................................................................. 152
6.2 VPSSBL - VPSS Buffer Logic ........................................................................................ 155
6.3 On-Screen Display (OSD) Registers ................................................................................ 162
6.4 Video Encoder/Digital LCD Subsystem (VENC) Registers ....................................................... 206
Appendix A Revision History ..................................................................................................... 249
List of Figures
1 Functional Block Diagram ................................................................................................. 17
2 Video Processing Subsystem Block Diagram .......................................................................... 18
3 Video Processing Back End Block Diagram ............................................................................ 21
4 Horizontal Timing ........................................................................................................... 24
5 NTSC Vertical Timing ...................................................................................................... 27
6 PAL Vertical Timing ........................................................................................................ 28
7 100% Color Bar Output Level ............................................................................................ 30
8 75% Color Bar Output Level .............................................................................................. 31
9 YCC16 Output for Normal OSD Operation ............................................................................. 35
10 YCC16 Output When OSD Window in RGB565 ....................................................................... 35
11 YCC8 Output for Normal OSD Operation ............................................................................... 38
12 YCC8 Output When OSD Window in RGB565 ......................................................................... 38
13 RGB Output in Parallel RGB Mode ...................................................................................... 40
14 PINMUX1 Register ......................................................................................................... 45
15 VPBE/DAC Clocking Options ............................................................................................. 48
16 VPSS Clock Mux Control Register (VPSS_CLK_CTRL) .............................................................. 49
17 USB Physical Control Register (USB_PHY_CTRL) ................................................................... 50
18 Video DAC Configuration Register (VDAC CONFIG) ................................................................. 54
19 Video Processing Subsystem Block Diagram .......................................................................... 56
20 Video Processing Back End Block Diagram ............................................................................ 57
21 Video Encoder Display Frame and Control Signal Definitions ....................................................... 61
22 OSD Window Display Priorities........................................................................................... 62
23 OSD Window Positioning.................................................................................................. 65
24 OSD Window Frame Mode ............................................................................................... 67
25 OSD Window Field Mode ................................................................................................. 68
26 OSD Window Zoom Process ............................................................................................. 70
27 Video Window Display Options ........................................................................................... 74
28 Pixel Arrangement in the Display ........................................................................................ 74
29 Video Data Format – YUV422 ............................................................................................ 74
30 Filtering Method for Horizontal x2/x4 Zoom ............................................................................ 76
31 Filtering Method for Horizontal x1.5/x1.125 Zoom ..................................................................... 77
32 Filtering Method for Vertical x1 Expansion (Same Data Each Field) ................................................ 78
33 Filtering Method for Vertical x1 Expansion (Frame Data) ............................................................. 79
34 Filtering Method for Vertical x2 Expansion (Same Data Each Field) ................................................ 80
35 Filtering Method for Vertical x2 Expansion (No Field Rate Conversion) ............................................ 81
36 Filtering Method for Vertical x2 Expansion (Frame Data) ............................................................. 82
37 Filtering Method for Vertical x4 Expansion (Same Data Each Field) ................................................ 83
38 Filtering Method for Vertical x4 Expansion (No Field Rate Conversion) ............................................ 84
39 Filtering Method for Vertical x4 Expansion (Frame Data) ............................................................. 85
40 Filtering Method for Vertical x1.2 Expansion with No Zoom .......................................................... 86
41 Filtering Method for Vertical x1.2 Expansion with 2x Zoom .......................................................... 87
42 Filtering Method for Vertical x1.2 Expansion with 4x Zoom .......................................................... 87
43 Bitmap + Video Window Display Examples............................................................................. 88
44 ROM0 Color Look-Up Table (Equivalent RGB) ........................................................................ 91
45 ROM1 Color Look-Up Table (Equivalent RGB) ........................................................................ 94
46 Concept of Attenuation for RGB Bitmap Data .......................................................................... 97
47 Bitmap Data Formats ...................................................................................................... 98
48 Data Format – RGB565 ................................................................................................... 99
49 Bitmap Data Format – RGB888 .......................................................................................... 99
50 OSD Attribute Window ................................................................................................... 100
51 Cursor Window Example ................................................................................................ 101
52 Cursor Window Configuration ........................................................................................... 102
List of Tables
1 Interface Signals for Video Processing Back End ..................................................................... 22
2 Interface Signals for Analog Displays ................................................................................... 23
3 Horizontal Timing Parameters (SDTV) .................................................................................. 24
4 Blanking Shaping On/Off .................................................................................................. 25
5 Number of Lines for Each Scan Mode .................................................................................. 26
6 Digital Display Modes ...................................................................................................... 32
7 Signals for VPBE Digital Display Modes ................................................................................ 32
8 Interface Signals For YCC16 Digital Displays .......................................................................... 33
9 Interface Signals For YCC8 Digital Displays ........................................................................... 36
10 Interface Signals For Parallel RGB Digital Displays ................................................................... 39
11 Interface Signals For Serial RGB Digital Displays ..................................................................... 41
12 Signals for VPBE Digital Display Modes ................................................................................ 44
13 RGB666 Pin Multiplexing Control ........................................................................................ 45
14 PINMUX1 Register Field Descriptions ................................................................................... 46
15 VPSS Clock Mux Control Register (VPSS_CLK_CTRL) Field Descriptions ....................................... 49
16 USB Physical Control Register (USB_PHY_CTRL) Field Descriptions ............................................. 50
17 ARM Interrupts - VPBE .................................................................................................... 53
18 EDMA Interrupts ............................................................................................................ 53
19 Video DAC Configuration Register (VDAC CONFIG) Field Descriptions ........................................... 54
20 VSPP Module Register Map .............................................................................................. 56
21 Analog Display Interface Signals ......................................................................................... 57
22 YCC16 Digital Display Interface Signals ................................................................................ 58
23 YCC8 Digital Display Interface Signals .................................................................................. 58
24 Parallel RGB Digital Display Interface Signals ......................................................................... 59
25 Serial RGB Digital Display Interface Signals ........................................................................... 60
26 Master Mode Configuration Registers ................................................................................... 61
27 OSD Windows .............................................................................................................. 62
28 Functional Description of the OSD Windows ........................................................................... 63
29 OSD SDRAM Address Registers ........................................................................................ 64
30 OSD SDRAM Offset Registers ........................................................................................... 64
31 OSD Window Positioning Registers ..................................................................................... 65
32 OSD Field/Frame Mode Registers ....................................................................................... 66
33 Window Mode Description ................................................................................................ 66
34 Functional Matrix of Scaling and Zoom ................................................................................. 69
35 OSD Window Zoom Registers ............................................................................................ 70
36 Normal OSD Window Expansion Registers ............................................................................ 71
37 Extended OSD Window Expansion Registers .......................................................................... 71
38 Zoom and Expansion Filter Usage ....................................................................................... 72
39 Vertical Boundary Filtering Control Registers .......................................................................... 73
40 OSD Background Color Registers ....................................................................................... 73
41 Expansion and Anti-Flicker Filter for Video Window ................................................................... 75
42 Filtering Configuration for Horizontal x2/x4 Zoom ..................................................................... 75
43 Filtering Configuration for Horizontal x1.5/x1.125 Expansion ........................................................ 76
44 Table 37. Vertical x1 Anti-Flicker Filter Control Registers ............................................................ 77
45 Operation of Vertical x1 Anti-Flicker Filter Control Registers......................................................... 78
46 Operation of Vertical x1 Anti-Flicker Filter Control Registers......................................................... 78
47 Operation of Vertical x1 Anti-Flicker Filter for Frame Mode .......................................................... 79
48 Operation of Vertical x2 Anti-Flicker Filter for Field Mode ............................................................ 80
49 Operation of Vertical x2 Anti-Flicker Filter (No Field Rate Conversion) ............................................. 81
101 Rectangular Cursor Setup Register (RECTCUR) Field Descriptions .............................................. 172
102 Video Window 0 Offset Register (VIDWIN0OFST) Field Descriptions ............................................ 173
103 Video Window 1 Offset Register (VIDWIN1OFST) Field Descriptions ............................................ 173
104 OSD Window 0 Offset Register (OSDWIN0OFST) Field Descriptions ............................................ 174
105 OSD Window 1 Offset Register (OSDWIN1OFST) Field Descriptions ............................................ 174
106 Video Window 0/1 Address Register-High (VIDWINADH) Field Descriptions .................................... 175
107 Video Window 0 Address Register-Low (VIDWIN0ADL) Field Descriptions ...................................... 176
108 Video Window 1 Address Register-Low (OSDWIN1ADL) Field Descriptions .................................... 176
109 Bitmap Window 0/1 Address Register-High (OSDWINADH) Field Descriptions ................................. 177
110 Bitmap Window 0 Address Register-Low (OSDWIN0ADL) Field Descriptions ................................... 177
111 Bitmap Window 1 / Attribute Address Register-Low (OSDWIN1ADL) Field Descriptions....................... 178
112 Base Pixel X Register (BASEPX) Field Descriptions ................................................................ 179
113 Base Pixel Y Register (BASEPY) Field Descriptions ................................................................ 179
114 Video Window 0 X-Position Register (VIDWIN0XP) Field Descriptions ........................................... 180
115 Video Window 0 Y-Position Register (VIDWIN0YP) Field Descriptions ........................................... 180
116 Video Window 0 X-Size Register (VIDWIN0XL) Field Descriptions ................................................ 181
117 Video Window 0 Y-Size Register (VIDWIN0YL) Field Descriptions ................................................ 181
118 Video Window 1 X-Position Register (VIDWIN1XP) Field Descriptions ........................................... 182
119 Video Window 1 Y-Position Register (VIDWIN1YP) Field Descriptions ........................................... 182
120 Video Window 1 X-Size Register (VIDWIN1XL) Field Descriptions ................................................ 183
121 Video Window 1 Y-Size Register (VIDWIN1YL) Field Descriptions ................................................ 183
122 OSD Bitmap Window 0 X-Position Register (OSDWIN0XP) Field Descriptions ................................. 184
123 OSD Bitmap Window 0 Y-Position Register (OSDWIN0YP) Field Descriptions ................................. 184
124 OSD Bitmap Window 0 X-Size Register (OSDWIN0XL) Field Descriptions ...................................... 185
125 OSD Bitmap Window 0 Y-Size Register (OSDWIN0YL) Field Descriptions ...................................... 185
126 OSD Bitmap Window 1 X-Position Register (OSDWIN1XP) Field Descriptions ................................. 186
127 OSD Bitmap Window 1 Y-Position Register (OSDWIN1YP) Field Descriptions ................................. 186
128 OSD Bitmap Window 1 X-Size Register (OSDWIN1XL) Field Descriptions ...................................... 187
129 OSD Bitmap Window 1 Y-Size Register (OSDWIN1YL) Field Descriptions ...................................... 187
130 Rectangular Cursor Window X-Position Register (CURXP) Field Descriptions .................................. 188
131 Rectangular Cursor Window Y-Position Register (CURYP) Field Descriptions .................................. 188
132 Rectangular Cursor Window X-Size Register (CURXL) Field Descriptions ....................................... 189
133 Rectangular Cursor Window Y-Size Register (CURYL) Field Descriptions ....................................... 189
134 Window 0 Bitmap Value to Palette Map 0/1 Register (W0BMP01) Field Descriptions .......................... 190
135 Window 0 Bitmap Value to Palette Map 2/3 Register (W0BMP23) Field Descriptions .......................... 190
136 Window 0 Bitmap Value to Palette Map 4/5 Register (W0BMP45) Field Descriptions .......................... 191
137 Window 0 Bitmap Value to Palette Map 6/7 Register (W0BMP67) Field Descriptions .......................... 191
138 Window 0 Bitmap Value to Palette Map 8/9 Register (W0BMP89) Field Descriptions .......................... 192
139 Window 0 Bitmap Value to Palette Map A/B Register (W0BMPAB) Field Descriptions ......................... 192
140 Window 0 Bitmap Value to Palette Map C/D Register (W0BMPCD) Field Descriptions ........................ 193
141 Window 0 Bitmap Value to Palette Map E/F Register (W0BMPEF) Field Descriptions ......................... 193
142 Window 1 Bitmap Value to Palette Map 0/1 Register (W1BMP01) Field Descriptions .......................... 194
143 Window 1 Bitmap Value to Palette Map 2/3 Register (W1BMP23) Field Descriptions .......................... 194
144 Window 1 Bitmap Value to Palette Map 4/5 Register (W1BMP45) Field Descriptions .......................... 195
145 Window 1 Bitmap Value to Palette Map 6/7 Register (W1BMP67) Field Descriptions .......................... 195
146 Window 1 Bitmap Value to Palette Map 8/9 Register (W1BMP89) Field Descriptions .......................... 196
147 Window 1 Bitmap Value to Palette Map A/B Register (W1BMPAB) Field Descriptions ......................... 196
148 Window 1 Bitmap Value to Palette Map C/D Register (W1BMPCD) Field Descriptions ........................ 197
149 Window 1 Bitmap Value to Palette Map E/F Register (W1BMPEF) Field Descriptions ......................... 197
150 Test Mode Register (VBNDRY) Field Descriptions .................................................................. 197
151 Extended Mode Register (EXTMODE) Field Descriptions .......................................................... 198
TMS320DM35x is a highly integrated, programmable platform for digital still/video cameras and other
mobile imaging devices. Designed to offer camera manufacturers the ability to produce affordable DSC
products with high picture quality, the device combines programmable image processing capability with a
highly integrated imaging peripheral set. The device contains an ARM9 RISC CPU, a proprietary
DSP-based imaging co-processor subsystem, and a powerful video processing subsystem. Together, they
enable device manufacturers to implement high-speed hardware enabled image pipelines as well as their
own proprietary image processing algorithms in software. The device also enables seamless interface to
many external display devices required for a complete digital camera digital implementation via the Video
Processing Back End Subsystem or VPBE. The interface is flexible enough to support various types of
digital as well as analog (NTSC/PAL) displays. A block diagram is shown in Figure 1.
H3A
Parallel
imager CCDC
input
DDR2/mDDR
Buffer
controller
logic
IPIPEIF
IPIPE
VPFE
1.1 Features
The video processing back-end (VPBE) block is comprised of the on-screen display (OSD) and the video
encoder (VENC) modules. Together, these modules provide the device with a powerful and flexible
back-end display interface. These are described below:
• The on-screen display (OSD) graphic accelerator manages display data in various formats for several
types of hardware display windows and handles the blending of the display windows into a single
display frame, which is then output by the video encoder module.
• The video encoder (VENC) takes the display frame from the OSD and formats it into the desired output
format and output signals, including data, clocks, sync, etc. required to interface to display devices.
The VENC consists of three primary sub-blocks:
– The analog video encoder generates the signaling, including video A/D conversion, to interface to
OSD VENC
Bitmap CLUT and Video
Video
FIFO window DAC
encoder
atributes (x1)
DDR2/
DDR2/
mDDR
mDDR
EMIF Video Timing
FIFO Blending
generator
Digital Digital
Display LCD video
controller controller interface
HD, VD
field ID
CLK_OSD
ARM
Note: See Section 3.3 for proper configuration of Video DAC. See the data sheet for recommended
hardware configuration for the Video DAC and buffer.
T1
T2
T3
T4
T5
T6
Blanking edge
shaping disable
White 100%
476 460
Blanking edge
shaping disable 358
261 256
153
52 51
0 1421 Clk 1404 Clk
2 Clk 2 Clk
1440 Clk 1440 Clk
256 256
235 235
207
193 179
152 152
110 124
96
68 68
47 47
Normal Normal
(1) CSBLD=0 (140 ns), CVLVL=0 (286 mV) (2) CSBLD=1 (200 ns), CVLVL=0 (286 mV)
(NTSC default)
256 256
234 234
205
190 176
146 146
103 117
88
59 59
37 37
Normal Normal
(3) CSBLD=0 (140 ns), CVLVL=1 (300 mV) (4) CSBLD=1 (200 ns), CVLVL=1 (300 mV)
(PAL default)
CVBS
524 525 1 2 3 4 5 6 7 8 9 10 11 21 22
HSYNC
I
(III)
VSYNC
CVBS
262 263 264 265 266 267 268 269 270 271 272 273 283 284
HSYNC
II
(IV)
VSYNC
CVBS
HSYNC
I
(V)
VSYNC
CVBS
308 309 310 311 312 313 314 315 316 317 318 319 320 335 336
HSYNC
II
(VI)
VSYNC
CVBS
HSYNC
III
(VII)
VSYNC
FIELD
CVBS
308 309 310 311 312 313 314 315 316 317 318 319 320 335 336
HSYNC
IV
(VIII)
VSYNC
FIELD
CVBS
HSYNC
VSYNC
FIELD
CVBS
HSYNC
VSYNC
FIELD
Magenta
Magenta
Yellow
Yellow
Green
Green
White
White
Black
Black
Cyan
Cyan
Blue
Blue
Red
Red
Lumi Lumi
Level IRE Level IRE
47 −40 47 −40
Chroma Chroma
Level IRE Level IRE
Green
White
Black
Cyan
Blue
Red
Lumi
Level IRE
768 100.5
709 88.9
616 70.7
557 59.1
466 41.2
408 29.8
314 11.4
256 0
37 −43
Chroma
Level IRE
324 63.6
302 59.3
229 45.0
110 21.6
0 0
−110 −21.6
−229 −45.0
−302 −59.3
−324 −63.6
PAL
Magenta
Magenta
Yellow
Yellow
Green
Green
White
White
Black
Black
Cyan
Cyan
Blue
Blue
Red
Red
Lumi Lumi
Level IRE Level IRE
47 −40 47 −40
Chroma Chroma
Level IRE Level IRE
Green
White
Black
Cyan
Blue
Red
Lumi
Level IRE
639 75.2
597 67.0
525 52.8
480 44.0
415 31.2
370 22.4
300 8.6
256 0
37 −43
Chroma
Level IRE
242 47.5
226 44.4
172 33.7
110 21.6
0 0
−110 −21.6
−172 −33.7
−226 −44.4
−242 −47.5
PAL
The digital image data output signals support multiple functions / interfaces, depending on the display
mode selected. Table 7 describes these modes. Note that Parallel RGB mode with more than 16-bit
RGB565 signals requires enabling pin multiplexing to support (i.e., for RGB666 mode).
clk_enc
Internal Y Y0 Y1 Y2 Y3
Internal DCLK
rise edge
YOUT[7:0]
COUT[7:0] Y0, Cb0 Y1, Cr0 Y2, Cb2 Y3, Cr2
(normal mode)
YOUT[7:0]
COUT[7:0] Y0, Cb0 Y1, Cr0 Y2, Cb2 Y3, Cr2
(latch mode)
The OSD also includes support for window data in bitmap format, either 1,2,4, or 8-bit resolution via a
YUV Color Look Up Table (CLUT) or via RGB565 bitmap format. Data corresponding to bitmap pixels is in
full YUV444 resolution and is overlaid onto the YUV422 resolution video window pixel output. In this case,
chroma blurring can occur at the edge between bitmap windows and the rest of the OSD image. In normal
operation, the chroma value output from VENC is the immediate value at the sampling time. However, to
alleviate this chroma blurring, a “latch” mode is provided where the chroma output for the second pixel in a
UV pair can be the data latched at the first pixel. The latch mode is enabled by setting YCCCTL.CHM to 1.
clk_enc
Internal Y Y0 Y1 Y2 Y3
Internal DCLK
rise edge
YOUT[7:0]
COUT[7:0] Y0, Cb0 Y1, Cr1 Y2, Cb2 Y3, Cr3
(normal mode)
YOUT[7:0]
COUT[7:0] Y0, Cb0 Y1, Cr0 Y2, Cb2 Y3, Cr2
(latch mode)
clk_enc
Internal Y Y0 Y1 Y2 Y3
Internal DCLK
rise edge
YOUT[7:0]
Cb0 Y0 Cr0 Y1 Cb2 Y2 Cr2 Y3
(normal mode)
YOUT[7:0]
Cb0 Y0 Cr0 Y1 Cb2 Y2 Cr2 Y3
(latch mode)
The OSD also includes support for window data in bitmap format, either 1,2,4, or 8-bit resolution via a
YUV Color Look Up Table (CLUT) or via RGB565 format. Data corresponding to bitmap pixels is in full
YUV444 resolution and is overlaid onto the YUV422 resolution video window pixel output. In this case,
chroma blurring can occur at the edge between bitmap windows and the rest of the OSD image. In normal
operation, the chroma value output from VENC is the immediate value at the sampling time. However, to
alleviate this chroma blurring, a “latch” mode is provided where the chroma output for the second pixel in a
UV pair can be the data latched at the first pixel. The latch mode is enabled by setting YCCCTL.CHM to 1.
clk_enc
Internal Y Y0 Y1 Y2 Y3
Internal DCLK
rise edge
YOUT[7:0]
Cb0 Y0 Cr0 Y1 Cb2 Y2 Cr2 Y3
(normal mode)
YOUT[7:0]
Cb0 Y0 Cr0 Y1 Cb2 Y2 Cr2 Y3
(latch mode)
Table 10. Interface Signals For Parallel RGB Digital Displays (continued)
PU Reset Function Control /
Name TYPE Description
PD State Mux Control
VPBE Digital Signals
EXTCLK / inout PD in Video encoder: External clock input, PINMUX1[21:20], EXTCLK = 1
GIO069 / B2 / used if clock rates > 27MHz are or
PWM3D needed (e.g., 74.25 MHz for HDTV PINMUX1[21:20], EXTCLK = 2
digital output). (if needed)
GIO: GIO[069], Digital video out: B2,
PWM3D
VCLK / inout out L Video encoder: Video output clock PINMUX1[22], VCLK = 0
GIO068 GIO: GIO[068]
clk_enc
Internal R0, G0, R1, G1 R2, G2, R3, G3, R4, G4, R5, G5, R6, G6, R7, G7, R8, G8,
rgb data B0 B1 B2 B3 B4 B5 B6 B7 B8
Internal DCLK
rise edge
LCD_OE
RGB output 0 R2, G2, B2 R3, G3, B3 R5, G5, B5 R6, G6, B6
VCLK
(example)
clk_enc
R0 R1 R2 R3 R4 R5 R6 R7 R8
internal rgb data G0 G1 G2 G3 G4 G5 G6 G7 G8
B0 B1 B2 B3 B4 B5 B6 B7 B8
LCD_OE
VCLK (example)
clk_enc
R0 R1 R2 R3 R4 R5 R6 R7 R8
internal rgb data G0 G1 G2 G3 G4 G5 G6 G7 G8
B0 B1 B2 B3 B4 B5 B6 B7 B8
LCD_OE
VCLK (example)
clk_enc
R0 R1 R2 R3 R4 R5 R6 R7 R8
internal rgb data G0 G1 G2 G3 G4 G5 G6 G7 G8
B0 B1 B2 B3 B4 B5 B6 B7 B8
LCD_OE
VCLK (example)
clk_enc
R0 R1 R2 R3 R4 R5 R6 R7 R8
internal rgb data G0 G1 G2 G3 G4 G5 G6 G7 G8
B0 B1 B2 B3 B4 B5 B6 B7 B8
LCD_OE
VCLK (example)
2.2.5.1 Bright
• Polarity can be inverted via LCDOUT.BRP.
• When using the BRIGHT signal, set LCDOUT.BRE to 1.
• The units of BRTS and BRTW are in VCLK periods.
HSYNC
BRTS
BRTW
BRIGHT
2.2.5.3 LCD_AC
When using the LCD_AC signal, set LCDOUT.ACE to 1.
The units of ACCTL.ACTH and ACCTL.ACTF are VCLK and line, respectively.
VSYNC
LCD_AC
ACTF
HSYNC
ACTH
LCD_AC
PWM
PMW
PMP
15 14 13 12 11 10 9 8
COUT_0 COUT_1 COUT_2 COUT_3
R/W-0 R/W-0 R/W-0 R/W-0
7 6 5 4 3 2 1 0
COUT_4 COUT_5 COUT_6 COUT_7
R/W-0 R/W-0 R/W-0 R/W-0
3 VPBE Integration
This section describes how the VPBE subsystem in integrated into the DMSoC.
3.1.1 Clocks
• MXI1 crystal/oscillator
• MXI2 crystal/oscillator (backup option if 27 MHz derived from PLL1 is not usable)
• EXTCLK input pin, or the VPFE pixel clock input (PCLK)
The video DAC is hooked up to the VENC module that is inside the VPBE. The data flow between the
VPBE and DACs is synchronous. The various clocking modes possible are shown in Figure 15.
The DACs can also have their clocks independently gated off when the DACs are not being used.
PCLK CG OSD
1
3 CLK_ VENC
EXTCLK 2 VENC
0
1
0 Register
Register CLK_CTRL.VENC_CLKSEL
VPSS_CLK_CTRL.
MUXSEL
3
2 CLK_DAC
DAC
PLL1 (sysclk3) 0 1
MXI2 1 0
MXI1 2
Register
VPSS_CLK_CTRL.
VENC_CLK_SRC
The VPBE clock control is in the System module in the VPSS_CLK_CTRL register.
• Primary Clock mode, MUXSEL = 0: Both the VENC and DAC get their clock from the source selected
by VPSS_CLK_SRC.
1. 0: PLL1 divided down
2. 1: MXI2 (27 MHz backup option, see: USB_PHY_CTRL.VPSS_OSCPWDN)
3. 2: MXI1 (24 MHz, or 27 MHz without USB)
• Reserved MUXSEL = 1: Reserved mode
• EXTCLK mode, MUXSEL = 2: Both the DAC and VENC receive the EXTCLK. The VENC optionally
can divide this frequency by 2, for the VENC, which allows use of the DAC at 27 MHz if driving in 54
MHz on EXTCLK via VPSSCLK.CLKCTRL.VENC_CLKSEL.
• PCLK mode, MUXSEL = 3: The VENC receives the PCLK. The video DAC receives no clock, and
should be disabled. PCLK can be inverted for negative edge support, selectable by the MMR bit.
In addition to the clock multiplex control, the VPSS_CLK_CTRL register also includes controls for
enable/disable of the DAC clock – DACCLKEN and enable/disable of the VPBE clock – VENCCLKEN.
Finally, the VPBE clock itself can be separately gated via VPBE Clock Control register
VPSSCLK.CLKCTRL.VPBE_CLK.
15 7 6 5 4 3 2 1 0
Reserved VENC_CLK_S DACCLKEN VENCLKEN PCLKINV MUXSEL
RC
R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Table 15. VPSS Clock Mux Control Register (VPSS_CLK_CTRL) Field Descriptions
Bit Field Value Description
31-7 Reserved 0 Reserved
6-5 VENC_CLK_ 27 MHz input source
SRC
0 PLL1 divided down
1 (EXTCRYSTAL2) External crystal 2
2h (EXTCRYSTAL1) External crystal 1
3h Reserved
4 DACCLKEN Video DAC clock enable
0 Disabled
1 Enabled
3 VENCLKEN VPBE/Video encoder clock enable
0 Disabled
1 Enabled
2 PCLK_INV Invert VPFE pixel clock (PCLK)
0 Disable VENC clock mux and CCDC receive normal PCLK
1 Enable VENC clock mux and CCDC receive inverted PCLK
1-0 VPSS_MUXS 0-3h VPSS clock selection
EL
0 Use input set by VENC_CLK_SRC (typically 27 MHZ).
1h Reserved
2h EXTCLK mode. Use external VPBE clock input (DAC clock = EXTCLK).
3h PCLK mode. Use PCLK from VPFE (DAC clock = off).
15 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved DATA PHYCLKSRC PHYC SESN VBDT VBUS PHYP Reserv VPSS OTGP PHYP
POL LKGD DEN CTEN ENS LLON ed OSCP DWN DWN
DWN
R-0 R/W- 0 R/W-0 R/W-0 R/W-1 R/W-1 R-0 R/W-0 R-0 R/W-1 R/W-1 R/W-1
3.1.2 Resets
The device VPBE module resets are tied to the device reset signals.
The VPBE is a subset of the VPSS module and has two module domains, the VPSS Master processing
domain and the VPSS Slave register interface. Thus, resetting either of these will affect the VPFE as well.
CAUTION
Do not use the SyncReset or SwRstDisable states of the PSC for either the
VPSS Master or VPSS Slave modules.
3.1.3.2 Minimize Active Power When only VPBE is Used (VPFE is Disabled)
VPBE-only mode: Clock gate VPFE only, but keep VPBE active:
• Disable the clocks to the VPFE modules via VPSSCLK.CLKCTRL (i.e., CCDC_CLK, IPIPE_CLK,
H3A_CLK).
• Disable any external imaging device driving the VPFE pixel clock (PCLK) to avoid clocking any input
logic and any of the VPBE logic via pass-through.
VPBE digital-only mode: Clock gate video DAC:
• Stop the DAC clock directly via SYSTEM.VPSS_CLK_CTRL.DACCLKEN = 0.
• Stop analog video encoder clock via VENC.CLKCTL.
• Stop gamma table clock via VENC.CLKCTL, if not used.
Note: When PCLK is used for VPBE (CLK_VENC), the DAC clock is automatically disabled:
SYSTEM.VPSS_CLK_CTRL.VPSS_MUXSEL = 3.
3.1.3.3 Minimize Active Power When Only VPFE is Used (VPBE is Disabled)
VPFE-only mode: Clock gate VPBE only, but keep VPFE active:
• Gate CLK_VENC by stopping it at the source (at the clock input pin or via
SYSTEM.VPSS_CLK_CTRL.VENCCLKEN = 0).
• Gate CLK_DAC by stopping it at the source (at the clock input pin or via
SYSTEM.VPSS_CLK_CTRL.DACCLKEN = 0).
VPFE-only mode: Other options:
• Gate all VPBE clocks off via VPSSCLK.CLKCTRL.VPBE_CLK = 0.
• Disable the video encoder (VENC) operation via VENC.VMOD.VENC = 0.
22 21 20 19 18 17
TRESB4R2 TRESB4R1 TRIMBITS
R/W - 0x8 R/W - 0xC R/W - 0x37
11 10 9 8
TRIMBITS PWD_BGZ SPEED TVINT
R/W - 0x37 R/W - 0 R/W - 1 R-0
7 6 4 3 2 1 0
PWD_VBUFZ VREFSET ACCUP_EN DINV POWER_OK DAC_DMEN
R/W - 0 R/W - 3 R/W - 1 R/W - 1 R/W - 1 R-0
Table 19. Video DAC Configuration Register (VDAC CONFIG) Field Descriptions
Bit Field Value Description
31 - 30 Reserved Reserved
29 - 26 TRESB4R4 TRESB4R4
25 - 22 TRESB4R2 TRESB4R4
21 - 17 TRESB4R1 TRESB4R4
17 - 11 TRIMBITS TRIMBITS
10 PWD_BGZ Power Down of VREF_ active low
0 DISABLE - power down
1 ENABLE - power up
9 SPEED Faster operation of VREF transfer
0 DISABLE - normal
1 ENABLE - faster
8 TVINT TV cable connect status from DAC
0 Cable connected
1 Cable disconnected
7 PWD_VBUFZ Video buffer power down
0 DISABLE - power down
1 ENABLE - power up
6-4 VREFSET Video buffer VREF setting
3 ACCUP_EN Video buffer AC capacitor external coupling
0 Disable the coupling
1 Enable the coupling
2 DINV VENC data inversion (inside the DAC)
0 No inversion - use only when VDAC is used without VREF and buffer
1 Inversion - when VDAC is used with VREF and buffer
1 POWER_OK Reserved for test purposes; reserved from application perspective
0 DAC_DMEN DAC DMEN eFuse
H3A
Parallel
imager CCDC
input
DDR2/mDDR
Buffer
controller
logic
IPIPEIF
IPIPE
VPFE
OSD VENC
Bitmap CLUT and Video
Video
FIFO window DAC
encoder
atributes (x1)
DDR2/
DDR2/
mDDR
mDDR
EMIF Video Timing
FIFO Blending
generator
Digital Digital
Display LCD video
controller controller interface
HD, VD
field ID
CLK_OSD
ARM
Figure 21. Video Encoder Display Frame and Control Signal Definitions
HSPLS
HSYNC
VSYNC
HINT+1
HVALID
Screen area
Video window 0 (video)
Video
window 1
(video)
OSD
window 0
(bitmap)
OSD/ATR
window 1
Priority (bitmap)
increases
Rect
cursor
VD BASEP_Y
xxx_YP
BASEP_X
xxx_XP
Window xxx_YL
xxx_XL
Window start position is specified with respect to the BASEP_X and BASEP_Y position. Window start
position in X-direction and window width is specified in units of pixels. Window start position in Y-direction
and window height is specified in units of lines. When the VENC is in interlaced mode, window vertical
position and height (*YP and *YL registers) are defined in terms of display lines in each field. When the
VENC is in progressive mode, window vertical position and height (*YP and *YL) registers are defined in
terms of display lines in the progressive frame. Table 31 shows the register used for window position and
size.
Video Video
window 1 window 1 Video
window 1
Vertical-duplicated area
Non- Video
duplicated window
area
0
Video
Video window 1
window 1
Video window 0
Non-
Video window 0
duplicated
area Video
window 1
Video window 0
The only data format accepted by the video windows is YUV 4:2:2 interleaved data as described below.
This is the data format output by the VPFE IPIPE and Resizer modules.
OSD window data is always packed into 32-bit words and left-justified. Starting from the upper left corner
of the OSD window, all data will be packed into adjacent 32-bit words. Figure 28 shows data format
window data in SDRAM.
Address 31 16 15 0
N P1 P0
N+1 P3 P2
N+2 P5 P4
... ... ...
Rescaled (Y) 0 1 2 3 4 5 6 7 8 8
Rescaled (C) 0 1 2 3 4 5 6 7 8 8
Rescaled (Y)
Rescaled (C) 0 1 2 3 4 5 6 7 8
(9) (1,8) (2,7) (3,6) (4,5) (5,4) (6,3) (7,2) (8,1) (9)
Filter mode (#1: pure copy (= filter off) Filter mode (#2: interpolation (= filter on)
Original (Y/C) 0 1 2 Original (Y/C) 0 1 2
Figure 32. Filtering Method for Vertical x1 Expansion (Same Data Each Field)
Vertical de-flicker (expansion) filter with x1 zoom
(source is field data common in top/bottom)
Original Rescaled Original Original Rescaled
(Y and C) pixel (Y) pixel (C) (Y and C) pixel (Y) Rescaled
0 0 0 0 pixel (C)
(1,1)
1 1 1 1 1
(1,1)
2 2 2 2 2
(1,1)
3 3 3 3 3
(1,1)
4 4 4 4 4
(1,1)
5 5 5 5 5
(1,1)
6 6 6 6 6
0 0 0
1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
6 6 6
7 7 7
8 8 8
9 9 9
a a a
b b b
c c c
Filter mode (#1: pure copy) Filter mode (#2: pure copy)
Figure 34. Filtering Method for Vertical x2 Expansion (Same Data Each Field)
Vertical de-flicker (expansion) filter with x2 zoom
(source is field data different in top/bottom)
Original Rescaled Rescaled Original pixel Rescaled Rescaled
(Y and C) pixel (Y) pixel (C) (Y and C) pixel (Y) pixel (C)
0 0 0 0 0 0 (2)
0 0 (1,1)
1 1 1 1 1 1 (2)
1 1 (1,1)
2 2 2 2 2 2 (2)
2 2 (1,1)
3 3 3 3 3 3 (2)
3 3 (1,1)
4 4 4 4 4 4 (2)
4 4
Figure 35. Filtering Method for Vertical x2 Expansion (No Field Rate Conversion)
Vertical de-flicker (expansion) filter with x2 zoom
(source is field data different in top/bottom)
Original Rescaled Rescaled Original pixel Rescaled Rescaled
(Y and C) pixel (Y) pixel (C) (Y and C) pixel (Y) pixel (C)
0 0 0 0 0 0 (2)
0 0 (1,1)
1 1 1 1 1 1 (2)
1 1 (1,1)
2 2 2 2 2 2 (2)
2 2 (1,1)
3 3 3 3 3 3 (2)
3 3 (1,1)
4 4 4 4 4 4 (2)
4 4
Table 49. Operation of Vertical x2 Anti-Flicker Filter (No Field Rate Conversion)
Invert bit (VIDWINMD.VFINF or MODE.FSINV)
0 1
Expand Filter (V)
Coefficient bit (VIDWINMD.VnEFC) Same (due to different field source)
ON FID = 0 2 FID = 0 2
FID = 1 2 FID = 1 2
OFF FID = 0 1 FID = 0 1
FID = 1 1 FID = 1 1
0 0 0 0 0 0
0 0 1 1 1 1 1 1
2 2 2 1 1 2 2 2
2 2 3 3 3 3 3 3
4 4 4 3 3 4 4 4
Figure 37. Filtering Method for Vertical x4 Expansion (Same Data Each Field)
Vertical de-flicker (expansion) filter with x4 zoom
(source is field data common in top/bottom)
Original Rescaled Rescaled Original pixel Rescaled Rescaled
(Y and C) pixel (Y) pixel (C) (Y and C) pixel (Y) pixel (C)
0 0 0 0 0 0 (2)
0 0 0 0 (2)
0 0 0 0 (2)
0 0 (1,1)
1 1 1 1 1 1 (2)
1 1 1 1 (2)
1 1 1 1 (2)
1 1 (1,1)
2 2 2 2 2 2 (2)
2 2 2 2 (2)
Figure 38. Filtering Method for Vertical x4 Expansion (No Field Rate Conversion)
Vertical de-flicker (expansion) filter with x4 zoom
(source is field data different in top/bottom)
Original Rescaled Rescaled Original pixel Rescaled Rescaled
(Y and C) pixel (Y) pixel (C) (Y and C) pixel (Y) pixel (C)
0 0 0 0 0 0 (2)
0 0 0 0 (2)
0 0 0 0 (2)
0 0 (1,1)
1 1 1 1 1 1 (2)
1 1 1 1 (2)
1 1 1 1 (2)
1 1 (1,1)
2 2 2 2 2 2 (2)
2 2 2 2 (2)
Table 52. Operation of Vertical x4 Anti-Flicker Filter (No Field Rate Conversion)
Invert bit (VIDWINMD.VFINF or MODE.FSINV)
0 1
Expand Filter (V)
Coefficient bit (VIDWINMD.VnEFC) Same (due to different field source)
ON FID = 0 2 FID = 0 2
FID = 1 2 FID = 1 2
OFF FID = 0 1 FID = 0 1
FID = 1 1 FID = 1 1
0 0 0 0 0 0
0 0 0 0
0 0 1 1 1 0 0 1 1 1
0 0 1 1 1 1
2 2 2 1 1 2 2 2 1 1
2 2 1 1 2 2
2 2 3 3 3 2 2 3 3 3
2 2 3 3 3 3
4 4 4 3 3 4 4 4 3 3
Figure 40. Filtering Method for Vertical x1.2 Expansion with No Zoom
Vertical de-flicker (expansion) filter with x6/5 rescaling
Rescaled Rescaled
Pixel (Y) Pixel (Y) Rescaled
Rescaled RescaledOriginal pixel Rescaled Original pixel Pixel (C)
Rescaled Rescaled
Original pixel Pixel (Y) Pixel (C) (Y andC) Pixel (C) (Y andC)
Pixel (C)
Original pixel Pixel (Y)
(Y andC) (Y andC)
0 0 0 (11,1)
0 0 0 0 0 (6)
(Lower, Upper) (7,5)
1 1 (5,1) (1,11)
1 1 1 1 1 1 11
(7,5)
(11,1)
Table 54. Filtering Method for Vertical x1.2 Expansion with No Zoom
Invert bit
0 1 0 1
Expand Filter (V)
SDRAM Stored Mode Field Frame
Coefficient Bit Same Different Same Different Same Different Same Different
ON FID = 2 FID = 2 FID = 2 FID = 3 FID = 2 FID = 2 FID = 2 FID = 4
0 0 0 0 0 0 0 0
FID = 2 FID = 3 FID = 2 FID = 2 FID = 2 FID = 4 FID = 2 FID = 2
1 1 1 1 1 1 1 1
OFF FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1
0 0 0 0 0 0 0 0
FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1 FID = 1
1 1 1 1 1 1 1 1
Figure 41. Filtering Method for Vertical x1.2 Expansion with 2x Zoom
Vertical de-flicker (expansion) filter with x6/5 rescaling and x2 zoom
Figure 42. Filtering Method for Vertical x1.2 Expansion with 4x Zoom
Vertical de-flicker (expansion) filter with x6/5 rescaling and x4 zoom
Bmp 0 Bmp 0
Bmp 1
Atribute
(bmp 1)
Video window 0
Video
window 1
Video window 0
Bitmap window 1 can be defined as an attribute window, whose data pixels modify the display attributes of
the underlying Bitmap window 0.
In addition to displaying bitmap data, the OSD bitmap windows support displaying RGB data in either
16-bit RGB565 format; i.e., each R and B pixel is 5 bits and the G pixel is 6 bits or 24-bit format. The RGB
data from external memory is converted into YCbCr data within the OSD module using the following
equations to calculate YCrCb.
Y = (0.2990 × R) + (0.5870 × G) + (0.1140 × B)
Cb = (–0.1687 × R) – (0.3313 × G) + (0.5000 × B) + 128
Cr = (0.5000 × R) – (0.4187 × G) – (0.0813 × B) + 128
The OSD bitmap windows can also display YUV422 data used by the video windows.
The RGB equivalent CLUT values are shown in Section 4.4.4.1.1 as converted with the inverse of the
OSD’s RGB-to-YUV conversion matrix for RGB888 and RGB565 window data shown below.
R = (1.00000 × Y) + (0.00000 × (Cb – 128)) + (1.40200 × (Cr – 128))
G = (1.00000 × Y) – (0.34414 × (Cb – 128)) – (0.71444 × (Cr – 128))
B = (1.00000 × Y) + (1.72200 × (Cb – 128)) + (0.00000 × (Cr – 128))
Note: The default YUV-to-RGB conversion matrix values in the VENC module shown below are different
and thus the output colors may not exactly match those shown here.
R = (1.00000 × Y) + (0.00000 × (Cb – 128)) + (1.37110 × (Cr – 128))
G = (1.00000 × Y) – (0.33690 × (Cb – 128)) – (0.69820 × (Cr – 128))
B = (1.00000 × Y) + (1.73240 × (Cb – 128)) + (0.00000 × (Cr – 128))
The YUV output of each bitmap window can be attenuated to reduce the dynamic range of the YUV
signals (see Table 56). Luma values are attenuated to a range between 16-235 and chroma values are
attenuated to a range between 16-240.
Table 62. Expansion and Anti-Flicker Filters for Video Window Registers
Register.Field Description
EXTMODE.ATENOSD0EN Bitmap Window 0 RGB attenuation enable
EXTMODE.ATENOSD1EN Bitmap Window 1 RGB attenuation enable
This conversion is not performed unless the data source is RGB, even if it is enabled.
Note: For Digital RGB output, the matrix values converting from YC to RGB in the video encoder
are set for the Rec.601 attenuation at the default setting.
255
235
Scale down
(Y: 256 → 220)
(C: 256 → 225)
16
While there is no restriction on bitmap data formats (both bitmap windows can be RGB16 or RGB25 or
one of each), only one transparency color key setting is provided.
The 16-bit RGB565 data is stored in DDR2/mDDR in 16-bit words. Within each 16-bit element, the red
value is least significant, followed by the green, then blue, as shown in Figure 49.
The DDR format for RGB565 data is shown below.
31 27 26 21 20 16 15 11 10 5 4 0
R1 G1 B1 R0 G0 B0
Address 31 27 26 21 20 16 15 11 10 5 4 0
N R1 G1 B1 R0 G0 B0
N+1 R3 G3 B3 R2 G2 B2
N+2 R5 G5 B5 R4 G4 B4
... ...
Note that since each horizontal line of window data must be a multiple of 32-bytes, the RGB565 windows
must contain a multiple of 32-bytes / 2 byte/pixel = 16 pixels per horizontal line.
The 24-bit RGB888 data is stored in DDR2/mDDR in 32-bit words. Within each 24-bit element, the red
value in the least significant byte, followed by the green, then the blue byte, as shown in Figure 49. The
three lower bits of the MSByte are interpreted as pixel-level blending bits.
31 27 26 24 23 16 15 8 7 0
n/a Blend0 RO G0 R0
Video window 0 or 1
OSD window 0
Attribute window 0
The SDRAM data format follows that for 4-bit bitmap windows (see Figure 47). Note that since each
horizontal line of window data must be a multiple of 32 bytes, the attribute windows must contain a
multiple of 32 bytes/ 1/2 byte/pixel = 64 pixels per horizontal line.
Video display
XP, YP XL, YL
(cur_xp, cur_yp)
horizontal_width
The NTSC/PAL encoder (Figure 53) takes video data from the OSD module and generates the necessary
signaling and formatting to display the video/image data onto an NTSC/PAL display. The RVTYP field of
the VMOD register (see Table 67) specifies the video formats.
Other composite DAC/timing settings are made via fields in the CVBS and ETMG0/1 registers.
The BLNK field in the VMOD register is the blanking enable. When this field is set to 1, the CVBS and/or
component output is blanked without regard to the input video signals.
Y Y
input Blanking Y
interpolator
Burst sine
insertion C
Cr Cr
input interpolator Cr LPF
cos
Sub-carrier
Generator
Y input
220
Y output
>>8
0
Cb input
224
Cb output
>>8
128
−128 +128
Cr input
224
Cr output
>>8
128
−128 +128
Figure 55. Luma LPF (left) and Luma Interpolation Filter (right)
Figure 56. Chroma Interpolation Filter (left) and Chroma LPF (right)
0 0
-10 -10
-20 -20
Magnitude (dB)
Magnitude (dB)
-30 -30
-40 -40
-50 -50
-60 -60
-70 -70
0 2 4 6 8 10 12 0 1 2 3 4 5 6
Frequency (MHZ) Frequency (MHZ)
The processing is done by subtracting 128 for the chroma (not for the luminance), then multiplying the
gain and shifting right by 7. Figure 57 shows the block diagram for YCbCr to YUV conversion. When the
CVBS.CSTUP = 1, then 7.5% setup is added for the output. The setting CSTUP is effective for both NTSC
or PAL. However, note that for PAL mode, setting CSTUP = 1 causes an illegal output level.
Gu Sv
Cb input >>7 U output
−128 Gv
Cr input −128 >>7 V output
−128
Color burst insertion horizontal position can be controlled by the CBST and CBSE fields in the ETMG1
register. The modulated chroma signal is also applied to blanking edge shaping. Chroma blanking shaping
can also be disabled by CBLS and blanking horizontal position is also adjusted by CFPW and CLBI.
The resulting Y and C are mixed together to get composite video output. Separated Y and C are also
available for S-Video output. The offset 512 is added to the separated C to have the blanking level at the
center of the DAC range. You can also control the blanking build-up time (Table 70) and the sync build-up
time (Table 71).
4.5.3.5.6 Closed-Captioning
The video encoder supports closed-caption encoding. Closed-caption data is transmitted on line 21 of the
odd field and line 284 of the even field in NTSC. It is possible to specify the fields on which
closed-captioning is enabled by CAPCTL.CAPF.
The data should be written to the CAPDO or CAPDE registers for odd or even fields, respectively. It is
required to load the data at least 1 line early. When data is written to CAPDO/CAPDE,
VSTAT.CAOST/VSTAT.CAEST) is changed to 1. This bit is automatically cleared to 0 when caption data
transmission is completed on line 21 in the odd field or line 284 in the even field.
When the caption data register (CAPDO or CAPDE) is not updated before the caption data transmission
timing for the corresponding field, the ASCII code specified by CAPCTL.CADF is automatically transmitted
for closed caption data.
The width of every data register is 7 bits and the parity bit is automatically calculated by hardware.
YCbCr
Y serial
Y pre-filter R filter
input YCbCr output
Cb YCbCr output
Cb pre-filter G filter YCbCr
input converter formatter
Cr parallel
Cr pre-filter B filter output
input
RGB
serial
RGB RGB output
converter output
formatter RGB
parallel
output
maskline
DCLK DCLK
exit_line_id Line line_id
generator output
controller line_rvs
BRIGHT
Sync signal LCD_OE d_valid LCD signal PWM
from TG generator generator LCD_AC
LCD_OE
4.5.4.2 Timings
The timing parameter control registers are shown in Table 74. Figure 59 to Figure 61 show the timing
charts for HSYNC, VSYNC, FIELD and LCD_OE. For interlaced operation when VMOD.NSIT is 1, the
vertical interval and pulse width is counted by half line (0.5H).
(1)
Value in brackets apply to interlace (NSIT = 1)
HSYNC
HSPLS
LCD_OE
HSTART
HVALID
HSYNC
VINT+1
VSYNC
VSPLS
FIELD
14 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 0 1 2 3
LCD_OE
VSTART
VVALID
Notes: VINT=14
VSTART=4
VSPLS=3
VVALID=9
HSYNC
VINT+1 (counted by 1/2 H)
VSYNC
9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
LCD_OE
VSTART VSTARTA
VVALID VVALID
Notes: VINT=18
VSTART=4
VSPLS=6
VVALID=4
VSTARTA=5
CCDC
REC656 V, H, FD
decoder
CCDCFG
REC656IF FIDMD (bit 6) Specifies FID detection Internal
R656 (bit 0) mode V, H, FD
0: enable 0:latch at the VSYNC timing. Go to VENC
MODESET 1: not latched.
HD/VD/FLD/CCD VDHDOUT (bit 0) External
pins 0:HD/VD input V, H
FLDMODE (bit 7)
1:interlaced
VENC GIO
Internal
V, H, FD
CLK
HSYNC
(in)
HSYNC
(out)
LCD_OE
CLK CLK
CLK
HSYNC (in)
VSYNC (in)
V Reset
VSYNC asserts 1 clock after HSYNC
HSYNC (in)
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
19(CLK) VSTART (H)
3(H) HSTART (CLK)
Odd Field
0.5H
0.5H
HSYNC (in)
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
19(CLK) VSTARTA −
3(H) HSTART (CLK)
0.5 (H)
Even Field
HSYNC (in)
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
HSYNC (in)
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
19(CLK) VSTARTA −
2.5 (H) 0.5 (H) HSTART (CLK)
Even Field
VSYNC (in)
HSYNC (out)
VSYNC (out)
LCD_OE
Data Output 0 0 0 0
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
Odd Field
VSYNC (in)
FIELD (in)
HSYNC (out)
VSYNC (out)
FIELD (out)
LCD_OE
Even Field
FIELD (in)
Detected FIELD
VSYNC (in)
FIELD (in)
Detected FIELD
HSYNC (in)
VSYNC (in)
Detected VSYNC
Detected FIELD
HSYNC (in)
VSYNC (in)
Detected VSYNC
Detected FIELD
In the option 4 (Detect VSYNC phase), the timing generator detects VSYNC assertion position in a line.
When VSYNC is in the first half of a line, the field is detected as even. When VSYNC is the second half of
a line, the field is detected as odd. Figure 70 shows this detection scheme. This mode is only available for
NTSC/PAL. When in non-standard mode, Field_id is always detected as odd in option 4.
0.5H
0.5 H
HSYNC (in)
VSYNC (in)
Detected as EVEN
0.5H
0.5 H
HSYNC (in)
VSYNC (in)
Detected as ODD
There are two types of clock waveform configurations. They can be selected by DCLKCTL.DCKEC. For
an example, see Figure 72.
• When DCKEC = 0, the pattern register becomes the clock level pattern of DCLK itself (Level mode).
• When DCKEC = 1, the pattern register works as the clock enable of the ENC clock (Enable mode).
VCLK
clk_enc
VCLK
4.5.4.4.2 Masking
It is possible to mask the DCLK signal in horizontal and vertical directions. The registers listed in Table 76
allow you to set when DCLK is valid in the horizontal and vertical start positions of LCD display data. As
shown in Figure 73, the valid start position in the horizontal direction is set relative to HSYNC, and the
length of valid data in the horizontal position is set relative to the horizontal start position of valid data. The
horizontal resolution is in ENC clocks. Figure 73 shows that valid data in the vertical direction is configured
similar to valid data in the horizontal direction. DCLKCTL.DCKME can activate DCLK masking. Regarding
horizontal start position, two sets of registers are provided as well as a pattern register.
HSYNC
(1)
(2)
VSYNC
(3)
(4)
HSYNC
line_rvs
DCKCLP
DCLKPTNA
DCLK Pattern Table DCLKPTN DCLKPTNA
DCLKPTN
HSYNC
line_rvs
DCKCLI
Leveled
Delay
DCLK VCLKE
Adjust VCLKZ
Generator
VCLKP
Input D D D D D
PFLTY
PFLTR 0 1 0 1 (PFLTC)
0
1 Output
½
2
The pre-filter frequency response with the sampling rate of 13.5 MHZ is shown in Figure 77.
The group delay of the filter is 1 when PFLTY/PFLTC = 0 or 2, and 0.5 for PFLTY/PFLTC = 1. Do not set
PFLTY and PFLTC to different values or Y and C will not be aligned.
1+1
0 1+ 2 + 1
−10
Magnitude (dB)
−20
−30
−40
−50
−60
−70
0 1 2 3 4 5 6
Frequency (MHz)
Y input
220 Y output
>>8
+16
Cb input
224 Cb output
>>8
−128 +128
Cr input
224 Cr output
>>8
−128 +128
Y input
220 R output
>>8
Cb input
224 RGB G output
Matrix
>>8
−128
Cr input
224 B output
>>8 ROFST UCLIP
−128
The formatted YCbCr data is then converted to RGB according to the following equation:
éR ù éGY 0 RV ù é Y - 16 ù
ê ú 1 ê ú ê ú
G =
ê ú 1024 ê GY -GU -GV ú êCb - 128 ú
êë B úû êëGY BU 0 úû êë Cr - 128 úû
The coefficients of the matrix can be programmed by setting the DRGBX0-DRGBX4 registers with the
appropriate coefficients. By default, these values are set to the ITU-R BT601 RGB conversion matrix.
RGB ranging from 0 to 219 is possible from the REC.601 formatted signal (Y:16-235, C:16-240). Since the
converted RGB may become negative due to finite precision arithmetic, zero level clipping is applied.
Then the offset specified by RGBCLP.OFST is added followed by upper level clipping. The clip level is set
by RGBCLP.UCLIP. The output RGB samples are limited to 8-bit resolution.
Note: When YCbCr output is selected VMOD.VDMD = 0 or 1, (YCC16 or YCC8 modes), the RGB
filters should be disabled (DFLTS = 0).
CULI=2
CLEF=0, CLOF=1
FIELD
VSYNC
HSYNC
Line out 0 1 2 0 1 2 0 1 2 0 1 2 0 1
Culled line ID
FIELD
VSYNC
HSYNC
Line out 0 1 2 0 1 2 0 1 2 0 1 2 0 1
Culled line ID
VSYNC
HSYNC
Line counter 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Culling counter 0 1 2 3 4 5 0 1 2 3 4 5 0 1
Line enable
Line ID
LCD_OE
VSYNC
HSYNC
Line counter 0 1 2 3 4 5 6 7 8 9 10 11 12 13
Culling counter 0 1 2 3 4 5 0 1 2 3 4 5 0 1
Line enable
Line ID
LCD_OE
VSYNC
Sub-counter
for culling 0 1 2 3 4 5 0
VSYNC
HSYNC
Line counter 0 1 2 3 4 5 6 0 1 2 3 4 5 6
Culling counter 1 2 3 4 5 0 1 4 5 0 1 2 3 4
Sub-counter at the previous line
is loaded as reset value
HLDL
HSYNC
Digital Video
L1 L2 L3 L4 L5 L6
Output
HLDF
VSYNC
HSYNC
Digital Video
F1 F2 F3 F4 F5 F6
Output
Culling period
(HCPW+1)
LCD_OE
CLK
HSYNC
LCD_OE
HCM=0
Data out 0 D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 0
Internal counter 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 2 1 0 0
LCD_OE
HCM=1
Data out 0 D0 D1 0 D3 D4 0 D6 D7 0 D9 D10 0 D12 D13 0 D15 D16 0 0
HSTART HVALID
VENC CLK
OSD
OCPT Clock
enable
OCPW generator
HSYNC
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
OCPT 1 0 0 1 1 0 1 0 0 1 1 0 1 1 1 0
Clock enable
Pixel clock
(OSD clock)
HSYNC
After a reset, the OCPW bit is set to 1 and the OCPT bit is set to 2h so that the resulting pixel clock
becomes half of VENC CLK (when VENC CLK is 27 MHz, the pixel clock becomes 13.5 MHz). For
NTSC/PAL use, there is no change of these registers from the default value. It is required to clear the
OCPW bit to 0 and set the OCPT bit to 1 for progressive scan output.
HSYNC
Hardware latency in VENC
LCD_OE
OSD
HSYNC
Data from OSD BASEP_X + OHAD Valid Data
LCD_OE
HSTART
Output data Valid Data
OSD Data Out Blanking Data OSD Data Out Blanking Data
4.5.5.5 Interrupt
VENC asserts an interrupt at every VSYNC assertion. When the OSD module receives a vertical sync
pulse from VENC, it updates its internal configuration registers. The interrupt assertion immediately follows
this register update.
5 Programming Model
CAUTION
Do not reset the entire VPSS Master or VPSS Slave subsystem (VPFE and
VPBE), via the Power Sleep Controller.
PCLK 1
VENC
3 0
EXTCLK 2 CLK_VENC
1 Register
CLK_CTRL.VENC_CLKSEL
0
Register
VPSS_CLK_CTRL,
MUXSEL
3
2 CLK_DAC
PLL1(sysclk3) 0 DAC
1
MXI2 1 0
MXI1 2
Register
CPSS_CLK_CTRL,
VENC_CLK_SRC
(1)
This register/field is shadowed during the frame display time and any writes to this location is not applied until the next frame
field.
6 VPBE Registers
There are four sub-modules associated with the VPBE subsystem. The VPSS Clock (VPSSCLK) and
Buffer Logic (VPSSBL) modules include common controls for VPBE as well as VPFE. The modules are
described below.
15 8 7 0
CID PREV
R-251 R-0
Table 86. Peripheral Revision and Class Information Register (PID) Field Descriptions
Bit Field Value Description
31-24 Reserved 0 Reserved
23-16 TID 0-FFh Peripheral identification
0 VPSS module
Table 86. Peripheral Revision and Class Information Register (PID) Field Descriptions (continued)
Bit Field Value Description
15-8 CID 0-FFh Class identification
251 VPSS module
7-0 PREV 0-FFh Peripheral revision number
0 Initial revision
15 7 6 5 4 3 2 1 0
Reserved CCDC IPIPE_ H3A_ Rsvd VENC_ Reser VPBE_
_ CLK CLK CLKSE ved CLK
CLK L
R-0 R/W-1 R/W-1 R/W-1 R/W-1 R/W-0 R-0 R/W-1
15 8 7 0
CID PREV
R-255 R-1
Table 89. Peripheral Revision and Class Information Register (PID) Field Descriptions
Bit Field Value Description
31-24 Reserved 0 Reserved
23-16 TID 0-FFh Peripheral identification
0 VPSS module
15-8 CID 0-FFh Class identification
255 VPSS module
7-0 PREV 0-FFh Peripheral revision number
0 Initial revision
15 7 6 5 4 3 2 0
Reserved WBLCTRL RBLCTRL RESV CPRIORITY
R/W-0 R/W-0 R-0 R/W-0
23 22 21 20 19 18 17 16
Reserved
R-0
15 14 13 12 11 10 9 8
Reserved IPIPE_INT5 IPIPE_INT4 IPIPE_INT3 IPIPE_INT2 IPIPE_INT1
R-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
7 6 5 4 3 2 1 0
IPIPE_INT0 IPIPEIFINT OSDINT VENCINT H3AINT CCDC_VDINT2 CCDC_VINT1 CCDC_VINT0
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
15 12 11 8 7 4 3 0
INTSEL3 INTSEL2 INTSEL1 INTSEL0
R/W - 3 R/W - 2 R/W - 1 R/W - 0
15 4 3 0
Reserved EVTSEL8
R-0 R/W - 8
15 2 1 0
Reserved RSZ_CTRL DFCCTRL
R-0 R/W - 0 R/W - 0
Table 94. Shared Memory Master Select Register (MEMCTRL) Field Descriptions
Bit Field Value Description
31- 2 Reserved 0 Reserved
1 RSZ_CTRL Resizer memory select
0 IPIPE
1
0 DFCCTRL Defect correction memory select
0 IPIPE
1 CCDC
Note: The upper 16 bits of these registers are not shown; they are reserved.
15 14 13 12 11 10 9 8 7 0
CS OVRSZ OHRSZ EF VVRSZ VHRSZ FSINV BCLUT CABG
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Table 97. Video Window Mode Setup Register (VIDWINMD) Field Descriptions
Bit Field Value Description
15 VFINV Video window 0/1 expansion filter coefficient inverse. When V1EFC or VnEFC is set, this bit is valid.
0 Inversed
1 Normal
14 V1EFC Video window 1 expansion filter coefficient. Enables different anti-flicker coefficients for each field. Valid
when MODE.EF=1
0 Same coefficients for field-0 and field-1.
1 Different coefficients for field-0 and field-1.
13-12 VHZ1 0-3h Video Window 1 horizontal direction zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
11-10 VVZ1 0-3h Video window 1 vertical direction zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
9 VFF1 Video window 1 display mode. VD latches this bit.
0 Off
1 On
8 ACT1 Sets image display on/off video window 1. VD latches this bit.
0 Off
1 On
7 Reserved 0 Reserved
Table 97. Video Window Mode Setup Register (VIDWINMD) Field Descriptions (continued)
Bit Field Value Description
6 V0EFC Video window 0 expansion filter coefficient. Valid wen MODE.EF=1.
0 Same coefficients for field-0 and field-1.
1 Different coefficients for field-0 and field-1.
5-4 VHZ0 Video window 0 horizontal direction zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
3-2 VVZ0 Video window 0 vertical direction zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
1 VFF0 Video window 0 display mode. VD latches this bit.
0 Field mode
1 Frame mode
0 ACT0 Sets image display on/off video window 0. VD latches this bit.
0 Off
1 On
Table 98. OSD Window 0 Mode Setup Register (OSDWIN0MD) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14-13 BMP0MD Bitmap input mode YCbCr is calculated from the following equation when RGB data is input: Y =
0.2990*R + 0.5870*G + 0.1140*B Cb =-0.1687*R-0.3313*G + 0.5000*B + Offset(128) Cr =
0.5000*R-0.4187*G-0.0813*B + Offset(128)
0h (BITMAP) Bitmap data input mode
1h (RGB16) RGB data-16 bit/pixel, RGB565 input mode
2h (RGB24) RGB data-24 bit/pixel, RGB888 + 8bpp extension data input mode
3h (YC) YC data-YCbYCr, Video Window data input mode
12 CLUTS0 CLUT select for OSD window 0. Selects look-up table that is used for OSD window 0. VD latches this
bit.
0 ROM-look-up table
1 RAM-look-up table
11-10 OHZ0 0-3h OSD window 0 horizontal zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
9-8 OVZ0 0-3h OSD window 0 vertical zoom. VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
7-6 BMW0 0-3h Bitmap bit width for OSD window 0. VD latches this bit. This is valid only for bitmap input mode.
0 1 bit
1h 2 bits
2h 4 bits
3h 8 bits
5-3 BLND0 0-7h Blending ratio between OSD window 0 and Video Window 0. TE0 controls which pixels are blended.
VD latches this bit.
0 W0-0 V0-1
1h W0-1/8 V0-7/8
2h W0-2/8 V0-6/8
3h W0-3/8 V0-5/8
4h W0-4/8 V0-4/8
5h W0-5/8 V0-3/8
6h W0-6/8 V0-2/8
7h W0-1 V0-0
Table 98. OSD Window 0 Mode Setup Register (OSDWIN0MD) Field Descriptions (continued)
Bit Field Value Description
2 TE0 Transparency enable for OSD window 0. VD latches this bit.
0 Disable transparency. The entire bitmap window is blended with the video windows according to
BLND0.
1 Enable transparency:
When enabled, blending is only performed for pixels whose value matches the transparency value
specified below:
• (BMP0MD = 00): TRANSPBMPIDX.BMP0
• (BMP0MD = 01): TRANSPVALL.RGBL
• (BMP0MD = 10): TRANSPVALL.RGBL & TRANSPVALU.RGBU
• (BMP0MD = 11): TRANSPVALL.Y (only luma value examined)
The blending is done as per the BLND0 register configuration.
1 OFF0 OSD window 0 display mode. VD latches this bit.
0 Field mode
1 Frame mode
0 OACT0 OSD window 0 active (displayed). VD latches this bit.
0 Off
1 On
Table 99. OSD Window 1 Mode Setup Register (OSDWIN1MD) Field Descriptions
Bit Field Value Description
15 OASW OSD window 1 attribute mode enable. This bit enables attribute mode for OSD window 0. This bit is
latched by VD.
0 OSD window 1
1 Attribute window
14-13 BMP1MD Bitmap input mode YCbCr is calculated from the following equation when RGB data is input: Y =
0.2990*R + 0.5870*G + 0.1140*B Cb =-0.1687*R-0.3313*G + 0.5000*B + Offset(128) Cr =
0.5000*R-0.4187*G-0.0813*B + Offset(128)
0 (Bitmap) Bitmap data input mode
1h (RGB16) RGB data-16 bit/pixel, RGB565 input mode
2h (RGB24) RGB data-24 bit/pixel, RGB888 + 8bpp extension data input mode
3h (YC) YC data-YCbYCr, Video Window data input mode
(BITMAP) Bitmap data input mode
(ATTENUATED_Y_16_235_CR_16_240_CB_16_240_) Attenuated (Y: 16-235, Cr: 16-240, Cb: 16-240)
12 CLUTS1 CLUT select for OSD window 1 (when OASW = 0). Selects look-up table that is used for OSD
window 1.
0 ROM-look-up table
1 RAM-look-up table
11-10 OHZ1 0-3h OSD window 1 horizontal zoom (when OASW = 0). VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
9-8 OVZ1 0-3h OSD window 1 vertical zoom (when OASW = 0). VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
7-6 BMW1 0-3h Bitmap bit width for OSD window 1 (when OASW = 0). VD latches this bit.
0 1 bit
1h 2 bits
2h 4 bits
3h 8 bits
Table 99. OSD Window 1 Mode Setup Register (OSDWIN1MD) Field Descriptions (continued)
Bit Field Value Description
5-3 BLND1 0-7h Blending ratio for OSD window 1 (when OASW = 0). Sets blending ratio of OSD window 1 and Video
Window 0. VD latches this bit.
0 W0-0 V0-1
1h W0-1/8 V0-7/8
2h W0-2/8 V0-6/8
3h W0-3/8 V0-5/8
4h W0-4/8 V0-4/8
5h W0-5/8 V0-3/8
6h W0-6/8 V0-2/8
7h W0-1 V0-0
2 TE1 Transparency enable for OSD window 1 (when OASW = 0). VD latches this bit.
0 Disable transparency. The entire bitmap window is blended with the video windows according to
BLND1.
1 Enable transparency:
When enabled, blending is only performed for pixels whose value matches the transparency value
specified below:
• (BMP1MD = 00): TRANSPBMPIDX.BMP0
• (BMP1MD = 01): TRANSPVALL.RGBL
• (BMP1MD = 10): TRANSPVALL.RGBL & TRANSPVALU.RGBU
• (BMP1MD = 11): TRANSPVALL.Y (only luma value examined)
The blending is done as per the BLND0 register configuration.
1 OFF1 OSD window 1 display mode (when OASW = 0). VD latches this bit.
0 Field mode
1 Frame mode
0 OACT1 OSD window 1 active (displayed) (when OASW = 0). VD latches this bit.
0 Off
1 On
Table 100. OSD Attribute Window Mode Setup Register (OSDATRMD) Field Descriptions
Bit Field Value Description
15 OASW OSD window 1 attribute mode enable. This bit enables attribute mode for OSD window 0. VD latches
this bit.
0 OSD window 0
1 Attribute window
14-12 Reserved 0 Reserved
11-10 OHZA 0-3h OSD attribute window horizontal zoom (when OASW = 1). VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
9-8 OVZA 0-3h OSD attribute window vertical zoom (when OASW = 1). VD latches this bit.
0 ×1
1h ×2
2h ×4
3h Reserved (same as 0)
7-6 BLNKINT 0-3h Blinking interval (when OASW = 1). Specifies the blinking interval of the attribute window in units of 8
VD pulses. VD latches this bit.
0 1 unit
1h 2 units
2h 3 units
3h 4 units
5-2 Reserved 0 Reserved
1 OFFA OSD attribute window display mode
VD latches this bit.
0 Field mode
1 Frame mode
0 BLNK OSD attribute window blink enable (when OASW = 1). VD latches this bit.
0 Disable
1 Enable
Table 105. OSD Window 1 Offset Register (OSDWIN1OFST) Field Descriptions (continued)
Bit Field Value Description
8-0 O1LO 0-1FFh OSD window 1 line offset.
Number of burst transfers (32-bytes) in a horizontal line. This depends on OSD window bit depth: Line
width in (pixels × bit depth)/256-bits/burst; for example, (64 × 8)/256 = 2.
Note: If line width and bit depth settings for the window result in a non-integer value, round the value up
to the next larger integer and organize the data in SDRAM so that each line begins on a burst
boundary. VD latches this bit.
Examples: Offsets for 256 pixels horizontal:
1-bit mode: (256 × 1)/256 = 1(0001h);
2-bit mode: (256 × 2)/256 = 2(0002h);
4-bit mode: (256 × 4)/256 = 4(0004h);
8-bit mode: (256 × 8)/256 = 8(0008h);
RGB565 mode: (256 × 16)/256 = 16(0010h).
RGB5888mode: (256 × 32)/256 = 32(0020h) (1)
(1)
If line width and bit depth settings for the window results in a non-integer value, round the value up to the next larger integer and
organize the data in SDRAM so that each line begins on a burst boundary.
7 6 0
Reserved V0AH
R-0 R/W-0
Table 106. Video Window 0/1 Address Register-High (VIDWINADH) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14-8 V1AH 0-7Fh Video Window 1 SDRAM Source Address-High
7 MSBs of SDRAM source address
The SDRAM source address is specified as an offset from the SDRAM base address, in
units of 32 bytes. VD latches this bit.
7 Reserved 0 Reserved
6-0 V0AH 0-7Fh Video Window 0 SDRAM Source Address-High
7 MSBs of SDRAM source address
The SDRAM source address is specified as an offset from the SDRAM base address, in
units of 32 bytes. VD latches this bit.
7 6 0
Reserved V0AH
R-0 R/W-0
7 6 0
Reserved V0AH
R-0 R/W-0
Table 109. Bitmap Window 0/1 Address Register-High (OSDWINADH) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14-8 V1AH 0-7Fh Video Window 1 SDRAM Source Address-High
7 MSBs of SDRAM source address
The SDRAM source address is specified as an offset from the SDRAM base address, in
units of 32 bytes. VD latches this bit.
7 Reserved 0 Reserved
6-0 V0AH 0-7Fh Video Window 0 SDRAM Source Address-High
7 MSBs of SDRAM source address
The SDRAM source address is specified as an offset from the SDRAM base address, in
units of 32 bytes. VD latches this bit.
Table 111. Bitmap Window 1 / Attribute Address Register-Low (OSDWIN1ADL) Field Descriptions
Bit Field Value Description
15-0 BMPWIN0ADL 0-FFFFh Bitmap Window 1 / Attribute SDRAM Source Address-Low
16 LSBs of SDRAM source address
The SDRAM source address is specified as an offset from the SDRAM base address, in
units of 32 bytes. VD latches this bit.
Table 122. OSD Bitmap Window 0 X-Position Register (OSDWIN0XP) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 W0X 0-3FFh OSD window 0 X-position. VD latches this bit.
Horizontal display start position. Number of pixels from display reference position (BASEPX).
Table 123. OSD Bitmap Window 0 Y-Position Register (OSDWIN0YP) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 W0Y 0-1FFh OSD window 0 Y-position. Vertical display start position. Number of pixels/lines from display reference
position (BASEPY). VD latches this bit.
Table 124. OSD Bitmap Window 0 X-Size Register (OSDWIN0XL) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 W0W 0-FFFh OSD window 0 X-width. Horizontal display width in pixels. VD latches this bit.
Table 125. OSD Bitmap Window 0 Y-Size Register (OSDWIN0YL) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 W0H 0-7FFh OSD window 0 Y-height. This bit is latched by VD.
Vertical display height in pixels/lines. In frame mode, specify in terms of lines/field.
Table 126. OSD Bitmap Window 1 X-Position Register (OSDWIN1XP) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 W1X 0-FF OSD window 1 X-position. VD latches this bit.
Horizontal display start position. Number of pixels from display reference position (BASEPX).
Table 127. OSD Bitmap Window 1 Y-Position Register (OSDWIN1YP) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 W1Y 0-1FFh OSD window 1 Y-position. This bit is latched by VD.
Vertical display start position. Number of pixels/lines from display reference position (BASEPY).
Table 128. OSD Bitmap Window 1 X-Size Register (OSDWIN1XL) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 W1W 0-FFFh OSD window 1 X-width. This bit is latched by VD. Horizontal display width in pixels.
Table 129. OSD Bitmap Window 1 Y-Size Register (OSDWIN1YL) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 W1H 0-7FFh OSD window 1 Y-height. VD latches this bit.
Vertical display height in pixels/lines. In frame mode, specify in terms of lines/field.
Table 130. Rectangular Cursor Window X-Position Register (CURXP) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 RCSX 0-3FFh Rectangular cursor window X-position. This bit is latched by VD.
Horizontal display start position. Number of pixels from display reference position (BASEPX).
Table 131. Rectangular Cursor Window Y-Position Register (CURYP) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 RCSY 0-1FFh Rectangular cursor window Y-position. This bit is latched by VD.
Vertical display start position. Number of pixels from display reference position (BASEPY).
Table 132. Rectangular Cursor Window X-Size Register (CURXL) Field Descriptions
Bit Field Value Description
15-11 Reserved 0 Reserved
10-0 RCSW 0-FFFh Rectangular cursor window X-width. VD latches this bit.
Horizontal display width in pixels.
Table 133. Rectangular Cursor Window Y-Size Register (CURYL) Field Descriptions
Bit Field Value Description
15-10 Reserved 0 Reserved
9-0 RCSH 0-7FFh Rectangular cursor window Y-height. VD latches this bit.
Vertical display height in pixels/lines. In frame mode, specify in terms of lines/field.
Figure 137. Window 0 Bitmap Value to Palette Map 0/1 Register (W0BMP01)
15 8 7 0
PAL01 PAL00
R/W-0 R/W-0
Table 134. Window 0 Bitmap Value to Palette Map 0/1 Register (W0BMP01) Field Descriptions
Bit Field Value Description
15-8 PAL01 0-FFh Palette address for bitmap value [1]-OSD window 0 [4-bit]
7-0 PAL00 0-FFh Palette address for bitmap value [0]-OSD window 0 [4-bit, 2-bit, 1-bit]
Figure 138. Window 0 Bitmap Value to Palette Map 2/3 Register (W0BMP23)
15 8 7 0
PAL03 PAL02
R/W-0 R/W-0
Table 135. Window 0 Bitmap Value to Palette Map 2/3 Register (W0BMP23) Field Descriptions
Bit Field Value Description
15-8 PAL03 0-FFh Palette address for bitmap value [3]-OSD window 0 [4-bit]
7-0 PAL02 0-FFh Palette address for bitmap value [2]-OSD window 0 [4-bit]
Figure 139. Window 0 Bitmap Value to Palette Map 4/5 Register (W0BMP45)
15 8 7 0
PAL05 PAL04
R/W-0 R/W-0
Table 136. Window 0 Bitmap Value to Palette Map 4/5 Register (W0BMP45) Field Descriptions
Bit Field Value Description
15-8 PAL05 0-FFh Palette address for bitmap value [5]-OSD window 0 [4-bit, 2-bit]
7-0 PAL04 0-FFh Palette address for bitmap value [4]-OSD window 0 [4-bit]
Figure 140. Window 0 Bitmap Value to Palette Map 6/7 Register (W0BMP67)
15 8 7 0
PAL07 PAL06
R/W-0 R/W-0
Table 137. Window 0 Bitmap Value to Palette Map 6/7 Register (W0BMP67) Field Descriptions
Bit Field Value Description
15-8 PAL07 0-FFh Palette address for bitmap value [7]-OSD window 0 [4-bit]
7-0 PAL06 0-FFh Palette address for bitmap value [6]-OSD window 0 [4-bit]
Figure 141. Window 0 Bitmap Value to Palette Map 8/9 Register (W0BMP89)
15 8 7 0
PAL09 PAL08
R/W-0 R/W-0
Table 138. Window 0 Bitmap Value to Palette Map 8/9 Register (W0BMP89) Field Descriptions
Bit Field Value Description
15-8 PAL09 0-FFh Palette address for bitmap value [9]-OSD window 0 [4-bit]
7-0 PAL08 0-FFh Palette address for bitmap value [8]-OSD window 0 [4-bit]
Figure 142. Window 0 Bitmap Value to Palette Map A/B Register (W0BMPAB)
15 8 7 0
PAL11 PAL10
R/W-0 R/W-0
Table 139. Window 0 Bitmap Value to Palette Map A/B Register (W0BMPAB) Field Descriptions
Bit Field Value Description
15-8 PAL11 0-FFh Palette address for bitmap value [B]-OSD window 0 [4-bit]
7-0 PAL10 0-FFh Palette address for bitmap value [A]-OSD window 0 [4-bit, 2-bit]
Figure 143. Window 0 Bitmap Value to Palette Map C/D Register (W0BMPCD)
15 8 7 0
PAL13 PAL12
R/W-0 R/W-0
Table 140. Window 0 Bitmap Value to Palette Map C/D Register (W0BMPCD) Field Descriptions
Bit Field Value Description
15-8 PAL13 0-FFh Palette address for bitmap value [D]-OSD window 0 [4-bit]
7-0 PAL12 0-FFh Palette address for bitmap value [Cx]-OSD window 0 [4-bit]
Figure 144. Window 0 Bitmap Value to Palette Map E/F Register (W0BMPEF)
15 8 7 0
PAL15 PAL14
R/W-0 R/W-0
Table 141. Window 0 Bitmap Value to Palette Map E/F Register (W0BMPEF) Field Descriptions
Bit Field Value Description
15-8 PAL15 0-FFh Palette address for bitmap value [F1]-OSD window 0 [4-bit, 2-bit, 1-bit]
7-0 PAL14 0-FFh Palette address for bitmap value [E]-OSD window 0 [4-bit]
Figure 145. Window 1 Bitmap Value to Palette Map 0/1 Register (W1BMP01)
15 8 7 0
PAL01 PAL00
R/W-0 R/W-0
Table 142. Window 1 Bitmap Value to Palette Map 0/1 Register (W1BMP01) Field Descriptions
Bit Field Value Description
15-8 PAL01 0-FFh Palette address for bitmap value [1]-OSD window 1 [4-bit]
7-0 PAL00 0-FFh Palette address for bitmap value [0]-OSD window 1 [4-bit, 2-bit, 1-bit]
Figure 146. Window 1 Bitmap Value to Palette Map 2/3 Register (W1BMP23)
15 8 7 0
PAL03 PAL02
R/W-0 R/W-0
Table 143. Window 1 Bitmap Value to Palette Map 2/3 Register (W1BMP23) Field Descriptions
Bit Field Value Description
15-8 PAL03 0-FFh Palette address for bitmap value [3]-OSD window 1 [4-bit]
7-0 PAL02 0-FFh Palette address for bitmap value [2]-OSD window 1 [4-bit]
Figure 147. Window 1 Bitmap Value to Palette Map 4/5 Register (W1BMP45)
15 8 7 0
PAL05 PAL04
R/W-0 R/W-0
Table 144. Window 1 Bitmap Value to Palette Map 4/5 Register (W1BMP45) Field Descriptions
Bit Field Value Description
15-8 PAL05 0-FFh Palette address for bitmap value [5]-OSD window 1 [4-bit, 2-bitt]
7-0 PAL04 0-FFh Palette address for bitmap value [4]-OSD window 1 [4-bit]
Figure 148. Window 1 Bitmap Value to Palette Map 6/7 Register (W1BMP67)
15 8 7 0
PAL07 PAL06
R/W-0 R/W-0
Table 145. Window 1 Bitmap Value to Palette Map 6/7 Register (W1BMP67) Field Descriptions
Bit Field Value Description
15-8 PAL07 0-FFh Palette address for bitmap value [7]-OSD window 1 [4-bit]
7-0 PAL06 0-FFh Palette address for bitmap value [6]-OSD window 1 [4-bit]
Figure 149. Window 1 Bitmap Value to Palette Map 8/9 Register (W1BMP89)
15 8 7 0
PAL09 PAL08
R/W-0 R/W-0
Table 146. Window 1 Bitmap Value to Palette Map 8/9 Register (W1BMP89) Field Descriptions
Bit Field Value Description
15-8 PAL09 0-FFh Palette address for bitmap value [9]-OSD window 1 [4-bit]
7-0 PAL08 0-FFh Palette address for bitmap value [8]-OSD window 1 [4-bit]
Figure 150. Window 1 Bitmap Value to Palette Map A/B Register (W1BMPAB)
15 8 7 0
PAL11 PAL10
R/W-0 R/W-0
Table 147. Window 1 Bitmap Value to Palette Map A/B Register (W1BMPAB) Field Descriptions
Bit Field Value Description
15-8 PAL11 0-FFh Palette address for bitmap value [B]-OSD window 1 [4-bit]
7-0 PAL10 0-FFh Palette address for bitmap value [A]-OSD window 1 [4-bit, 2-bit]
Figure 151. Window 1 Bitmap Value to Palette Map C/D Register (W1BMPCD)
15 8 7 0
PAL13 PAL12
R/W-0 R/W-0
Table 148. Window 1 Bitmap Value to Palette Map C/D Register (W1BMPCD) Field Descriptions
Bit Field Value Description
15-8 PAL13 0-FFh Palette address for bitmap value [D]-OSD window 1 [4-bit]
7-0 PAL12 0-FFh Palette address for bitmap value [C]-OSD window 1 [4-bit]
Figure 152. Window 1 Bitmap Value to Palette Map E/F Register (W1BMPEF)
15 8 7 0
PAL15 PAL14
R/W-0 R/W-0
Table 149. Window 1 Bitmap Value to Palette Map E/F Register (W1BMPEF) Field Descriptions
Bit Field Value Description
15-8 PAL15 0-FFh Palette address for bitmap value [F]-OSD window 1 [4-bit, 2-bit, 1-bit]
7-0 PAL14 0-FFh Palette address for bitmap value [E]-OSD window 1 [4-bit]
7 6 5 4 3 2 1 0
OSDHRSZ15 VIDHRSZ15 ZMFILV1HEN ZMFILV1VEN ZMFILV0HEN ZMFILV0VEN EXPFILHEN EXPFILVEN
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Table 155. Transparency Color Code - Lower Register (TRANSPVALL) Field Descriptions
Bit Field Value Description
15-0 RGBL 0-FFFFh RGB Transparency Value (lower 16)
Transparent color code when RGB565 or RGB888 modes used in a bitmap window.
• If RGB565 mode, user configures RGB565 transparent color code
• If RGB888 mode, user configures lower 16-bits of RGB888 transparent color code
Table 156. Transparency Color Code - Upper Register (TRANSPVALU) Field Descriptions
Bit Field Value Description
15 - 8 Y 0-FFh Luma Transparency Value
Transparent Luma color code when YC mode used in a bitmap window.
7-0 RGBU 0-FFh RGB Transparency Value (upper 8)
Transparent color code when RGB888 mode used in a bitmap window.
• If RGB888 mode, user configures upper 8-bits of RGB888 transparent color code
Table 157. Transparent Index Code for Bitmaps Register (TRANSPBMPIDX) Field Descriptions
Bit Field Value Description
15 - 8 BMP1 0-FFh OSD Bitmap 1
Transparent Value Bitmap value for transparent color for 1/2/4/8-bit modes of bitmap window
1. Any pixel matching the value configured here is treated as transparent. , the pixel is
blended to the window in back plane with blend factor configured as global value of bitmap
window 1.
The bit width specified here must match the bit depth configured for the window (example):
• 1-bit bitmap mode, bit[0] is evaluated
• 2-bit bitmap mode, bits[1:0] are evaluated
• 4-bit bitmap mode, bits[3:0] are evaluated
7-0 BMP0 0-FFh OSD Bitmap 0
Transparent Value Bitmap value for transparent color for 1/2/4/8-bit modes of bitmap window
0. Any pixel matching the value configured here is treated as transparent. , the pixel is
blended to the window in back plane with blend factor configured as global value of bitmap
window 0.
The bit width specified here must match the bit depth configured for the window (example):
• 1-bit bitmap mode, bit[0] is evaluated
• 2-bit bitmap mode, bits[1:0] are evaluated
• 4-bit bitmap mode, bits[3:0] are evaluated
Note: The upper 16 bits of these registers are not shown; they are reserved.
Table 160. Video Interface I/O Control Register (VIDCTL) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14 VCLKP VCLK output polarity.
0 Non-inverse
1 Inverse
13 VCLKE VCLK output enable. Setting to 1 outputs DCLK from VCLK pin. When 0 VCLKP (polarity control) is still
available.
0 Off
1 On
12 VCLKZ VCLK pin output enable.
0 Output
1 High impedance
11-9 Reserved 0 Reserved
8 SYDIR Horizontal/Vertical Sync pin I/O control. Set to 1 when external syncs are input.
0 Output
1 Input
7-6 Reserved 0 Reserved
5-4 DOMD 0-3h Digital data output mode.
0 Normal output
1h Inverse output
2h Low-level output
3h High-level output
3 YCSWAP Swaps YOUT/COUT pins.
Interchanges the output data of YOUT and COUT.
0 Normal output
1 Interchange YOUT and COUT
2 YCOL YOUT/COUT pin output level.
Setting DC out option will output the value in the YCOLVL register on YOUT/COUT pins. Effective only
when YOUT/COUT pin is set as output.
0 Normal output
1 DC level output
1 YCOMD YC Output Mode (Input Through Mode)
Allows direct output of the data from the YIN/CIN pins on the YOUT/COUT pins
0 Digital video output
1 YIN / CIN input through
0 YCDIR YOUT / COUT I/O Direction Allows use of YOUT/COUT pins as data input pin for CCDC
0 Output
1 Input
Table 161. Video Data Processing Register (VDPRO) Field Descriptions (continued)
Bit Field Value Description
0 YUPS Y signal up-sampling enable
0 Off
1 On
Table 163. Horizontal Sync Pulse Width Register (HSPLS) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 HSPLS 0-1FFFh Horizontal sync pulse width. Sets the pulse width of horizontal sync output from HSYNC pin in
ENC clock. Effective in non-standard mode or sync processing mode (SYSW = 1).
Table 164. Vertical Sync Pulse Width Register (VSPLS) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 VSPLS 0-1FFFh Vertical sync pulse width. Sets the pulse width of vertical sync output from VSYNC pin in lines.
-Effective in non-standard mode or sync processing mode (SYSW = 1).
Table 166. Horizontal Valid Data Start Position Register (HSTART) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 HSTART 0-1FFFh Horizontal valid data start position
Specify the number of ENC clocks from the start of the horizontal sync. LCD_OE is asserted at
the position specified here and the data output starts.
Table 167. Horizontal Data Valid Range Register (HVALID) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 HVALID 0-1FFFh Horizontal data valid range
Specify the number of ENC clocks. The LCD_OE is asserted during the period specified here
and valid data is output. The data outside of the valid range is output in L.
Table 169. Vertical Valid Data Start Position Register (VSTART) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 VSTART 0-1FFFh Vertical valid data start position: specify the number of lines.
Table 170. Vertical Data Valid Range Register (VVALID) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 VVALID 0-1FFFh Vertical data valid range: specify the number of lines.
7 6 5 4 3 2 1 0
VCLRD VCL56 HLDF HLDL LINID DCKCLP DCKCLI RGBCL
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0
Table 176. Line Identification Control Register (LINECTL) Field Descriptions (continued)
Bit Field Value Description
11 VSTF Vertical data valid start position field mode.
0 Normal mode
1 Field mode.
10-8 VCLID 0-7h Vertical culling line position. Specifies which line will be culled of every six lines. No culling will be
applied when VCLID is greater than 5. Effective when VCL56 = 1.
7 VCLRD Vertical culling counter reset mode. Effective when VCL56 = 1. Specifies which line will be culled every
six lines. No culling will be applied when VCLID is greater than 5.
0 Reset to zero
1 Reset to a random value
6 VCL56 Digital output vertical culling. Enabling discards one line of video output every six lines. This can be
used to output NTSC valid lines with PAL timing.
0 No culling
1 5/6 culling
5 HLDF Digital output field hold. Effective in non-standard mode. Enabling suspends the video output when
current field output is completed. Reading the data from OSD is suspended during this period and the
output of the sync signal and video data are also suspended. Setting to 0 restarts output.
0 Normal
1 Output hold
4 HLDL Digital output line hold. Effective in non-standard mode. Enabling suspends the video output when
current line output is completed. Reading the data from OSD is suspended during this period and the
output of the sync signal and video data are also suspended. Setting to 0 restarts output.
0 Normal
1 Output hold
3 LINID Start line ID control in even field.
0 Line ID = 0
1 Line ID = 1
2 DCKCLP DCLK pattern switching by culling line ID. When this is enabled, the DCLK pattern can be switched
according to the culling line ID set by the CULLLINE register. The DCLK pattern on each line is
specified by the DCLKPTN and DCLKPTNA registers.
0 Off
1 On
1 DCKCLI DCLK polarity inversion by culling line ID. When this is disabled, the DCLK polarity is fixed anytime as
specified by the VCLKP register. Enabling inverts this polarity according to the culling line ID set by the
CULLLINE register.
0 Off
1 On
0 RGBCL RGB output order switching by culling line ID. Disabling switches RGB output order every line. Enabling
switches this order according to the XORed signal of the line ID and the culling line ID set by the
CULLLINE register. The output order is specified by RGBOF and RGBEF in the RGBCTL register.
0 Off
1 On
Table 178. LCD Output Signal Control Register (LCDOUT) Field Descriptions
Bit Field Value Description
15-9 Reserved 0 Reserved
8 OES Output Enable Signal Selection Maps LCD_OE or BRIGHT to an alternate output (GIO71)
0 LCD output enable signal
1 BRIGHT signal
7 FIDP Field ID output polarity.
0 Non-inverse
1 Inverse
6 PWMP PWM output pulse polarity.
0 Active high
1 Active low
5 PWME PWM output control enable. Effective when digital output mode with PWM output is selected. PWM is
output on COUT4 signal (use only in serial RGB or YCC8 modes).
0 Off
1 On
4 ACE LCD_AC output control enable. LCD_AC is output on COUT7 signal (use only in serial RGB or YCC8
modes).
0 Off
1 On
3 BRP BRIGHT output polarity.
0 Active high
1 Active low
2 BRE BRIGHT output control enable. BRIGHT is output on COUT5 signal (use only in serial RGB or YCC8
modes).
0 Off
1 On
1 OEP LCD_OE output polarity.
0 Active high
1 Active low
0 OEE LCD_OE output control enable. LCD_OE is output on COUT6 signal (use only in serial RGV or YCC8
modes.
0 Off
1 On
Table 179. Brightness Start Position Signal Control Register (BRTS) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 BRTS 0-1FFFh BRIGHT pulse start position: specify the number of ENC cycles from the HSYNC signal.
Table 180. Brightness Width Signal Control Register (BRTW) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 BRTW 0-1FFFh BRIGHT pulse width: specify the number of ENC cycles.
Table 182. PWM Start Position Signal Control Register (PWMP) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 PWMP 0-1FFFh PWM output period. Specify the number of ENC clocks. Period is PWMP + 1.
Table 183. PWM Width Signal Control Register (PWMW) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 PWMW 0-1FFFh PWM output pulse width. Specify the H pulse width by ENC clock. Setting to 0 makes PWM
output L level always. Setting bigger value than PWMP sets to H level always.
7 6 5 0
Reserved DCKPW
R-0 R/W-0
Table 187. Horizontal DCLK Mask Start Register (DCLKHS) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 DCHS 0-1FFFh Horizontal DCLK mask start position. This is specified in number of ENC clocks from start of the
horizontal sync signal.
Table 188. Horizontal Auxiliary DCLK Mask Start Register (DCLKHSA) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 DCHS 0-1FFFh Horizontal auxiliary DCLK mask start position. This is specified in number of ENC clocks from start
of the horizontal sync signal.
Table 189. Horizontal DCLK Mask Range Register (DCLKHR) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 DCHR 0-1FFFh Horizontal DCLK mask range. This is specified in number of ENC clocks.
Table 190. Vertical DCLK Mask Start Register (DCLKVS) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 DCVS 0-1FFFh Vertical DCLK mask start position. This is specified in lines from vertical sync signal.
Table 191. Vertical DCLK Mask Range Register (DCLKVR) Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 DCVR 0-1FFFh Vertical DCLK mask range. This is specified in number of lines.
Table 193. Caption Data Odd Field Register (CAPDO) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14-8 CADO0 0-7Fh Closed caption default data0 (odd field). Specify the ASCII code of the 1st byte to be transmitted in
closed captioning for odd field. Parity bit is automatically calculated.
7 Reserved 0 Reserved
6-0 CADO1 0-7Fh Closed caption default data1 (odd field). Specify the ASCII code of the 2nd byte to be transmitted in
closed captioning for odd field. Parity bit is automatically calculated.
Table 194. Caption Data Even Field Register (CAPDE) Field Descriptions
Bit Field Value Description
15 Reserved 0 Reserved
14-8 CADE0 0-7Fh Closed caption default data0 (even field). Specify the ASCII code of the 1st byte to be transmitted in
closed captioning for odd field. Parity bit is automatically calculated.
7 Reserved 0 Reserved
6-0 CADE1 0-7Fh Closed caption default data1 (even field). Specify the ASCII code of the 2nd byte to be transmitted in
closed captioning for odd field. Parity bit is automatically calculated.
Table 200. GCP/FRC Table RAM Data Port (RAMPORT) Field Descriptions
Bit Field Value Description
15 - 0 RAMPORT RAM data port
While reading, the data in the address specified in the RAMADR register can be read.
While writing, the data is written to the address specified in the RAMADR register. The RAMADR is
automatically incremented every access to the RAMPORT register in both write and read cases.
Table 202. YOUT and COUT Levels Register (YCOLVL) Field Descriptions
Bit Field Value Description
15-8 YLVL 0-FFh YOUT DC level.
Specify the DC output level from YOUT pins when YOUT/COUT pin DC output mode (YCDC=1).
7-0 CLVL 0-FFh COUT DC level.
Specify the DC output level from COUT pins when YOUT/COUT pin DC output mode (YCDC=1).
|R| | GY 0 RV | | Y-16 |
| G | = 1/1024 | GY -GU -GV | | Cb-128 |
|B| | GY BU 0 | | Cr-128 |
Default:
|R| | 1024 0 1404 | | Y-16 |
| G | = 1/1024 | 1024 -345 -715 | | Cb-128 |
|B| | 1024 1774 0 | | Cr-128 |
Figure 214. Vertical Data Valid Start Position for Even Field Register (VSTARTA)
15 13 12 0
Reserved VSTARTA
R-0 R/W-0
Table 212. Vertical Data Valid Start Position for Even Field Register (VSTARTA)
Field Descriptions
Bit Field Value Description
15-13 Reserved 0 Reserved
12-0 VSTARTA 0-1FFFh Vertical data valid start position for even field. Specify the number of lines.
Table 215. Horizontal Valid Culling Control 0 Register (HVLDCL0) Field Descriptions
Bit Field Value Description
15-5 Reserved 0 Reserved
4 HCM Horizontal valid culling mode
When enabled, the LCD_OE signal is gated by the pattern specified by HCPT register.
0 Normal mode
1 Horizontal valid culling mode
3-0 HCPW 0-Fh Horizontal valid culling pattern bit width
Set the width of valid bit among all 16 bits in the HVLDCL1 register. The number of the valid bits is
counted from LSB side to MSB side of the HVLDCL1.
Table 216. Horizontal Valid Culling Control 1 Register (HVLDCL1) Field Descriptions
Bit Field Value Description
15-16 Reserved 0 Reserved
15-0 HCPT 0-FFFFh Horizontal valid culling pattern.
Table 217. OSD Horizontal Sync Advance Register (OSDHADV) Field Descriptions
Bit Field Value Description
15-8 Reserved 0 Reserved
7-0 OHAD 0-FFh OSD horizontal sync advance.
OSD horizontal sync assertion timing can be advanced by this register. By default, the timing is
adjusted so that OSD timing-related registers and VENC timing-related registers are aligned. Specify
the number of ENC clocks.
This document has been revised from SPRUF72B to SPRUF72C because of the following technical
change(s).