STMicroelectronics SUPERH ST40 SYSTEM ARCHITECTURE VOLUME 3: VIDEODEVICES Reference Manual
광고
광고
PRELIMINARY DATA
SuperH™ (SH)
32-Bit RISC Series
SH-4, ST40
System Architecture,
Volume 3: Video Devices
Last updated 15 July 2003
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
ii
PRELIMINARY DATA
Issued by the MCDT Documentation Group on behalf of STMicroelectronics
Information furnished is believed to be accurate and reliable. However, STMicroelectronics assumes no responsibility for the consequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of STMicroelectronics.
Specifications mentioned in this publication are subject to change without notice. This publication supersedes and replaces all information previously supplied. STMicroelectronics products are not authorized for use as critical components in life support devices or systems without the express written approval of STMicroelectronics.
The ST logo is a registered trademark of STMicroelectronics.
SuperH is a registered trademark for products originally developed by Hitachi, Ltd. and is owned by Hitachi Ltd. SuperHyway is a registered trademark of Hitachi, Ltd.
© 1998, 1999, 2000, 2002, 2003 STMicroelectronics. All Rights Reserved.
STMicroelectronics Group of Companies
Australia - Brazil - Canada - China - Finland - France - Germany - Hong Kong - India - Israel - Italy - Japan
Malaysia - Malta - Morocco - Singapore - Spain - Sweden - Switzerland - United Kingdom - U.S.A.
http://www.st.com
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Contents
Preface
1 Blitter
2 Compositor
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
vii
1
55
iv
PRELIMINARY DATA
Generic display pipeline (GDP)
Modifying the display parameters
3 Triple video DAC interface
4 Digital encoder (DENC)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
111
103
PRELIMINARY DATA
Sync-in-data based synchronization
Burst insertion (PAL and NTSC)
Composite video signal generation
Line skip and line insert capability
CVBS, S-VHS, RGB and UV outputs
5 Video front end (VFE)
ADCS 7225754C
205
v
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
vi
PRELIMINARY DATA
Description of unitary functions
Description of unitary functions
Ancillary data SuperHyway initiator
Video data SuperHyway initiator
CPU interface SuperHyway target
6 Pixel clock controller (PIXCLK)
Appendices
A Register address list
Index
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
259
265
277
PRELIMINARY DATA
Preface
This document is part of the SuperH Documentation Suite detailed below.
Comments on this or other manuals in the SuperH Documentation Suite should be made by contacting your local STMicroelectronics Limited Sales Office or distributor.
Document identification and control
Each book carries a unique identifier in the form:
ADCS nnnnnnnx
Where, nnnnnnn is the document number and x is the revision.
Whenever making comments on a document the complete identification ADCS nnnnnnnx should be quoted.
ST40 documentation suite
The ST40 documentation suite comprises the following volumes:
ST40 Micro Toolset User’s Guide
ADCS 7379953. This manual provides an introduction to the ST40 Micro Toolset and instructions for getting a simple OS21 application run on an
STMicroelectronics’ MediaRef platform. It also describes how to boot OS21 applications from ROM and how to port applications which use STMicroelectronics’
STLite/OS20 operating systems to OS21.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
viii
PRELIMINARY DATA
OS21 User’s Manual
ADCS 7358306. This manual describes the generic use of OS21 across supported platforms. It describes all the core features of OS21 and their use and details the
OS21 function definitions.It also explains how OS21 differs to STLite/OS20, the API targeted at ST20.
OS21 for ST40 User Manual
ADCS 7358673. This manual describes the use of OS21 on ST40 platforms. It describes how specific ST40 facilities are exploited by the OS21 API. It also describes the OS21 board support packages for ST40 platforms.
32-Bit RISC Series, SH-4 CPU Core Architecture
ADCS 7182230. This manual describes the architecture and instruction set of the
SH4-1xx (previously known a ST40-C200) core as used by STMicroelectronics.
32-Bit RISC Series, SH-4, ST40 System Architecture
This manual describes the ST40 family system architecture. It is split into four volumes:
ST40 System Architecture - Volume 1 System - ADCS 7153464.
ST40 System Architecture - Volume 2 Bus Interfaces - ADCS 7171720.
ST40 System Architecture - Volume 3 Video Devices - ADCS 7225754.
ST40 System Architecture - Volume 4 I/O Devices - ADCS 7225754.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Conventions used in this guide
General notation
The notation in this document uses the following conventions:
• Sample code , keyboard input and file names ,
• Variables and code variables ,
• Equations and math ,
• Screens, windows and dialog boxes,
• Instructions.
Hardware notation
The following conventions are used for hardware notation:
• REGISTER NAMES and FIELD NAMES ,
• PIN NAMES and SIGNAL NAMES .
Software notation
Syntax definitions are presented in a modified Backus-Naur Form (BNF). Briefly:
1 Terminal strings of the language, that is those not built up by rules of the language, are printed in teletype font. For example, void .
2 Nonterminal strings of the language, that is those built up by rules of the language, are printed in italic teletype font. For example, name .
3 If a nonterminal string of the language starts with a nonitalicized part, it is equivalent to the same nonterminal string without that nonitalicized part. For example, vspace-name .
4 Each phrase definition is built up using a double colon and an equals sign to separate the two sides.
5 Alternatives are separated by vertical bars (‘ | ’).
6 Optional sequences are enclosed in square brackets (‘ [ ’ and ‘ ] ’).
7 Items which may be repeated appear in braces (‘ { ’ and ‘ } ’).
ix
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
x
PRELIMINARY DATA
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Blitter
1
1.1 Overview
The blitter cell can be regarded as a dual-source 2D-DMA, with a set of powerful operators.
It has no real-time constraints and must be seen as a CPU accelerator for a variety of graphic picture manipulations.
1.2 Features
Main features of the blitter:
• solid color fill of rectangular window,
• solid color shade (fill and alpha blending),
• one source copy, with one or several operators enabled (color format conversion,
2D-scaling),
• two-source copy with alpha blending or logical operation between them,
• 4:2:2 and 4:20:0 capabilities, as source or destination format,
• color space conversion RGB to or from YCbCr,
• color expansion (CLUT to true color),
• color correction (gamma, contrast and gain),
• color reduction (true color to CLUT1,CLUT8 and CLUT4 or CLUT2) using error diffusion algorithm,
• 2D resize engine with high quality filtering,
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
2
PRELIMINARY DATA
Features
• adaptive flicker filter from memory to memory,
• color keying capability,
• rectangular clipping,
• programmable source and target scanning direction (both horizontally and vertically) in order to cope with overlapping source and destination area,
• 1-bit and 8-bit clipmask bitmap for random shape clipping can be achieved in two passes,
• plane mask,
• source and destination windows all defined using an XY descriptor, with pixel accuracy whatever the format, from 1 BPP to 32 BPP.
Most of these operators can be combined in a single blitter pass. For example, take a
YCbCr 4:2:2 bitmap, convert it to 4:4:4 RGB, resize it and finally blend it onto an
RGB565 background picture.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map
Register name
GAM_BLT_CTL
GAM_BLT_STA1
GAM_BLT_STA2
GAM_BLT_STA3
GAM_BLT_NIP
GAM_BLT_USR
GAM_BLT_INS
GAM_BLT_S1BA
GAM_BLT_S1TY
GAM_BLT_S1XY
GAM_BLT_S1SZ
GAM_BLT_TSZ
GAM_BLT_S1CF
GAM_BLT_S2BA
GAM_BLT_S2TY
1.3 Address map
Description Type
A Address offset
Access size
32 Blitter control, see
Blitter status register 1, see
Blitter status register 2, see
Blitter status register 3, see
Next instruction pointer, see
User specific register, see
Instruction register, see
Source 1 base address, see
Source 1 type, see
Source 1 XY location, see
Source 1 target window size, see
Source 1 color fill, see
Source 2 base address, see
Source 2 type, see
Table 1: Address map
RW
RO
RO
RW
0x00
0x04
0x08
0x0C
RW/LLU 0x10
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
0x14
0x18
0x1C
0x20
0x24
0x28
0x2C
0x30
0x34
32
32
32
32
32
32
32
32
32
32
32
32
32
3
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
4 Address map
Register name
GAM_BLT_S2XY
GAM_BLT_S2SZ
GAM_BLT_S2CF
GAM_BLT_TBA
GAM_BLT_TTY
GAM_BLT_TXY
GAM_BLT_CWO
GAM_BLT_CWS
GAM_BLT_CCO
GAM_BLT_CML
GAM_BLT_RZC
GAM_BLT_HFP
GAM_BLT_VFP
GAM_BLT_RSF
Description Type
A
Source 2 XY location, see
Source 2 window size, see
Source 2 color fill, see
Target base address, see
Target type, see
Target XY location, see
Clipping window offset, see
Clipping window stop, see
CLUT color conversion operators, see
CLUT memory location, see
2D resize control, see
Horizontal filter coefficients pointer, see
Vertical filter coefficients pointer, see
Resize scaling factor, see
Table 1: Address map
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
Address offset
0x38
Access size
32
0x3C
0x40
0x44
0x48
0x4C
0x50
0x54
0x58
0x5C
0x60
0x64
0x68
0x6C
32
32
32
32
32
32
32
32
32
32
32
32
32
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map
Register name Description Type
A Address offset
Access size
GAM_BLT_FF0
GAM_BLT_FF1
GAM_BLT_FF2
GAM_BLT_FF3
GAM_BLT_ACK
GAM_BLT_KEY1
GAM_BLT_KEY2
GAM_BLT_PMK
GAM_BLT_RST
GAM_BLT_XYL
GAM_BLT_XYP
GAM_BLT_PKZ
GAM_BLT_HFC[1:10]
GAM_BLT_VFC[1:10]
Flicker filter 0, see
Flicker filter 1, see
Flicker filter 2, see
Flicker filter 3, see
ALU and color key control, see
Color key 1, see
Color key 2, see
Plane mask, see
Raster scan trigger, see
XYL control, see
XY subinstruction pointer, see
Packet size control, see
Horizontal coefficients, see
Vertical coefficients, see
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
R/LLU
0x70
0x74
0x78
0x7C
0x80
0x84
0x88
0x8C
0x90
0x94
0x98
0xFC
0x00 to 0x24
0x30 to 0x54
32
32
32
32
32
32
32
32
32
32
32
32
32
32
Table 1: Address map
A. Linked list update (LLU) type registers cannot be directly written by user software but are updated from the linked list execution.
5
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
SuperHyway FOR LM
Type 2 interface
LM CONTROLLER
FIFO XY FIFO source 1
FIFO source 2
CONTROL
REGISTERS
SEQUENCER
COLOR SPACE
CONVERSION
CLUT
RESIZE ENGINE
ALPHA BLENDING
LOGICAL OPS
FIFO DEST
WRITE ENABLE
DITHERING
COLOR SPACE
CONVERSION
PRELIMINARY DATA
Data formats
1.4 Data formats
1.4.1 Graphics formats
Memory storage is organized as 128-bit word little endian. Thus we have the following storage for the data formats supported by the blitter.
32-bit per pixel format: true color
128-bit word address
BYTE ADDRESS INCREASES
BIT 127
Alpha Red Green Blue Alpha Red Green Blue
BIT 0
31 24 23 16 15 8 7
Alpha Red Green Blue
0
Alpha
3
Red
2
Green
1
Blue
0
PIXEL X+3 PIXEL X+2 PIXEL X+1
32-BIT PIXEL ADDRESS INCREASES
PIXEL X
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
- The pitch value must be a multiple of 4 bytes
Figure 2: ARGB8888 alignment in a 128-bit word
7
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
8
PRELIMINARY DATA
Data formats
24-bit per pixel format: true color
24-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
BIT 127
128-bit word address ADDR
PIXEL X+5 PIXEL X+4 PIXEL X+2
BIT 0
23 16 15 8 7
Red Green Blue
0
Red
2
Green
1
Blue
0
PIXEL X+1 PIXEL X PIXEL X+3
128-bit word address ADDR+1
PIXEL X+10 PIXEL X+9
128-bit word address ADDR+2
PIXEL X+15 PIXEL X+14
PIXEL X+8
PIXEL X+13
PIXEL X+7
PIXEL X+12
PIXEL X+6
PIXEL X+11
PIXEL X+5
PIXEL X+10
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
Figure 3: RGB888 alignment in a 128-bit word (3-word period / 16-pixel period)
24-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
128-bit word address ADDR
BIT 127
23 16 15
Cr Y
8 7
Cb
0
Cr
2
Y
1
BIT 0
Cb
0
PIXEL X+5 PIXEL X+4 PIXEL X+3 PIXEL X+2 PIXEL X+1 PIXEL X
128-bit word address ADDR+1
PIXEL X+10 PIXEL X+9
128-bit word address ADDR+2
PIXEL X+15 PIXEL X+14
PIXEL X+8
PIXEL X+13
PIXEL X+7
PIXEL X+12
PIXEL X+6
PIXEL X+11
PIXEL X+5
PIXEL X+10
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
Figure 4: YCbCr888 alignment in a 128-bit word (3-word period / 16-pixel period)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Data formats
24-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
23 16 15 11 10 5 4
Alpha 8 Red 5 Green 6 Blue 5
0
128-bit word address ADDR
BIT 127
Alpha RGB Alpha RGB Alpha RGB
23 16 15
Alpha RGB
BIT 0
0
Alpha
2 1
RGB
0
PIXEL X+5 address ADDR+2
128-bit word address ADDR+1
PIXEL X+10
PIXEL X+4
PIXEL X+9
PIXEL X+3
PIXEL X+8
PIXEL X+2
PIXEL X+7
PIXEL X+1
PIXEL X+6
PIXEL X
PIXEL X+5
128-bit word
PIXEL X+15 PIXEL X+14 PIXEL X+13 PIXEL X+12 PIXEL X+11 PIXEL X+10
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
- The pitch value must be a multiple of 4 bytes
Figure 5: ARGB8565 alignment in a 128-bit word (3-word period / 16-pixel period)
9
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
10
PRELIMINARY DATA
16-bit per pixel format: true color
16-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
15 11 10 5 4
Red 5 Green 6 Blue 5
0
Data formats
128-bit word address ADDR
BIT 127
RGB RGB RGB RGB RGB
15
RGB
0
RGB
BIT 0
RGB
PIXEL X+7 PIXEL X
- Memory address for pixel (0,0) must be aligned on a 16-bit word address boundary
- The pitch value must be a multiple of 2 bytes
Figure 6: RGB565 alignment in a 128-bit word
128-bit word address
BIT 127
Y Cr Y Cb
PIXEL X+6
PIXEL X+7
Y
BYTE ADDRESS INCREASES
Cr Y Cb
31 24 23 16 15 8 7
Y Cr Y Cb
0
Y
3
Cr
2
Y
1
BIT 0
Cb
0
PIXEL X+4
PIXEL X+5
PIXEL X+2
PIXEL X+3
16-BIT PIXEL ADDRESS INCREASES
PIXEL X
PIXEL X+1
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
- The pitch value must be a multiple of 4 bytes
- X is even on that diagram
Figure 7: YCbCr 4:2:2 (16 BPP)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Data formats
16-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
A 1
15 14 10 9 5 4
R 5 G 5 B 5
0
128-bit word address ADDR
BIT 127
ARGB ARGB ARGB ARGB ARGB
15
ARGB
0
ARGB
BIT
ARGB
PIXEL X+7 PIXEL X
- Memory address for pixel (0,0) must be aligned on a 16-bit word address boundary
- The pitch value must be a multiple of 2 bytes
Figure 8: ARGB1555 alignment in a 128-bit word
16-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
15 12 11 8 7 4 3 0
A 4 R 4 G 4 B 4
11
128-bit word address ADDR
BIT 127
ARGB ARGB ARGB ARGB ARGB
15
ARGB
0
ARGB
BIT 0
ARGB
PIXEL X+7 PIXEL X
- Memory address for pixel (0,0) must be aligned on a 16-bit word address boundary
- The pitch value must be a multiple of 2 bytes
Figure 9: ARGB4444 alignment in a 128-bit word
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
12
PRELIMINARY DATA
16-bit per pixel format: CLUT based
Data formats
16-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
15
ALPHA
8 7
INDEX
0
BIT 127 BIT 0
128-bit word address ADDR
Alpha Index Alpha Index Alpha Index Alpha Index Alpha Index Alpha Index Alpha Index Alpha Index
1 0
PIXEL X+7
- Memory address for pixel (0,0) must be aligned on a 16-bit word address boundary
- The pitch value must be a multiple of 2 bytes
PIXEL X
Figure 10: ACLUT88 alignment in a 128-bit word
8-bit per pixel format
8-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
128-bit word address ADDR
BIT 127 BIT 0
7 0
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
Index Index or
α or
α
PIXEL X+15
- Memory address for pixel (0,0) must be byte-aligned.
PIXEL X
Figure 11: ACLUT8 / A8 alignment in a 128-bit word
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Data formats
8-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
7
ALPHA
4 3
INDEX
0
BIT 127
128-bit word address ADDR
PIXEL X+15
- Memory address for pixel (0,0) must be byte-aligned.
Figure 12: ACLUT44 alignment in a 128-bit word
1/2/4 BPP format
BIT 0
PIXEL X
4-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
7 4 3 0
Pix (x) Pix (x+1)
BIT 127
128-bit word address ADDR
PIXEL X+31
- Memory address for pixel (0,0) must be byte-aligned.
- Pitch remains in byte unit.
Figure 13: ACLUT4 alignment in a 128-bit word
BIT 0
PIXEL X
13
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
14 Data formats
BIT 127
2-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
7
Pix (x)
6 5 4 3 2 1
Pix (x+1) Pix (x+2)
0
Pix (x+3)
BIT 0
128-bit word address ADDR
PIXEL X+63
- Memory address for pixel (0,0) must be byte-aligned.
- Pitch remains in byte unit.
Figure 14: ACLUT2 alignment in a 128-bit word
PIXEL X
BIT 127
1-BIT PIXEL ADDRESS INCREASES
BYTE ADDRESS INCREASES
7 x
6 5 x+1 x+2
4 3 x+3 x+4
2 1 x+5 x+6
0 x+7
BIT 0
128-bit word address ADDR
PIXEL X+127
- Memory address for pixel (0,0) must be byte-aligned.
- Pitch remains in byte unit.
Figure 15: ACLUT1 / A1 alignment in a 128-bit word
PIXEL X
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Data formats 15
10
11
12
7
8
9
4
5
6
0
1
2
3
13
14
15
16
17
Index
1.4.2 Blitter node format
A blitter node is an element in a link list. The storage of a blitter node in the external memory requires thirty-five 32-bit words, that is, nine 128-bit words.
A restriction is that a node must be aligned on a 128-bit word boundary. This means that in the following table, the four least significant bits of ADDR are all 0s.
Linked list registers cannot be directly written by user software, but are updated during linked list execution.
Register name
GAM_BLT_NIP
GAM_BLT_USR
GAM_BLT_INS
GAM_BLT_S1BA
GAM_BLT_S1TY
GAM_BLT_S1XY
GAM_BLT_S1SZ
GAM_BLT_S1CF
GAM_BLT_S2BA
GAM_BLT_S2TY
GAM_BLT_S2XY
GAM_BLT_S2SZ
GAM_BLT_S2CF
GAM_BLT_TBA
GAM_BLT_TTY
GAM_BLT_TXY
GAM_BLT_CWO
GAM_BLT_CWS
Table 2: Blitter registers
Address offset
ADDR (memory base)
ADDR + 0x4
ADDR + 0x8
ADDR + 0xC
ADDR + 0x10
ADDR + 0x14
ADDR + 0x18
ADDR + 0x1C
ADDR + 0x20
ADDR + 0x24
ADDR + 0x28
ADDR + 0x2C
ADDR + 0x30
ADDR + 0x34
ADDR + 0x38
ADDR + 0x3C
ADDR + 0x40
ADDR + 0x44
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
16
PRELIMINARY DATA
Data formats
27
28
29
24
25
26
30
31
32
33
34
21
22
23
18
19
20
Index Register name Address offset
GAM_BLT_CCO
GAM_BLT_CML
GAM_BLT_RZC
GAM_BLT_HFP
GAM_BLT_VFP
GAM_BLT_RSF
GAM_BLT_FF0
GAM_BLT_FF1
GAM_BLT_FF2
GAM_BLT_FF3
GAM_BLT_ACK
GAM_BLT_KEY1
GAM_BLT_KEY2
GAM_BLT_PMK
GAM_BLT_RST
GAM_BLT_XYL
GAM_BLT_XYP
Table 2: Blitter registers
ADDR + 0x48
ADDR + 0x4C
ADDR + 0x50
ADDR + 0x54
ADDR + 0x58
ADDR + 0x5C
ADDR + 0x60
ADDR + 0x64
ADDR + 0x68
ADDR + 0x6C
ADDR + 0x70
ADDR + 0x74
ADDR + 0x78
ADDR + 0x7C
ADDR + 0x80
ADDR + 0x84
ADDR + 0x88
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 17
1.5 Register descriptions
Some of the registers in the blitter are not writable, but use link list update (LLU).
See
Section 1.4.2: Blitter node format on page 15 for a description of the linked list.
GAM_BLT_CTL Blitter control
0xA00
3
1
3
0
2
9
2
8
Address:
Type:
2
7
2
6
2
5
2
4
Reset value:
2
3
2
2
2
1
2
0
1
9
1
8
Reserved
1
7
1
6
1
5
1
4
1
3
BLT base address + 0x00
RW
0x00000000
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
SUSP2 SUSP1 STRT RST
Description
This register controls the blitter activity.
Bitfield
RST
STRT
SUSP1
SUSP2
Description
RESET
START (This behaves like a “Push-button”; write a 1 to start, the bit will be self-reset by the hardware)
SUSPEND after current blit is completed
SUSPEND as soon as possible (end of line or end of blit if 2D-resize is enabled)
GAM_BLT_STA1 Blitter status register 1
0xA04
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved INSTR_PNTR_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x04
R
0xXXXXXXXX
Description
This register provides the memory address of the instruction pointer for the current blitter operation.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
18 Register descriptions
GAM_BLT_STA2 Blitter status register 2
0xA08
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved TRGT_LINE_NUM[11:0]
Address:
Type:
Reset value:
BLT base address + 0x08
R
0xXXXXXXXX
Description
This register provides the current line number processed by the blitter, with reference to the target height. The first line transferred is line 0 (and can be the top or the bottom line, depending on the programmed vertical scan order. This value is useful when a blitter instruction has been suspended to enable a higher priority blitter operation.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 19
0xA0C
GAM_BLT_STA3 Blitter status register 3
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
BLT base address + 0x0C
RW (bit 0 is R only)
0xXXXXXXXX
Description
This register shows the activity of the blitter (for identifying the interrupt source, if any). Setting the appropriate bit in this register resets the interrupt request (for example writing 0x2 in this register clears the CURRENT_BLIT_COMPLETED interrupt status bit, once processed).
Status bit[1], bit[2],bit[3] have no meaning if the corresponding interrupt is disabled.
Bitfield Description
READY READY when ‘1’, BUSY when ‘0’ (read only bit). The READY bit is reset on a START command, and will be set again once the whole link-list has been executed (Next instruction pointer = 0), or on a RESET command.
IRQC Current_Blit_Completed IRQ
IRQR
SUSP
Current_Blit_Ready2Start IRQ (if the blitter has stopped in a “Ready2Start” state, a
START command, register bit GAM_BLT_CTL.STRT, is required to resume; no new node will be fetched prior to the execution.)
Current_Blit_Suspended
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
20 Register descriptions
GAM_BLT_NIP Next instruction pointer
0xA10
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
NIP_BANK_NUM
[5:0]
NIP_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x10
RW/LLU
0x00000000
Description
This register provides the memory location of the next instruction to execute. The blitter stops when this register is 0 (last node of the link-list).
Bitfield Description
NIP_MEM_ADDR[25:0] Memory address for the next instruction pointer for current BLIT
NIP_BANK_NUM[5:0] 64MB bank number
GAM_BLT_USR User specific register
0xA14
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
GENERAL_PURPOSE[31:0]
Address:
Type:
Reset value:
BLT base address + 0x14
R/LLU
0x00000000
Description
This register is available for the software to implement special synchronization schemes.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
0xA18
GAM_BLT_INSInstruction register
31
Res
30 29 28 27 26
TRIG_COND_CTL[7:0]
25 24 23
XYL
22 21
Reserved
20 19
IRQ_MASK
18
21
17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
BLT base address + 0x18
R/LLU
0x00000000
Description
This register controls the data flow configuration of the blitter engine, the interrupt model and the trigger condition.
Bitfield
GAM_ BLT_INS
[2:0]
GAM_
[4:3]
BLT_INS
Description
Source 1 mode
000: Source 1 disabled
001: Source 1 fetched from memory
010: Reserved
011: Source 1 color fill register
100: Source 1 direct copy mode
101: Reserved
110: Reserved
111: Source 1 direct fill mode
Source 2 mode
00: Source 2 disabled
01: Source 2 fetched from memory
10: Reserved
11: Source 2 color fill register
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
22
PRELIMINARY DATA
Register descriptions
Bitfield Description
GAM_ BLT_INS [6]
GAM_ BLT_INS [7]
GAM_ BLT_INS [8]
GAM_ BLT_INS [9]
Enable Input Color Space Converter
Enable CLUT-Based Operator
Enable 2D-Rescaling Engine
Enable Flicker Filter
GAM_ BLT_INS [10] Enable Rectangular Clipping
GAM_ BLT_INS [11] Enable Color Key
GAM_ BLT_INS [12] Enable Output Color Space Converter
GAM_ BLT_INS [14] Enable Plane Mask
GAM_ BLT_INS
[20:18]
IRQ Enable Mask.The individual bits are defined below:
[18]
[19]
[20]
Enable Current_Blit_Completed interrupt
If set, an interrupt will be generated once the blit operation is completed. Then the blitter stops, and a
START command is mandatory to go on.
Enable Current_Blit_Ready2Start interrupt
If set, an interrupt will be generated after the new instruction node has been captured, before the execution starts. The blitter is then in an idle state, waiting for the
CPU to activate the START command in the BLT_CTL register.
Enable Current_Blit_Suspended interrupt
If set, an interrupt will be generated once the blitter has reached the idle state, following a SUSPEND command.
GAM_ BLT_INS [23] XYL mode
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
Bitfield
GAM_ BLT_INS
[30:24]
Description
Trigger Condition Control.The individual bits are defined below
[24]
[25]
[26]
[27]
[28]
[29]
[30]
VTG selection (0:VTG1, 1:VTG2)
Wait for Raster compare event, TOP field
Wait for Raster compare event, BOTTOM field
Wait for End of capture event, TOP field
Wait for End of capture event, BOTTOM field
Wait for VSYNC event, start of TOP field
Wait for VSYNC event, start of BOTTOM field
A Raster compare event is generated when the current video line number, provided by the selected VTG, equals the value programmed in the Line_Trigger_Register? (with a progressive display, use TOP field-related registers only).
23
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
24 Register descriptions
GAM_BLT_S1BA Source 1 base address
0xA1C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
S1BA_BANK_NUM
[5:0]
S1BA_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x1C
R/LLU
0x00000000
Description
This register provides the byte memory location of the pixmap (pixel (0,0)), for retrieving graphics data for blitter source 1. Pixel (0,0) is always the upper-left pixel.In XYL standard mode, this register must be programmed with the base address of the target bitmap. In XYL transform mode, this register must be programmed with the base address of the source bitmap.
Bitfield
S1BA_MEM_ADDR[25:0]
S1BA_BANK_NUM[5:0]
Description
Byte address of the first pixel
64 MByte bank number
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
.
PRELIMINARY DATA
Register descriptions 25
GAM_BLT_S1TY Source 1 type
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA20
Address:
Type:
Reset value:
BLT base address + 0x20
R/LLU
0x00000000
Description
This register configures the color format, pitch and raster scan order for the blitter source 1 pixmap. In XYL standard mode, this register must be filled with the bitmap characteristics of the target bitmap. Bits [24:25] have no meaning. In XYL transform mode, this register must be filled with the bitmap characteristics of the source bitmap. Bits [24:25] have no meaning
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
26 Register descriptions
Bitfield
GAM_BLT_S1TY [15:0] PIXMAP_PITCH
[15:0]
GAM_BLT_S1TY [20:16] COLOR_FORM
[4:0]
Description
Pixmap pitch in byte unit
Pixmap color format
00000:
00001:
00100:
00101:
00110:
00111:
RGB565
RGB888
ARGB8565
ARGB8888
ARGB1555
ARGB4444
01000:
01001:
01010:
01011:
01100:
01101:
10000:
10010:
10011:
10100:
11000:
11001:
11111:
ACLUT1
ACLUT2
ACLUT4
ACLUT8
ACLUT44
ACLUT88
YCbCr888
YCbCr4;2;2R
YCbCr4;2;2MB
YCbCr4;2;0MB
A1
A8
BYTE
GAM_BLT_S1TY
GAM_BLT_S1TY
GAM_BLT_S1TY
GAM_BLT_S1TY
[24]
[25]
[28]
[29]
RGB types
CLUT types
YCbCr types
Misc. types
For modes YCbCr4;2;2MB and YCbCr4;2;0MB
(Macroblock based, dual buffer), source 1 and source 2 are both used, and must be programmed with the same color format.
Horizontal scan order (0: left to right)
Vertical scan order (0: top to bottom)
Sub-byte formats, pixels ordering
0: Screen most right pixel in most significant bits
1: Screen most right pixel in least significant bits
RGB expansion mode
0: Missing LSBs are filled with 0
1: Screen most right pixel in least significant bits
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 27
GAM_BLT_S1XY Source 1 XY location
0xA24
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YCOORD[15:0] XCOORD[15:0]
Address:
Type:
Reset value:
BLT base address + 0x24
R/LLU
0x00000000
Description
This register gives the XY location of the first pixel to be transferred, with reference to the top-left corner of the blitter source 1 bitmap (0,0). This XY location depends on the programmed horizontal and vertical scan order (register GAM_BLT_S1TY ).
Bitfield
XCOORD[15:0]
YCOORD[15:0]
Description
X coordinate of the first pixel to be transferred
Y coordinate of the first pixel to be transferred
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
28 Register descriptions
GAM_BLT_S1SZ/GAM_BLT_TSZSource 1/target window size
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA28 Reserved WIN_HEIGHT[11:0] Reserved WIN_WIDTH[11:0]
Address:
Type:
Reset value:
BLT base address + 0x28
R/LLU
0x00000000
Description
This register gives the width and height of the rectangular window to be transferred.
The size of the target always matches the size of source 1 (no scaling is provided on the source 1 path). Hence, there is only one physical register. However, when source
1 is not used in a blitter operation (source 2 = target), then this register must still be programmed with the target size. For this reason it has two names,
GAM_BLT_S1SZ and GAM_BLT_TSZ . In XYL transform mode, this register must be filled with the width of the target horizontal line in pixel units. The height parameter should be set to 1. In XYL standard mode, this register is not used.
Bitfield
WIN_WIDTH[11:0]
WIN_HEIGHT[11:0]
Description width (in pixels) of window to be transferred height (in lines) of window to be transferred
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 29
GAM_BLT_S1CF Source 1 color fill
0xA2C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SRC2_COLOR_FILL[31:0]
Address:
Type:
Reset value:
BLT base address + 0x2C
R/LLU
0x00000000
Description
This register provides the solid color value to be used for filling or shading during a blitter operation. The number of significant bits varies (from 1 BPP to 32 BPP) according to the bit depth of the selected color format. The value is always right-justified in the 32-bit physical register
GAM_BLT_S2BA Source 2 base address
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA30 S2BA_BANK_NUM[5:0] S2BA_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x30
R/LLU
0x00000000
Description
This register provides the byte memory location address of the pixmap (pixel (0,0)), for retrieving graphics data for blitter source 2. Pixel (0,0) is always the upper-left pixel. In XYL standard mode, this register must be programmed with the base address of the clipmask bitmap, if any. In XYL transform mode, this register is unused.
Bitfield
S2BA_MEM_ADDR[25:0]
S2BA_BANK_NUM[5:0]
Description
Byte address of the first pixel
64 MByte bank number
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
30
PRELIMINARY DATA
Register descriptions
GAM_BLT_S2TY Source 2 type
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA34
Address:
Type:
Reset value:
BLT base address + 0x34
R/LLU
0x00000000
Description
This register configures the color format, pitch and raster scan order for the blitter source 2 pixmap. In XYL standard mode, this register must be filled with the characteristics of the clipmask bitmap, if any. Bits 24, 25, 26, 27 and 29 have no meaning. In XYL transform mode, this register is unused.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 31
Bitfield Description
GAM_BLT_S2TY [15:0] PIXMAP_PIT
CH[15:0]
Pixmap pitch in byte units
GAM_BLT_S2TY [20:16] COLOR_FO
RM
[4:0]
Pixmap color format
00000:
00001:
00100:
00101:
00110:
00111:
RGB565
RGB888
ARGB8565
ARGB8888
ARGB1555
ARGB4444
01000:
01001:
01010:
01011:
01100:
01101:
10000:
10010:
10011:
10100:
11000:
11001:
11111:
ACLUT1
ACLUT2
ACLUT4
ACLUT8
ACLUT44
ACLUT88
YCbCr888
YCbCr4;2;2R
YCbCr4;2;2MB
YCbCr4;2;0MB
A1
A8
BYTE
GAM_BLT_S2TY
GAM_BLT_S2TY
GAM_BLT_S2TY
GAM_BLT_S2TY
GAM_BLT_S2TY
GAM_BLT_S2TY
[24]
[25]
[26]
[27]
[28]
[29]
RGB types
CLUT types
YCbCr types
Misc. types
For modes YCbCr4;2;2MB and YCbCr4;2;0MB (Macroblock based, dual buffer), source 1 and source 2 are both used, and only the Source 1 color format is taken into account by the hardware. This field is “don’t care” for Source 2.
Horizontal scan order (0: left to right)
Vertical scan order (0: top to bottom)
Chroma-Left extended (4:2:x only)
ChromaLineRepeat (4:2:0 only)
Sub-byte formats, pixels ordering
0 : Screen most right pixel in most significant bits
1 : Screen most right pixel in least significant bits
RGB expansion mode
0 : Missing LSBs are filled with 0
1 : MSBs are duplicated on missing LSBs
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
32 Register descriptions
GAM_BLT_S2XY Source 2 XY location
0xA38
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YCOORD[15:0] XCOORD[15:0]
Address:
Type:
Reset value:
BLT base address + 0x38
R/LLU
0x00000000
Description
This register gives the XY location of the first pixel to be transferred, with reference to the top-left corner of the blitter source 2 bitmap (0,0). This XY location depends on the programmed horizontal and vertical scan order (register GAM_BLT_S2TY ).
In XYL standard mode, this register contains the 2D-vector that gives the location of the (0,0) clipmask value, with respect to the (0,0) pixel location of the target bitmap. Bits[15:0] provide the horizontal offset, bits[31:16] provide the vertical offset. Both values are 16-bit signed integers. In XYL transform mode, this register is unused.
Bitfield
XCOORD[15:0]
YCOORD[15:0]
Description
X coordinate of the first pixel to be transferred
Y coordinate of the first pixel to be transferred
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 33
GAM_BLT_S2SZ Source 2 window size
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA3C Reserved SRC2_WIN_HEIGHT[11:0] Reserved SRC2_WIN_WIDTH[11:0]
Address:
Type:
Reset value:
BLT base address + 0x3C
R/LLU
0x00000000
Description
This register gives the width and height of the rectangular window to be transferred.
Bitfield
SRC2_WIN_WIDTH[11:0]
SRC2_WIN_HEIGHT[11:0]
Description width (in pixels) of source 2 window to be transferred height (in lines) of source 2 window to be transferred
GAM_BLT_S2CF Source 2 color fill
0xA40
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
SRC2_COLOR_FILL[31:0]
Address:
Type:
Reset value:
BLT base address + 0x40
R/LLU
0x00000000
Description
This register provides the solid color value for filling or shading during a blitter operation. The number of significant bits varies (from 1 BPP to 32 BPP) according to the bit depth of the selected color format. The value is always right-justified in the
32-bit physical register.
In XYL standard mode, configured for either XY or XYL sub-instruction format, this register contains the drawing color data. The register content does not matter when
XYC or XYLC format is used. In XYL transform mode, this register is unused.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
34 Register descriptions
GAM_BLT_TBA Target base address
0xA44
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
TBA_BANK_NUM
[5:0]
TBA_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x44
R/LLU
0x00000000
Description
This register provides the byte memory location of pixel (0,0) of the target pixmap, for storing the target data for the blitter operation. Pixel (0,0) is always the top-left pixel. In both XYL standard and transform modes, this register must be programmed with the base address of the target bitmap.
Bitfield
TBA_MEM_ADDR[25:0]
TBA_BANK_NUM[5:0]
Description
Byte address of the first pixel
64MB bank number
GAM_BLT_TTY Target type
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA48
Address:
Type:
Reset value:
BLT base address + 0x48
R/LLU
0x00000000
Description
This register configures the color format, pitch and raster scan order for the blitter target pixmap. In both XYL standard and transform modes, this register must be filled with the characteristics of the target bitmap. Bits 24, 25 and 27 have no meaning.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
Bitfield Description
GAM_BLT_TTY [15:0] PIXMAP_PIT
CH[15:0]
Pixmap pitch in byte units
GAM_BLT_TTY
[20:16]
COLOR_FO
RM
[4:0]
Pixmap color format
00000:
00001:
00100:
00101:
00110:
00111:
RGB565
RGB888
ARGB8565
ARGB8888
ARGB1555
ARGB4444
RGB types
CLUT types 01000:
01001:
01010:
01011:
01100:
01101:
10000:
10010:
10011:
10100:
11000:
11001:
11111:
ACLUT1
ACLUT2
ACLUT4
ACLUT8
ACLUT44
ACLUT88
YCbCr888
YCbCr4;2;2R
YCbCr4;2;2MB
YCbCr4;2;0MB
A1
A8
BYTE
YCbCr types
Misc. types
GAM_BLT_TTY
GAM_BLT_TTY
GAM_BLT_TTY
GAM_BLT_TTY
GAM_BLT_TTY
[24]
[25]
[26]
[27]
[28]
Horizontal scan order (0: left to right)
Vertical scan order (0: top to bottom)
1: Enable 2x2Dither when rounding
0: normal rounding
Chroma/notLuma (if 4:2:0 target)
Sub-byte formats, pixels ordering
0 : Screen most right pixel in most significant bits
1 : Screen most right pixel in least significant bits
35
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
36 Register descriptions
GAM_BLT_TXY Target XY location
0xA4C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YCOORD[15:0] XCOORD[15:0]
Address:
Type:
Reset value:
BLT base address + 0x4C
R/LLU
0x00000000
Description
This register gives the XY location of the first pixel to be transferred, with reference to the top-left corner of the target bitmap (0,0). This XY location depends on the programmed horizontal and vertical scan order (register GAM_BLT_TTY ).
In XYL transform mode, this register must be filled with the XY coordinates of the left pixel of the target horizontal line. In XYL standard mode, this register is unused.
Bitfield
XCOORD[15:0]
YCOORD[15:0]
Description
X coordinate of the first pixel to be transferred (16 bits signed)
Y coordinate of the first pixel to be transferred (16 bits signed)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 37
GAM_BLT_CWO Clipping window offset
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA50 INTNL YDO[14:0] Res XDO[14:0]
Address:
Type:
Reset value:
BLT base address + 0x50
R/LLU
0x00000000
Description
This register gives the XY location of the top-left corner of the clipping window, with reference to the target (0,0) origin.
In both XYL standard and transform mode, the rectangular clipping window can be used. In the MEDIAHIGHWAY clipmask implementation, the clipping window must be programmed to the intersection of the regular rectangular clipping and the rectangular clipmask window.
Bitfield
XDO[14:0]
YDO[14:0]
INTNL
Description
X coordinate (unsigned)
Y coordinate (unsigned) internal/notExternal. When ‘0’: writing is forbidden OUTSIDE the window
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
38 Register descriptions
GAM_BLT_CWS Clipping window stop
0xA54
31
Res
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDS[14:0] Res XDS[14:0]
Address:
Type:
Reset value:
BLT base address + 0x54
R/LLU
0x00000000
Description
This register gives the XY location of the bottom-right corner of the clipping window, with reference to the target (0,0) origin.
The clipping window boundaries are always specified with positive values, as there is a default clipping mechanism for any X or Y negative address.
In both XYL standard and transform modes, the rectangular clipping window can be used. In the MEDIAHIGHWAY clipmask implementation, the clipping window must be programmed to the intersection of the regular rectangular clipping, and the rectangular clipmask window.
XDS[14:0]
YDS[14:0]
Bitfield Description
X coordinate (unsigned)
Y coordinate (unsigned)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 39
GAM_BLT_CCO CLUT color conversion operators
0xA58
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved Reserved Reserved
Address:
Type:
Reset value:
BLT base address + 0x58
R/LLU
0x00000000
Description
The register controls the two color space converters and the CLUT operator. The
CLUT and the input color space converter cannot be used in XYL mode, but the output color space converter is available.
Bitfield
GAM_BLT_CCO [0]
GAM_BLT_CCO [1]
GAM_BLT_CCO [2]
Description
Input color converter colorimetry (’0’ for ITU-R BT.601,’1’ for ITU-R BT.709)
Input Color Converter Chroma format (’0’ for offset binary, ‘1’ for signed)
Input Color Converter Direction (’0’ for YCbCr2RGB, ‘1’ for RGB2YCbCr)
GAM_BLT_CCO [8]
GAM_BLT_CCO [9]
The direction for the Output Color converter is automatically the opposite
Output Color Converter Colorimetry (’0’ for ITU-R BT.601 ‘1’ for ITU-R BT.709)
Output Color Converter Chroma format (’0’ for offset binary, ‘1’ for signed)
GAM_BLT_CCO [17:16] CLUT operation modes:
GAM_BLT_CCO [18]
00: Color expansion mode (ACLUTn >> true color)
01: Color correction (true color >> true color)
10: Color reduction mode (true color >> ACLUTn)
Enable CLUT update
GAM_BLT_CCO [21:19] Error diffusion weight (if color reduction)
GAM_BLT_CCO [22]
000: 0% (disabled)
001: 100%
010: 75%
011: 50%
100: 25%
Enable 2Dxy error management
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
40 Register descriptions
GAM_BLT_CML CLUT memory location
0xA5C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CML_BANK_NUM
[5:0]
CML_MEM_ADDR[21:0] Reserved
Address:
Type:
Reset value:
BLT base address + 0x5C
R/LLU
0x00000000
Description
This register provides the byte memory location for retrieving the CLUT data in the external memory. As the CLUTs are always aligned on a 128-bit word boundary, the
4 LSBs are ignored.
Bitfield
CML_MEM_ADDR[21:0]
CML_BANK_NUM[5:0]
Description
Byte address
64 MByte bank number
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
0xA60
41
GAM_BLT_RZC 2-D resize control
31 30 29 28 27
Reserved
26 25 24 23 22 21 20 19 18 17 16
15 14
Reserved
13 12
Address:
Type:
Reset value:
11 10
Reserved
9 8 7
Res
BLT base address + 0x60
R/LLU
0x00000000
6 5
VF_MODE[2:0]
4
Description
This register configures the blitter 2D resize engine.
3
Res
2 1
HF_MODE[2:0]
0
Bitfield
GAM_BLT_RZC [2:0]
GAM_BLT_RZC [6:4]
2D-filter mode (horizontal)
Description
0xx: Horizontal resizer disabled
100: HFilter inactive
101: HFilter active on color channels, Inactive on alpha channel
110: HFilter inactive on color channels, Active on alpha channel
111: HFilter active on both color and alpha channels
2D-filter mode (vertical)
0xx: Vertical resizer disabled
100: VFilter inactive
101: VFilter active on color channels, Inactive on alpha channel
110: VFilter inactive on color channels, Active on alpha channel
111: VFilter active on both color and alpha channels
Flicker filter mode GAM_LT_RZC [9:8]
GAM_BLT_RZC [12]
GAM_BLT_RZC [13]
GAM_BLT_RZC [18:16]
00: Force filter 0
01: Adaptive flicker filtering (RGB format only)
10: Test mode
11: Reserved
Enable AlphaHBorder
Enable AlphaVBorder
Initial subposition for the horizontal sample rate converter
(HSRC)
GAM_BLT_RZC [22:20 ] Initial subposition for the vertical sample rate converter (VSRC)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
42 Register descriptions
GAM_BLT_HFP Horizontal filter coefficients pointer
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA64 HFP_BANK_NUM[5:0] HFP_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x64
R/LLU
0x00000000
Description
This register provides the byte memory location for retrieving the horizontal filter coefficients in the external memory (40 bytes).
Bitfield
HFP_MEM_ADDR[25:0]
HFP_BANK_NUM[5:0]
Description
Horizontal filter first coefficient byte address
64 MBytes bank number
GAM_BLT_VFP Vertical filter coefficients pointer
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA68 VFP_BANK_NUM[5:0] VFP_MEM_ADDR[25:0]
Address:
Type:
Reset value:
BLT base address + 0x68
R/LLU
0x00000000
Description
This register provides the byte memory location for retrieving the vertical filter coefficients in the external memory (40 bytes).
Bitfield
VFP_MEM_ADDR[25:0]
VFP_BANK_NUM[5:0]
Description
Vertical filter first coefficient byte address
64MB bank number
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 43
GAM_BLT_RSF Resize scaling factor
0xA6C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VSRC_INC[15:0] HSRC_INC[15:0]
Address:
Type:
Reset value:
BLT base address + 0x6C
R/LLU
0x00000000
Description
This register provides the scaling factors for both the horizontal and the vertical sample rate converters.
Bitfield
HSRC_INC[15:0]
VSRC_INC[15:0]
Description
Increment value for HSRC (6.10 format)
Increment value for VSRC (6.10 format)
GAM_BLT_FF0 Flicker filter 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA70 Reserved T0[3:0] COEFF0_N3[7:0] COEFF0_N2[7:0] COEFF0_N1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x70
R/LLU
0x00000000
Description
This register provides the flicker filter 0 coefficients, and the threshold value used to select F0.
Bitfield
COEFF0_N1[7:0]
COEFF0_N2[7:0]
COEFF0_N3[7:0]
T0[3:0]
Description
(n-1) coefficient (1.7 format)
(n) coefficient (1.7 format)
(n+1) coefficient (1.7 format) threshold value
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
44 Register descriptions
GAM_BLT_FF1 Flicker filter 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA74 Reserved T1[3:0] COEFF1_N3[7:0] COEFF1_N2[7:0] COEFF1_N1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x74
R/LLU
0x00000000
Description
This register provides the flicker filter 1 coefficients, and the threshold value used to select F1.
COEFF1_N1[7:0]
COEFF1_N2[7:0]
COEFF1_N3[7:0]
T1[3:0]
Bitfield Description
(n-1) coefficient (1.7 format)
(n) coefficient (1.7 format)
(n+1) coefficient (1.7 format) threshold value
GAM_BLT_FF2 Flicker filter 2
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xA78 Reserved T2[3:0] COEFF2_N3[7:0] COEFF2_N2[7:0] COEFF2_N1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x78
R/LLU
0x00000000
Description
This register provides the flicker filter 2 coefficients, and the threshold value used to select F2.
Bitfield
COEFF2_N1[7:0]
COEFF2_N2[7:0]
COEFF2_N3[7:0]
T2[3:0]
Description
(n-1) coefficient (1.7 format)
(n) coefficient (1.7 format)
(n+1) coefficient (1.7 format) threshold value
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 45
GAM_BLT_FF3 Flicker filter 3
0xA7C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved COEFF3_N3[7:0] COEFF3_N2[7:0] COEFF3_N1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x7C
R/LLU
0x00000000
Description
This register provides the flicker filter three coefficients, which will operate in the range T2 to T15.
Bitfield
COEFF3_N1[7:0]
COEFF3_N2[7:0]
COEFF3_N3[7:0]
Description
(n-1) coefficient (1.7 format)
(n) coefficient (1.7 format)
(n+1) coefficient (1.7 format)
GAM_BLT_ACK ALU and color key control
0xA80
31 30 29 28 27 26 25 24 23
Reserved
22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CKEY_SEL
[1:0]
ACK_CKEY[5:0] GALPHA_ROPID[7:0] Res MODE[3:0]
Address:
Type:
Reset value:
BLT base address + 0x80
R/LLU
0x00000000
Description
This register configures the ALU and the color key module of the blitter.For the color key feature use ALU operation mode 0 in XYL standard mode (destination color key).
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
46
PRELIMINARY DATA
Register descriptions
Bitfield
MODE[3:0]
Description
ALU operation modes:
0000: Bypass source 1
0001: Logical operation
0010: Blending mode, source 2 unweighted
0011: Blending mode, source 2 already weighted
0100: Clipmask pass in logical mode / First pass
0101: Clipmask pass in blending mode
0110: 4:2:0 source 1/Scr2 YCbCr concatenation
0111: Bypass source 2
1000: Clipmask pass in logical mode / Second pass
In XYL standard mode, only ALU operation modes 0, 1, 2, 3 and 7 are available.
GALPHA_ROPID[
7:0]
In XYL transform mode, only ALU operation mode 0 is available.
0000: CLEAR result = all 0
0001: AND result = S2 AND S1
0010: AND rev result = S2 AND (NOT S1)
0011: COPY result = S2
0100: AND invert result = (NOT S2) AND S1
0101: NOOP result = S1
0110: XOR result = S2 XOR S1
0111: OR result = S2 OR S1
1000: NOR result = (NOT S2) AND (NOT S1)
1001: EQUIV result = (NOT S2) XOR S1
1010: INVERT result = (NOT S1)
1011: OR reverse result = S2 OR (NOT S1)
1100: COPY inv result = (NOT S2)
1101: OR invert result = (NOT S2) OR S1
1110: NAND result = (NOT S2) OR (NOT S1)
1111: SET result = all 1
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
Bitfield
MODE[3:0]
Description
ALU operation modes:
0000: Bypass source 1
0001: Logical operation
0010: Blending mode, source 2 unweighted
0011: Blending mode, source 2 already weighted
0100: Clipmask pass in logical mode / First pass
0101: Clipmask pass in blending mode
0110: 4:2:0 source 1/Scr2 YCbCr concatenation
0111: Bypass source 2
1000: Clipmask pass in logical mode / Second pass
In XYL standard mode, only ALU operation modes 0, 1, 2, 3 and 7 are available.
GALPHA_ROPID[
7:0]
In XYL transform mode, only ALU operation mode 0 is available.
0000: CLEAR result = all 0
0001: AND result = S2 AND S1
0010: AND rev result = S2 AND (NOT S1)
0011: COPY result = S2
0100: AND invert result = (NOT S2) AND S1
0101: NOOP result = S1
0110: XOR result = S2 XOR S1
0111: OR result = S2 OR S1
1000: NOR result = (NOT S2) AND (NOT S1)
1001: EQUIV result = (NOT S2) XOR S1
1010: INVERT result = (NOT S1)
1011: OR reverse result = S2 OR (NOT S1)
1100: COPY inv result = (NOT S2)
1101: OR invert result = (NOT S2) OR S1
1110: NAND result = (NOT S2) OR (NOT S1)
1111: SET result = all 1
47
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
48 Register descriptions
Bitfield
ACK_CKEY[5:0] Color key configuration
Description
Red bits [1:0]
0: Red component ignored (disabled = always match)
01: Red enabled: match if (R min
<= R <= R max
)
11: Red enabled: match if ((R < R min
) or (R > R max
))
Green bits [3:2] x0: Green component ignored (disabled = always match)
01: Green enabled: match if (G min
<= G <= G max
)
11: Green enabled: match if ((G < G min
) or (G > G max
))
Blue bits [5:4] x0: Blue component ignored (disabled = always match)
01: Blue enabled: match if (B min
<= B <= B max
)
11: Blue enabled: match if ((B < B min
) or (B > B max
))
CKEY_SEL[1:0] 00: Src1 pixel bus (destination color key)
01: Src2 pixel bus before the CLUT (source color key)
10: Scr2 pixel bus after the CLUT (source color key)
11: Reserved
GAM_BLT_KEY1 Color key 1
0xA84
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved RED_MIN[7:0] GREEN_MIN[7:0] BLUE_MIN[7:0]
Address:
Type:
Reset value:
BLT base address + 0x84
R/LLU
0x00000000
Description
This register contains the color key minimum values for the RGB components.
Bitfield
BLUE_MIN[7:0]
GREEN_MIN[7:0]
RED_MIN[7:0]
Description
BLUE component minimum value
GREEN component minimum value
RED component minimum value
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 49
GAM_BLT_KEY2 Color key 2
0xA88
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved RED_MAX[7:0] GREEN_MAX[7:0] BLUE_MAX[7:0]
Address:
Type:
Reset value:
BLT base address + 0x88
R/LLU
0x00000000
Description
This register contains the color key maximum values for the RGB components.
When the color key module is intended to work on the CLUT type data, only the blue path is used and green and red should be disabled. Thus, it is possible to track a single index, as well as a range of indexes.
Bitfield
BLUE_MAX[7:0]
GREEN_MAX[7:0]
RED_MAX[7:0]
Description
Blue component maximum value
Green component maximum value
Red component maximum value
GAM_BLT_PMK Plane mask
0xA8C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PLANE_MASK[31:0]
Address:
Type:
Reset value:
BLT base address + 0x8C
R/LLU
0x00000000
Description
This register provides the plane mask when the feature is enabled in the blitter register bit GAM_BLT_INS[14] . The number of valid bits (1 to 32) in a given configuration must match the selected target pixel width. The value is always right-justified if BPP < 32.
A bit in the target pixel can be updated by the new color bit, only if the corresponding bit in the mask has been set to 1.
The feature is available in both XYL standard and transform modes.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
50 Register descriptions
GAM_BLT_RST Raster scan trigger
0xA90
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved VTG Reserved TRIG_LINE_NUM[10:0]
Address:
Type:
Reset value:
BLT base address + 0x90
R/LLU
0x00000000
Description
This register contains the video line number for conditionally starting a blitter operation.
Bitfield
TRIG_LINE_NUM[10:0]
VTG
Description
Expected video line number to trigger
VTG2/nVTG1
GAM_BLT_XYL XYL Control
0xA94
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
BUFF_FORMAT[15:0] Reserved
8
FORMAT
7 6 5 4 3 2 1
Reserved
0
MODE
Address:
Type:
Reset value:
BLT base address + 0x94
R/LLU
0x00000000
Description
This register contains the XYL control bits when the blitter is configured for XYL operation.
MODE
Bitfield Description
XYL mode:
0: Standard XYL mode, random read-modify-write
1: Transform XYL mode, random read / write horizontal line
XY buffer format: FORMAT[1:0]
00: XY subinstruction, 64-bit
01: XYLu subinstruction, 128-bit (32-bit u field unused)
10: XYCu subinstruction, 128-bit (32-bit u field unused)
A
11: XYLC subinstruction, 128-bit
BUFF_FORMAT[15:0] Number of sub-instructions in the buffer
A. C is a color which must correspond to the target format.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 51
GAM_BLT_XYP XY subinstruction pointer
0xA98
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
XYL_SUBINST_POINTER[31:0]
Address:
Type:
Reset value:
BLT base address + 0x98
R/LLU
0x00000000
Description
This register contains the address of the XYL subinstruction when the blitter is configured for XYL operation.
GAM_BLT_PKZ Packet size control
0xAFC
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2
Reserved
1 0
PKT_SIZE
[2:0]
Address:
Type:
Reset value:
BLT base address + 0xFC
RW
0x00000000
Description
This register controls the packet size on a SuperHyway transaction. A message transaction is split into a smaller entity called a packet, so that a CPU access can be inserted between two consecutive packets.
Bitfield
PKT_SIZE[2:0]
Description
000: Packet size = message size
001: Packet size = 16 x 128-bit words
010: Packet size = 8 x 128-bit words
011: Packet size = 4 x 128-bit words
100: Packet size = 2 x 128-bit words
101: Packet size = 1 x 128-bit words
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
52 Register descriptions
GAM_BLT_HFC1-10Horizontal filter coefficients
0xB00
0xB04
0xB08
0xB0C
0xB10
0xB14
0xB18
0xB1C
0xB20
0xB24
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
K0.3[7:0] K0.2[7:0] K0.1[7:0] K0.0[7:0]
K1.2[7:0]
K2.1[7:0]
K3.0[7:0]
K1.1[7:0]
K2.0[7:0]
K2.4[7:0]
K1.0[7:0]
K1.4[7:0]
K2.3[7:0]
K0.4[7:0]
K1.3[7:0]
K2.2[7:0]
K3.4[7:0]
K4.3[7:0]
K5.2[7:0]
K6.1[7:0]
K7.0[7:0]
K7.4[7:0]
K3.3[7:0]
K4.2[7:0]
K5.1[7:0]
K6.0[7:0]
K6.4[7:0]
K7.3[7:0]
K3.2[7:0]
K4.1[7:0]
K5.0[7:0]
K5.4[7:0]
K6.3[7:0]
K7.2[7:0]
K3.1[7:0]
K4.0[7:0]
K4.4[7:0]
K5.3[7:0]
K6.2[7:0]
K7.1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x00 HFC1, 0x04 HFC2, 0x08 HFC3, 0x0C
HFC4, 0x10 HFC5, 0x14 HFC6,
0x18 HFC7, 0x1C HFC8, 0x20 HFC9, 0x24 HFC10
R/LLU
0x00000000
Description
These registers store the horizontal sample rate converter (HSRC) coefficients.
There are 8 subfilters for the HSRC, each subfilter has five 8-bit coefficients.
Coefficient j of subfilter i (subposition i) is designated K[i].[j][7:0] and the format is
S1.6 (1.0 is encoded as 0x40).
The corresponding filter coefficient structure (40 bytes) must be aligned on a 128-bit word boundary when stored in the external memory.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 53
GAM_BLT_VFC1-10Vertical filter coefficients
0xB30
0xB34
0xB38
0xB3C
0xB40
0xB44
0xB48
0xB4C
0xB50
0xB54
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
K0.3[7:0] K0.2[7:0] K0.1[7:0] K0.0[7:0]
K1.2[7:0]
K2.1[7:0]
K3.0[7:0]
K1.1[7:0]
K2.0[7:0]
K2.4[7:0]
K1.0[7:0]
K1.4[7:0]
K2.3[7:0]
K0.4[7:0]
K1.3[7:0]
K2.2[7:0]
K3.4[7:0]
K4.3[7:0]
K5.2[7:0]
K6.1[7:0]
K7.0[7:0]
K7.4[7:0]
K3.3[7:0]
K4.2[7:0]
K5.1[7:0]
K6.0[7:0]
K6.4[7:0]
K7.3[7:0]
K3.2[7:0]
K4.1[7:0]
K5.0[7:0]
K5.4[7:0]
K6.3[7:0]
K7.2[7:0]
K3.1[7:0]
K4.0[7:0]
K4.4[7:0]
K5.3[7:0]
K6.2[7:0]
K7.1[7:0]
Address:
Type:
Reset value:
BLT base address + 0x30 VFC1, 0x34 VFC2, 0x38 VFC3, 0x3C
VFC4, 0x40 VFC5, 0x44 VFC6,
0x48 VFC7, 0x4C VFC8, 0x50 VFC9, 0x54 VFC10
R/LLU
0x00000000
Description
These registers store the vertical sample rate converter (VSRC) coefficients. There are eight subfilters for the VSRC, each subfilter has five 8-bit coefficients.
Coefficient j of subfilter i (subposition i) is designated K[i].[j][7:0] and the format is
S1.6 (1.0 is encoded as 0x40).
The corresponding filter coefficients structure (40 bytes) must be aligned on a
128-bit word boundary when stored in the external memory.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
54
PRELIMINARY DATA
Register descriptions
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Compositor
2
2.1 Overview
This document describes the interconnection and communication between different blocks or planes for the ST40 compositor.
The module comprises real-time pipelines for the different sources to be displayed, as well as the digital mixers between the sources.
The ST40 compositor supports four generic planes for handling either video contents or graphic contents.
Generic display pipelines (GDPs) are SuperHyway compliant display pipes that support different input color formats and provide RGB output, in addition to various other generic display features.
Due to the use of GDPs, the architecture supports video on graphics, or graphics on video applications, thus avoiding the need for a router.
2.1.1 Features
The ST40 compositor comprises one 6-channel digital video mixer, the cursor module, 4 GDPs and 1 background color register.
All the source pipes are SuperHyway compliant and are connected to the
SuperHyway for the transfer of register, display and link-list data through the interfaces.
The compositor gives out RGB output.
The individual blocks of the compositor are discussed below.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
56
PRELIMINARY DATA
Overview
Digital mixer
In an SD configuration, the main mixer, composed of five mix stages, can handle six possible sources simultaneously. Each pipeline provides RGB color information together with alpha information and creates one output stream.
The output is a 4:4:4 RGB signal at 10 bits per component.
Generic display pipelines (GDPs)
These are generic display pipelines that support the following list of features:
• link-list-based display engine, for multiple viewport capabilities,
• ARGB formats including ARGB1555, ARGB4444, RGB565, RGB888,
ARGB8565, ARGB8888 and YCbCr4:2:2R, YCbCr888 formats,
• premultiplied or non-premultiplied RGB components,
• color space conversion matrix, (YCbCr 601/709, chroma signed/unsigned to
RGB),
• gain and offset adjustment,
• per-pixel alpha channel combined with per-viewport global alpha,
• 5 tap horizontal sample rate converter, for horizontal resize,
• 2 tap vertical sample rate converter for vertical resize,
• Color keying capability.
The output format of GDP is RGB 10 10 10 that goes to the digital mixer along with the 8-bit alpha and 8-bit (1-alpha) values.
Cursor plane (CUR)
The cursor is defined as a 128 x 128 pixel area held in off-chip memory. Each cursor entry is an ARGB4444 pixel. The alpha factor of 4-bits is for antialiasing the cursor pattern on top of the composited output picture.
List of features:
• ACLUT8 format, with ARGB4444 color look-up table (CLUT) entries.
• Size is programmable up to 128x128.
• Hardware rectangular clipping window, out of which the cursor is never displayed (per-pixel clipping, so only part of the cursor can be out of this window, and consequently transparent).
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map
• Current bitmap is specified using a pointer register to an external memory location, making cursor animation very easy.
• Programmable pitch, so that all cursor patterns can be stored in a single global bitmap.
2.2 Address map
Register name Description Type
Address offset
Access size
Mixer
GAM_MIX_CTL
GAM_MIX_BKC
GAM_MIX_BCO
GAM_MIX_BCS
GAM_MIX_AVO
GAM_MIX_AVS
DVP
GAM_DVP_CTL
Mixer control register, see
Background color, see
Background color offset, see
Background color stop, see
Active video offset, see
Active video stop, see
RW
RW
RW
RW
RW
RW
DVP control register, see
RW 0x000
Table 3: Blitter registers for the mixer and DVP submodules
0x500
0x504
0x50C
0x510
0x528
0x52C
32
32
32
32
32
32
32
57
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
58
PRELIMINARY DATA
Address map
Register name Description Type
Address offset
Access size
GAM_CUR_CTL Cursor control, see
GAM_CUR_VPO Viewport offset, see
RW
RW
GAM_CUR_PML First pixel memory location, see
RW
GAM_CUR_PMP Pixmap memory pitch, see
GAM_CUR_SIZE Pixmap memory size, see
GAM_CUR_CML CLUT memory location, see
GAM_CUR_AWS Active window start, see
GAM_CUR_AWE Active window end, see
GAM_CUR_PKZ Packet size control, see
RW
RW
RW
RW
RW
RW
Table 4: Blitter registers for the cursor submodule
0x000
0x00C
0x014
0x018
0x01C
0x020
0x028
0x02C
0x0FC
32
32
32
32
32
32
32
32
32
Register name where n = 1 to 4
GDP[N]_CTL
GDP[N]_AGC
GDP[N]_HSRC
GDP[N]_VPO
GDP[N]_VPS
GDP[N]_PML
GDP[N]_PMP
GDP[N]_SIZE
Description Type
Address offset
GDP control register, see
Alpha gain constant, see
Horizontal sample rate converter, see
Viewport offset, see
Viewport stop, see
Pixmap memory location, see
Pixmap memory pitch, see
Pixmap size, see
R/
LLU
R/
LLU
R/
LLU
RO
RO
RO
RO
R/
LLU
Table 5: Blitter registers for the GDP submodules
0x[n]00
0x[n]04
0x[n]08
0x[n]0C
0x[n]10
0x[n]14
0x[n]18
0x[n]1C
Access size
32
32
32
32
32
32
32
32
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map
Register name where n = 1 to 4
Description Type
Address offset
GDP[N]_VSRC
GDP[N]_NVN
GDP[N]_KEY1
GDP[N]_KEY2
GDP[N]_HFP
Vertical sample rate converter, see
Next viewport node, see
Key 1, see
Key 2, see
Horizontal filter pointer, see
R/
LLU
RW/
LLU
R/
LLU
R/
LLU
R/
LLU
R/
LLU
0x[n]20
0x[n]24
0x[n]28
0x[n]2C
0x[n]30
GDP[N]_HFC[0:9]
GDP[N]_PKZ
GDP HF coefficient register 0 to 9, see page 99 to
Maximum packet size, see
RW
Table 5: Blitter registers for the GDP submodules
0x[n]40 to
0x[n]64
0x[n]FC
Access size
32
32
32
32
32
32
32
59
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
60 Concepts and terminology
2.3 Concepts and terminology
2.3.1 Digital mixer
An n-plane digital mixer performs the composition between n video and graphic sources, from the background to the foreground. It consists of n-1 elementary linear digital mixers, that perform the interpolation between 2 colors, according to the transparency (alpha component) of the foreground.
Note: All the computations in our case are made using an RGB 4:4:4 model.
2.3.2 Viewport and window
A viewport is a physical rectangular area defined within the screen. With reference to the screen upper-left location, four parameters are required: XLEFT, XRIGHT,
YTOP and YBOTTOM . Thus a viewport is similar to the XDO, XDS, YDO, YDS window defined in the MPEG display.
One or several viewports can be attached to a plane, depending on its capabilities.
When several viewports are attached to a plane only one viewport can be handled by video scan-line. If no viewport is defined at a screen location in a given plane, that plane is transparent (alpha channel is forced to 0).
Video: single viewport
A bitmap stored in the external memory must be attached to the viewport. The totality or a part only of this bitmap can be visible in the viewport. This is the window. The window position is relative to the (0,0) pixel of the bitmap, whereas the viewport position is relative to the screen (0,0) origin.
Normally, the window size equals the viewport size.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Concepts and terminology
PRELIMINARY DATA screen (0,0) bitmap (0,0)
Viewing Port
Viewport Height
Screen
61
Viewport Width
Pitch
Stored Bitmap
Figure 16: Viewport configuration
• The viewport has the following parameters list:
XDO,
XDS,
YDO,
YDS.
• The window has the following parameter list:
bitmap color format,
bitmap pitch,
linear start address (pixel accurate),
width,
height.
The linear start address is the address of the bitmap pixel displayed in the upper-left corner of the viewport.
• The GDP pipeline programming is performed using link-list.
• The cursor pipeline programming is performed using the CPU interface.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
62
PRELIMINARY DATA
Supported graphics formats
2.3.3 Background color (BKC)
The background color register is a 24-bit RGB register, that acts as viewport filled with a solid color. This plane is always opaque with no alpha value associated. It cannot be disabled, and is seen on each screen location, according to the resulting transparency of all the foreground planes.
2.4 Supported graphics formats
The memory storage (128-bit word) for all the graphics data is little endian
BYTE ADDRESS INCREASES
128-bit word address: ADDR
BIT 127
Byte
15
Byte
14
Byte i
BIT 0
Byte
1
Byte
0
Byte address: ADDR x 16 + 14
Byte address: ADDR x 16 + 15
Byte address: ADDR x 16 + i Byte address: ADDR x 16 + 1
Byte address: ADDR x 16
Figure 17: Little endian convention for a 128-bit word
For any graphics format, a bitmap is considered a rectangular area, with the width measured in pixel units, and the height in line units. The origin is always the upper-left corner of the bitmap at (0,0).
Any pixel can be internally addressed using an (x,y) model, with the (0,0) reference pixel being the top-left location of the rectangular area. When stored in the external memory, pixel (0,0) is stored at the lowest byte address. The scan order is from left to right horizontally, and from top to bottom vertically.
In the (x,y) model x is the pixel reference and y is the line reference. Each line therefore has a constant y coordinate, the pixel address increases when the x coordinate increments.
The pitch is the distance in bytes between any pair of vertically adjacent pixels, that is two pixels with the same x coordinate, where one is located at coordinate y and the other at y + 1. The pitch is at least the width multiplied by the number of bytes per pixel, but can be greater, for instance byte stuffing for memory alignment considerations, or a global bitmap containing elementary bitmaps, side by side.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Supported graphics formats
PRELIMINARY DATA
2.4.1 Block diagram
Figure 18 shows the video data stream flow through the ST40 compositor cell in a
typical configuration.
SuperHyway
SuperHyway type 1 and 2 interfaces
ST40 compositor
GDP1
GDP2
GDP3
GDP4
Cursor Module
Clk Reset
Mixer
+
Background
Col. Register
RGB Out
Video Outputs
Encoding
(Analog/Digital)
VTG
Figure 18: Compositor cell in a typical configuration in ST40
63
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
64
PRELIMINARY DATA
Generic display pipeline (GDP)
2.5 Generic display pipeline (GDP)
The generic display pipelines support the features below.
• link-list-based display engine, for multiple viewport capabilities,
• ARGBargb formats including ARGB1555, ARGB4444, RGB565, RGB888,
ARGB8565, ARGB8888,
• YCbCr4:2:2R, YCbCr888, AYCbCr8888 formats are supported,
• premultiplied or non-premultiplied RGB components are supported,
• support for little endian and big endian bitmap,
• color space conversion matrix, (YCbCr 601/709, chroma signed/unsigned to
RGB),
• gain and offset adjustment,
• per-pixel alpha channel combined with per-viewport global alpha,
• 5-tap horizontal sample rate converter, for horizontal resize. The goal is to adapt the pixel aspect ratio (square pixel aspect ration, versus 601 aspect ratio).
The resolution is 1/8th pixel (polyphase filter with 8 subpositions),
• 2-tap vertical sample rate converter for vertical resize. This is to be used for half-resolution application, i.e. rescaling factor 2x or more (for rescaling factors between 1 and 2, the quality will be poor on pure graphical object, due to the interlaced scanning mode),
• color keying.
The output format of the GDP is RGB-12-12-12 that goes to the digital mixer along with the 8-bit alpha and 8-bit (1-alpha) values.
A full description of the gamma-supported graphics formats, is given in
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Generic display pipeline (GDP)
PRELIMINARY DATA
2.5.1 GDP block diagram
ADCS 7225754C
65
STBUS controller
(T1/2xT2)
Input
FIFO
VF
Color key
Delay line
Clock
1X/2X request from MIXER
5-taps
H-SRC
HF
Global alpha 0
Global alpha 1
YCbCr to
RGB
Alpha
RGB
Gain / offset
36 data to
Alpha
8 out
8
MIXER
System interconnect
Figure 19: GDP functional block diagram
2.5.2 GDP overview
The GDP can handle multiple-viewport display, from a display instruction list (-) stored in the external memory.
A viewport is a physical rectangular area defined in the screeen area. With reference to the screen upper-left location, four parameters are required: XDO / XDS
/ YDO / YDS.
One or several viewports can be attached to the GDP layer, depending on its capabilities.
Note: When several viewports are defined within a layer, only one viewport can be handled by the video scan-line.
For each (x,y) screen location where no viewport is defined, in a given layer, the layer is automatically transparent (the alpha channel to the mixer is forced to 0).
A bitmap stored in the external memory must be attached to the viewport. The totality or part only of this bitmap can be visible in the viewport. This is the bitmap window.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
66
PRELIMINARY DATA
Generic display pipeline (GDP)
The window and the viewport are usually the same size. Their sizes differ when a resizing factor is applied to the window, so that the rescaled bitmap matches with the viewport size.
When the programmed sizes are not consistent, the display is undefined locally.
Screen
Screen (0,0)
Viewport
YDO Bitmap (0,0)
Pitch
Window
Viewport
Height
YDS
Viewport
Width
XDO XDS
Stored Bitmap
Figure 20: Example: a resized window attached to a viewport
The viewport has the following parameters:
• XDO,
• XDS,
• YDO,
• YDS.
The window has the following parameters:
• bitmap color format,
• bitmap pitch,
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Generic display pipeline (GDP)
PRELIMINARY DATA
67
• width,
• height,
• linear start address (pixel accurate).
The linear start address is the address of the bitmap pixel that will be displayed in the upper-left corner of the viewport, that is the address of the window (0,0) pixel.
A display link-list must be built in the external memory. The link-list is a description of the screen. For each viewport, we define a node that contains the viewport configuration, bitmap window settings, display options (for example global transparency, filtering mode, gain/offset adjustment). The node also contains a memory pointer to the next node.
• The display link-list is generally circular. For an interlaced display the link-list is field-based. That means two nodes must be provided for the TOP and the
BOTTOM fields (they can be different, particularly the start address, and the vertical resize parameters).
(0,0)
GFX data 1
Viewport 1 (RGB565)
Node 1
Viewport 2
(YCbCr422R)
GFX data 2
Viewport 3 (ARGB4444)
Screen
Node 2
Node 3
Nodes
GFX data 3
External memory
Graphics data
Figure 21: Typical display link-list configuration for a progressive display
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
68
PRELIMINARY DATA
Generic display pipeline (GDP)
(0,0)
Viewport 1 (RGB565)
Viewport 2
(YCbCr422R)
Viewport 3 (ARGB4444)
Screen
External memory
Node 1
TOP
Node 2
TOP
Node 3
TOP
Node 1
BOTTOM
Node 2
BOTTOM
Node 3
BOTTOM
Nodes
GFX data 1
GFX data 2
GFX data 3
Graphics data
Figure 22: Typical display link-list configuration for an interlaced display
• The YDO and YDS value are specified in reference to a frame line-numbering, even in an interlaced display.
specify how the hardware must consider the register values, depending on TOP or BOTTOM field, so that each viewport can be vertically positioned with a “one-line accuracy”.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Generic display pipeline (GDP)
PRELIMINARY DATA
69
TOP field n n+1 n+2 n+3 n+4 n+5
Example 1
YDO even
GDP[n]_PML
= A if TOP
= B if BOT
BOTTOM field
Example 2
YDO odd
GDP[n]_PML
= B if TOP
= A if BOT n n+1 n+2 n+3 n+4 n+5
2.n
2.n +1
2.(n+1)
2.(n+1) +1
2.(n+2)
2.(n+2) +1
2.(n+3)
2.(n+3) +1
2.(n+4)
2.(n+4) +1
2.(n+5)
2.(n+5) +1
Frame line-numbering
First line
Address A
B = A+Pitch
PITCH
5-line bitmap stored in external memory intra-field line numbering
(as provided by VTGs counters)
1 - During the TOP field, the VTG counter must be compared to (YDO + 1 >> 1) and (YDS >> 1) for detecting the viewport active area.
2 - During the BOTTOM field, the VTG counter must be compared to (YDO >> 1) and (YDS-1 >> 1) for detecting the viewport active area.
3 - Whatever the field, TOP or BOTTOM, the first bitmap line to read from memory is always at the memory location specified by the GDP[n]_PML register. It is the responsibility of the software to program this register according to the field parity.
Figure 23: Line numbering convention in an interlaced display
For the progressive display configuration, this consideration is of course trivial.
2.5.3 Starting the display
To start the display on a GDP, a link-list must be programmed in memory, and the
GDP[ n ]_NVN register must be set by the CPU, with the address of the first node to be displayed, within this link-list. Then, the GDP corresponding enable bit in the
GAM_MIX_CTL register must be set. This write operation is synchronized on the next VSYNC event. On that event, the GDP pipeline fetches from memory the first node, and start to retrieve pixel data from memory, according to the display parameters specified in the node.
In order to have a clean node switching, particularly in the case we have 2 vertically adjacent viewports (the horizontal blanking interval can be quite short!), the hardware uses internally a dual register bank for the nodes, that is used in toggle
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
70
PRELIMINARY DATA
Generic display pipeline (GDP) mode. The next node loading process is always anticipated (for node N), and occurs at the beginning of the fist line displayed for node (N-1). This mechanism is transparent to the programmer.
To stop the display, the GAM_MIX_CTL enable bit must be set back to 0. This is taken into account synchronously with the field (frame) rate.
2.5.4 Modifying the display parameters
Hardware and software may conflict when accessing the nodes, if the software wants to modify a display parameter. To solve that synchronization issue, it is recommended to toggle between two link-lists stored in memory, each time one or more display parameters have to be modified.
For any of these two link-lists, in the final node of the link-list, which corresponds to the lowest viewport, bit WAIT_NEXT_VSYNC in the GDP[ n ]_CTL register must be set to 1. This prevents the node anticipation process from occurring: loading is delayed until the next VSYNC event.
When the hardware is working from the current displayed link-list, the software is free to make any modification (such as viewports parameters, viewport insertion or deletion) in the other link-list. Once the link-list has been updated, the software updates the GDP[ n ]_NVN register field, in the last node of the current link-list. This is a single memory write access, so it cannot conflict with a hardware access (no partially updated parameters issue). As this node has been programmed not to anticipate the next node loading, the hardware waits until next VSYNC , and at that time, can properly switch to the new link-list.
If the memory update operation for the GDP[ n ]_NVN register is synchronized in the
VSYNC software handler, the link-list switch occurs with a one field delay, or one frame delay if progressive.
For an interlaced display this scheme is simplified: Use a single link-list, update the top parameters while the bottom field is displayed and update the bottom parameters while the top field is displayed.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Generic display pipeline (GDP)
PRELIMINARY DATA
2.5.5 Bandwidth requirements
To calculate bandwidth requirements, the general formula to estimate the GDP weight on a given system is the following:
Bandwidth_requirements (in MByte/s) = pixel_frequency (in MHz) x bytes_per_pixel x horizontal_resampling_factor
Examples:
• 601 rate / RGB565 / x1:
Bandwidth requirements = 13.5 x 2 x 1 = 27 MByte/s,
• PAL SQ rate / YCbCr422R / x1:
Bandwidth requirements = 14.75 x 2 x 1 = 29.5 MByte/s,
• 601 rate / ARGB8888 / zoom out x2:
Bandwidth requirements = 13.5 x 4 x 2 = 108 MByte/s,
Note: The vertical resizing factor does not impact the bandwidth.
71
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
72 Register map
2.6 Register map
All the registers are memory mapped. These registers are accessible through the
SuperHyway type 1 interface where the compositor submodules act as target devices.
All the registers are seen from a start address. The registers of individual submodules of the ST40 compositor, have addresses offset from a base address.
The register map is shown in
GAMMA_START_ADDRESS
(IC-dependant)
CURSOR Base Address
0x000
GDP1 Base Address
0x100
GDP2 Base Address
0x200
GDP3 Base Address
0x300
GDP4 Base Address
0x400
MIXER Base Address
0x500
0x600
CURSOR
GDP1
GDP2
GDP3
GDP4
MIXER unused
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
32-bit BYTE ADDRESS
31 24 23
Base Address selection
32-bit Register selection
16 15
Figure 24: Register mapping
8 7 0
Unused
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 73
2.7 Register descriptions
The registers dedicated to each of the modules in ST40 compositor are discussed below.
2.7.1 Mixer registers
GAM_MIX_CTL Mixer control
0x00
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
22 21 20 19 18 17 16
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
Mix base address + 0x00
RW
0x00000000
Description
This register contains the values for controlling the mixer core. A channel (video or graphics) is considered active on an XY screen location, if the pixel alpha component is not zero
Bitfield
GAM_MIX_CTL[0]
GAM_MIX_CTL[1]
GAM_MIX_CTL[2]
GAM_MIX_CTL[3]
BKCOND
GDP4OND
GDP3OND
GDP2OND
GAM_MIX_CTL[4]
GAM_MIX_CTL[6]
GDP1OND
CUROND
GAM_MIX_CTL[16] BKCONGFX
GAM_MIX_CTL[17] GDP4ONGFX
GAM_MIX_CTL[18] GDP3ONGFX
GAM_MIX_CTL[19] GDP2ONGFX
GAM_MIX_CTL[20] GDP1ONGFX
Description
Enable BackGround Color on display
Enable GDP4 on display
Enable GDP3 on display
Enable GDP2 on display
Enable GDP1 on display
Enable CURSOR on display
Enable BackGround Color on GFXActive
Enable GDP4 on GFXActive
Enable GDP3 on GFXActive
Enable GDP2 on GFXActive
Enable GDP1 on GFXActive
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
74 Register descriptions
Bitfield
GAM_MIX_CTL[22] CURONGFX
GAM_MIX_CTL[24] GDP4ONVID
GAM_MIX_CTL[25] GDP3ONVID
GAM_MIX_CTL[26] GDP2ONVID
GAM_MIX_CTL[27] GDP1ONVID
Description
Enable CURSOR on GFXActive
Enable GDP4 on VIDActive
Enable GDP3 on VIDActive
Enable GDP2 on VIDActive
Enable GDP1 on VIDActive
GAM_MIX_BKC Background color
0x04
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1
5
Reserved
Address:
Type:
Reset value:
RED_COMP[7:0]
Mixer base address + 0x04
RW
0x00000000
1
4
1
3
1
2
11
1
0
9 8 7 6 5 4 3 2 1 0
GREEN_COMP[7:0] BLUE_COMP[7:0]
Description
This register contains the background solid color components used by the mixer core.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 75
GAM_MIX_BCO Background color offset
0x0C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1
5
1
4
1
3
1
2
Reserved
Address:
Type:
Reset value:
YDO[9:0]
Mixer base address + 0x0C
RW
0x0000 0000
Reserved
1
1
1
0
9 8 7 6 5 4 3 2 1 0
XDO[10:0]
Description
This register contains the x and y coordinate values for defining the top-left corner of the background color rectangular area. Outside this window, black is the blanking color.
Bitfield Description
XDO[10:0] Horizontal start location of the mix background color window, with respect to VTG horizontal counter
YDO[9:0] Vertical start location of the mix background color window, with respect to line frame-numbering
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
76 Register descriptions
GAM_MIX_BCS Background color stop
0x10
3
1
3
0
2
9
2
8
2
7
2
6
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
1
0
9 8 7 6 5 4 3 2 1 0
Reserved XDS[10:0] Reserved
Address:
Type:
Reset value:
YDS[9:0]
Mix base address + 0x10
RW
0x00000000
Description
This register contains the x and y coordinate values for defining the bottom-right corner of the background color rectangular area. Outside this window, black is the blanking color.
Bitfield Description
XDS[10:0] Horizontal stop location of the mix background color window, with respect to VTG horizontal counter
YDS[9:0] Vertical stop location of the mix background color window, with respect to line frame-numbering
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 77
GAM_MIX_AVO Active video offset
0x28
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
Reserved XDO[10:0] Reserved
Address:
Type:
Reset value:
YDO[9:0]
Mix base address + 0x28
RW
0x00000000
Description
This register contains the x and y coordinate values for defining the top-left corner of the active video rectangular area on the mix output. Typically, it should be programmed according to the video standard currently in use.
Bitfield
XDO[10:0]
YDO[9:0]
Description
Horizontal start location of the mix active video window, with respect to VTG horizontal counter
Vertical start location of the mix active video window, with respect to line frame-numbering
GAM_MIX_AVO and GAM_MIX_AVS are internally used to define the HBLANK and
VBLANK signals.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
78 Register descriptions
GAM_MIX_AVS Active video stop
0x2C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16
1
5
1
4
1
3
1
2
Reserved Reserved
Address:
Type:
Reset value:
YDS[9:0]
Mix base address + 0x2C
RW
0x00000000
1
1
1
0
9 8 7 6 5 4 3 2 1 0
XDS[10:0]
Description
This register contains the x and y coordinate values for defining the bottom-right corner of the active video rectangular area on the mix output. Typically, it should be programmed according to the video standard currently in use.
Bitfield Description
XDS[10:0] Horizontal stop location of the mix active video window, with respect to VTG horizontal counter
YDS[9:0] Vertical stop location of the mix active video window, with respect to line frame-numbering
GAM_MIX_AVO and GAM_MIX_AVS are internally used to define the HBLANK and
VBLANK signals.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 79
2.7.2 DVP register
GAM_DVP_CTL DVP control
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
11
1
0
9 8 7 6 5 4 3 2 1 0
Address:
Type:
Buffer:
Reset value:
DVP base address + 0x00
RW
Double-buffered: update on DVP V_INIT event, except if indicated
0x00000000
Description
This register provides the operating mode of the DVP pipe, for the current capture.
Bitfield
MIX_CAPT_PREREQUEST
MIX_CAPT_EN
EXTENDED-1_254
Description
DVP is configured to capture mixer data
This non-double-buffered bit allows VTG_REF to load
MIX_CAPT_EN into DVP, then data from mixer is captured directly.
Mixer data capture enable (loaded by VTG_VREF once
MIX_CAPT_PREREQUEST is set to 1)
0: Input clipping range: 16/235 for luma and 16/240 for chroma
1: Input clipping range: 1/254 for both luma and chroma
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
80
PRELIMINARY DATA
Register descriptions
Bitfield
SYNCHRO_PHASE_NOTOK
A
VALID_ANC_PAGE_SIZE_EXT
ENA_VRESIZE
ENA_HRESIZE
ODDEVEN_NOT_VSYNC
PHASE
Description
0: External vertical and horizontal synchronization signals are presumed to be in phase to initialize a top field
1: External vertical and horizontal synchronization signals may be out of phase, in this case the vertical synchronization signal must be earlier or later than horizontal synchronization signal with a maximum of 1/4 of line length
0: ANC_PAGE_SIZE is extracted from ancillary data bit[5:0] from the sixth byte of the header
1: ANC_PAGE_SIZE given by DVP_APS register
0: The vertical resize engine is disabled
1: The vertical resize engine is enabled
0: The horizontal resize engine is disabled
1: The horizontal resize engine is enabled
0: In external sync mode, vertical reference is a VSYNC signal
1: In external sync mode, vertical reference is an odd/ even signal
First pixel signification of capture window when 8 bits video data capture
Phase[7]: 0 first pixel is complete (that is CB0_Y0_CR0)
Phase[7]: 1 first pixel is not complete (that is Y1)
Phase[8]: 0 number of pixel to capture is even
Phase[8]: 1 number of pixel to capture is odd
0: The negative edge of VREF (if bit[4] = 1) is taken as reference for the vertical counter reset.
1: The positive edge of VREF (if bit[4] = 1) is taken as reference for the vertical counter reset
In EAV/SAV mode, (bit[4] = 0) the positive edge is always active but the normal rising edge of V is phased with the next falling edge of H as the top field configuration is strictly prohibited
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 81
Bitfield Description
HREF_POLARITY
EXTERNAL_SYNC
0: The negative edge of HREF (defined by bit[4]) is taken as reference for the horizontal counter reset.
1: The positive edge of HREF (defined by bit[4]) is taken as reference for the horizontal counter reset
0: Extract the H/V/F reference sync flags from embedded EAV/SAV codes
(H becomes HREF, V becomes VREF )
1: Use external HSI/VSI signals as sync reference
(HSI becomes HREF, VSI becomes VREF)
VSYNC_BOT_HALF_LINE_EN
EXT_SYNC_POLARITY
ENA_ANCILLARY_DATA
ENA_VIDEO
0: VSOUT starts at the beginning of the last top field line
1: VSOUT starts at the middle of the last top field line
0: Negative for both horizontal and vertical (no meaning if bit[4] = 0)
1: Positive for both horizontal and vertical
0: No ancillary data are captured
1: Ancillary data are captured into the device local memory
0: No video data captured
1: Video data captured into the device local memory
A. Bits are not double-buffered (that is they are taken into account when loaded by the CPU). Others bits are validated by the vertical synchronization signal.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
82 Register descriptions
2.7.3 Cursor registers
GAM_CUR_CTL Cursor control
3
1
3
0
2
9
2
8
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
9
1
8
1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0
9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
Cursor base address + 0x00
RW
0x00000000
Description
This register contains the values for controlling the cursor core.
Bitfield
RFRSH 0: Disable Cursor CLUT refresh
1: Enable Cursor CLUT refresh
Description
GAM_CUR_VPO Viewport offset
0x0C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
Address:
Type:
Reset value:
YDO Reserved
Cursor base address + 0x0C
RW
0x00000000
XDO
Description
Bitfield
XDO[12:0]
YDO[11:0]
Description
Horizontal start location for Cursor viewport, with respect to VTG horizontal counter
Vertical start location for Cursor viewport, with respect to line frame-numbering
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 83
GAM_CUR_PML First pixel memory location
0x14
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CUR_MEM_ADDR[25:0] CUR_BANK_NUM
[5:0]
Address:
Type:
Reset value:
Cursor base address + 0x14
RW
0x00000000
Description
This register contains the address for the first pixel memory location.
Bitfield
CUR_MEM_ADDR[25:0]
CUR_BANK_NUM[5:0]
Description
First pixel memory byte address
64 MB bank number
GAM_CUR_PMP Pixmap memory pitch
0x18
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PIX_MEM_PITCH[15:0]
Address:
Type:
Reset value:
Reserved
Cursor base address + 0x18
RW
0x00000000
Description
Bitfield
PIX_MEM_PITCH[15:0]
Description
Cursor pixmap memory pitch in byte
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
84 Register descriptions
GAM_CUR_SIZE Pixmap memory size
0x1C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved PIXMAP_WIDTH[7:0] Reserved
Address:
Type:
Reset value:
PIXMAP_HEIGHT[7:0]
Cursor base address + 0x1C
RW
0x00000000
Description
Bitfield Description
PIXMAP_WIDTH[7:0] cursor pattern width (in pixel units)
PIXMAP_HEIGHT[7:0] cursor pattern height (in pixel unit)
GAM_CUR_CML CLUT memory location
0x20
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CLUT_BANK_NUM
[5:0]
Address:
Type:
Reset value:
Cursor base address + 0x20
RW
0x00000000
CLUT_MEM_ADDR[25:0]
Description
This register contains the memory pointer for the color look-up table (CLUT).
Bitfield
CLUT_MEM_ADDR[25:0]
CLUT_BANK_NUM[5:0]
Description
CLUT memory byte address
64MB bank number
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 85
GAM_CUR_AWS Active window start
0x28
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11
1
0
Reserved AWS_Y[10:0] Reserved
Address:
Type:
Reset value:
Cursor base address + 0x28
RW
0x00000000
9 8 7 6 5 4 3 2 1 0
AWS_X[11:0]
Description
The cursor active window start register ( AWS ) contains the coordinates for the top-left location of the cursor active window.
AWS_X[11:0]
AWS_Y[10:0]
Bitfield horizontal coordinate vertical coordinate
Description
GAM_CUR_AWE Active window end
0x2C
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
AWE_X[11:0] Reserved
Address:
Type:
Reset value:
AWE_Y[10:0] Reserved
Cursor base address + 0x2C
RW
0x00000000
Description
The cursor active window end register ( AWE ) contains the coordinates for the bottom-right location of the cursor active window.
Bitfield
AWE_X[11:0]
AWE_Y[10:0] horizontal coordinate vertical coordinate
Description
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
86 Register descriptions
GAM_CUR_PKZ Packet size control
0xFC
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2
Reserved
1 0
PKT_SIZE
[2:0]
Address:
Type:
Reset value:
Cursor base address + 0xFC
RW
0x00000000
Description
This register controls the packet size on an SuperHyway transaction. A message transaction is split into a smaller entity called a packet, so that a CPU access can be inserted between two consecutive packets. Programming guide lines will be provided for each IC.
Bitfield
PKT_SIZE[2:0] 000
001
011
011
100
101
Description
Packet size = message size
Packet size = 16 x 128-bit words
Packet size = 8 x 128-bit words
Packet size = 4 x 128-bit words
Packet size = 2 x 128-bit words
Packet size = 1 x 128-bit words
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 87
2.7.4 GDP registers
GDP[n]_CTL GDP control register
0x00
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x00
Read / Link List Update
0
Description
The GDP control register provides the operating mode of the GDP pipe, for the current viewport display.
Bit field
COLOR_FORMAT
ENA_H_RESIZE
ENA_V_RESIZE
ENA_ALPHA_ HBORDER
Description
Color format for the bitmap associated to the current viewport
00000: RGB5650x000001: RGB8880x1
00100: ARGB85650x400101: ARGB88880x5
00110: ARGB15550x600111: ARGB44440x7
10000: YCbCr8880x1010010: YCbCr4:2:2R0x12
0:The horizontal resize block is disabled
1:The horizontal resize block is enabled
0:The vertical resize block is disabled
1:The vertical resize block is enabled
0:Feature disabled
1:The alpha component is divided by 2 on the first and last columns of the viewport
This provides soft vertical edges for the viewport
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
88
PRELIMINARY DATA
Register descriptions
Bit field Description
ENA_ALPHA_VBORDER
ENA_COLOR_KEY
0:Feature disabled
1:The alpha component is divided by 2 on the first and last lines of the viewport
This provides soft horizontal edges for the viewport, and has a flicker reduction effect
0:The Color Key feature is disabled
1:The Color Key feature is enabled
BCB_COLOR_KEY
GY_COLOR_KEY
RCR_COLOR_KEY
B/CB color key configuration x0:B/Cb component ignored (disabled = always match)
01:B/Cb enabled: match if (B/Cb min
<= B/Cb <= B/Cb max
))
11:B/Cb enabled: match if ((B/Cb < B/Cb min
) or (B/Cb > B/
Cb max
))
G/Y color key configuration x0:G/Y component ignored (disabled = always match)
01:G/Y enabled: match if (G/Y min
<= G/Y <= G/Y max
))
11:G/Y enabled: match if ((G/Y < G/Y min
) or (G/Y > G/Y max
))
R/CR color key configuration x0:R/Cr component ignored (disabled = always match)
01:R/Cr enabled: match if (R/Cr min
<= R/Cr <= R/Cr max
))
11:R/Cr enabled: match if ((R/Cr < R/Cr min
) or (R/Cr > R/
Cr max
))
PREMULTIPLIED_FORMAT 0:The RGB components are not premultiplied by the per-pixel alpha component
1:The RGB components are premultiplied by the per-pixel alpha component
Note: This is only meaningful for ARGB4444, ARGB8565 and
ARGB8888 formats.
601/709SELECTION
CHROMA_FORMAT
0:The color space conversion uses the 601 colorimetry
1:The color space conversion uses the 709 colorimetry
0:The color space converter assumes Cb/Cr use offset binary representation
1:The color space converter assumes Cb/Cr use 2s complement signed format
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
Bit field
LSB_STUFFING_MODE
ENA_HFILTER_UPDATE
WAIT_NEXT_VSYNC
Description
0:If the number of bits per component at the input is less than
8, missing LSBs are filled with 0
1:If the number of bits per component at the input is less than
8, missing LSBs are filled by the appropriate number of MSBs.
This configuration bit is used by the input formatter, in order to build the 32-bit internal pixel bus, whatever the input color format. When set, this bit preserves the full dynamic range 0.0 to
1.0, whatever the input format. Warning: The color key is affected by this setting.
0:The coefficients for the H filter are not loaded
1:The coefficients for the H filter are updated from memory
(see GDP_HFP register)
This bit is only taken into account for the first viewport node within a frame (field). As the loading always occur during a vertical blanking interval, that means GDP_CTL[31] must be
simultaneously set to 1.
0:The next node (as specified by GDP_NVN) is immediately loaded
1:The GDP must wait for the next VSync event before it loads the next node
89
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
90 Register descriptions
GDP[n]_AGC GDP alpha gain constant
0x04
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CONSTANT GAIN GLOBAL_ALPHA_1 GLOBAL_ALPHA_0
Address:
Type:
Reset value:
GDP base address + 0x04
Read / Link List Update
0
Description
The GDP alpha gain constant register provides display parameters, such as global translucency factors, black level adjustment, and dynamic range adjustment.
Field
GLOBAL_ALPHA_0 Global alpha 0 register
Description
For any color format except ARGB1555, Alpha 0 is the global transparency associated with the viewport, that will be combined with the per-pixel alpha component, if any.
For ARGB1555 color format, this is the pixel transparency that will be affected to the current pixel if the alpha bit within the pixel (bit 15) is 0.
The register range is 0 to 128. (0: fully transparent, 1:fully opaque)
GLOBAL_ALPHA_1 Global alpha 1 register
GAIN
CONSTANT
For any color format except ARGB1555, Alpha 1 register is unused.
For ARGB1555 color format, this is the pixel transparency that will be affected to the current pixel if the alpha bit within the pixel (bit 15) is 1.
The register range is 0 to 128. (0: fully transparent, 1:fully opaque)
Gain register
This 8-bit register is used to adjust the dynamic range of the RGB components at the output of the GDP block, between 0 and 100%.
A value of 128 corresponds to a 100% range
Constant register (black level)
This 8-bit register is used to adjust the black level of the RGB signal at the output of the GDP block, between 0 and 25% of the total dynamic range
(that is 10 bit, 0 to 1023)
A value of 0 sets the black level to 0%
A value of 255 sets the black level to 25%
The gain register must be consistent with the black level programmed value, otherwise some saturation effects may occur.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 91
GDP[n]_HSRC GDP horizontal sample rate converter
0x08
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
HSRC_INCREMENT
Address:
Type:
Reset value:
GDP base address + 0x08
Read / Link List Update
0
Description
The GDP horizontal sample rate converter register provides the configuration for the horizontal sample rate converter.
Field Bit(s) Description
HSRC_INCREMENT [9:0] The horizontal sample rate converter state-machine increment, in 2.8 format
HSRC_INITIAL_PHASE [18:16] The horizontal sample rate converter state-machine initial phase, 0 to 7
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
92 Register descriptions
GDP[n]_VSRC GDP vertical sample rate converter
0x20
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x20
Read / Link List Update
0
Description
The GDP vertical sample rate converter register provides the configuration for the vertical sample rate converter.
Field Bit(s) Description
VSRC_INCREMENT [9:0] The vertical sample rate converter state-machine increment, in
2.8 format
VSRC_INITIAL_PHASE [18:16] The vertical sample rate converter state-machine initial phase,
0 to 7
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 93
GDP[n]_VPO GDP viewport offset
0xC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDO XDO
Address:
Type:
Reset value:
GDP base address + 0x0C
Read / Link List Update
0
Description
The GDP viewport offset register provides the x,y location of the viewport top-left pixel, with respect to the current video timebase.
Field Bit(s) Description
XDO [11:0] X location for the first pixel of the viewport (left)
YDO [26:16] Y location for the first line of the viewport (top), with respect to frame numbering
GDP[n]_VPS GDP viewport stop
0x10
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDS XDS
Address:
Type:
Reset value:
GDP base address + 0x10
Read / Link List Update
0
Description
The GDP viewport offset register provides the x,y location of the viewport bottom-right pixel, with respect to the current video timebase.
Field Bit(s) Description
XDS [11:0] X location for the last pixel of the viewport (right)
YDS [26:16] Y location for the last line of the viewport (bottom), with respect to frame numbering
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
94 Register descriptions
GDP[n]_PML GDP pixmap memory location
0x14
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK PIXMAP_MEMORY_POINTER
Address:
Type:
Reset value:
GDP base address + 0x14
Read / Link List Update
0
Description
GDP pixmap memory location is a 32-bit register containing the memory location for the first pixel to be displayed, that is the pixel in the top-left corner.
Field Bit(s) Description
PIXMAP_MEMORY_POINTER [25:0] First pixel byte address, in the selected 64 MByte bank
(note that the whole bitmap to be displayed must be totally included into the same bank)
BANK [31:26] 64 MByte bank number
GDP[n]_PMP GDP pixmap memory pitch
0x18
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PITCH_VALUE
Address:
Type:
Reset value:
GDP base address + 0x18
Read / Link List Update
0
Description
The GDP pixmap memory pitch register contains the memory pitch for the displayed pixmap, as stored in the memory.
Field Bit(s) Description
PITCH_VALUE [15:0] Memory pitch for the displayed pixmap (Note: the pitch is the distance inside the memory, in byte unit, between two vertically adjacent pixels)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 95
GDP[n]_SIZE GDP pixmap size
0x1C
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PIXMAP_HEIGHT PIXMAP_WIDTH
Address:
Type:
Reset value:
GDP base address + 0x1C
Read / Link List Update
0
Description
The GDP pixmap size register provides the size of the displayed pixmap attached to the viewport.
Field Bit(s) Description
PIXMAP_WIDTH [10:0] Pixmap width, in pixel unit
PIXMAP_HEIGHT [26:16] Pixmap height, in line unit, being defined as the number of lines that must be read from memory for the current field in an interlaced display
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
96 Register descriptions
GDP[n]_NVN GDP next viewport node
0x24
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK NEXT_NODE_ADDRESS
Address:
Type:
Reset value:
GDP base address + 0x24
Read / Write / Link List Update
0
Description
GDP next viewport node is a 32-bit register containing a memory pointer to the next viewport node to be displayed within the link list.
The CPU writes directly into this register to enable the display link-list process to start.
Field Description
NEXT_NODE_ADDRESS These address bits are “non-essential”, because the filter coefficients structure must be aligned on a four 128-bit word boundary
BANK
Memory location for the next node to be loaded (the node must be fully contained in the specified bank.
64 MByte bank number
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 97
GDP[n]_KEY1 GDP key 1
0x28
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RCR_MIN GY_MIN BCB_MIN
Address:
Type:
Reset value:
GDP base address + 0x28
Read / Link List Update
0
Description
GDP key 1 is a 24-bit register containing the values for the lower limit of the color range to be detected when using the color key feature.
Field Bit(s) Description
BCB_MIN [7:0] Minimum value for the blue component in ARGBargb color formats
Minimum value for the Cb component in YCbCr color formats
GY_MIN [15:8] Minimum value for the green component in ARGBargb color formats
Minimum value for the luminance component in YCbCr color formats
RCR_MIN [23:16] Minimum value for the red component in ARGBargb color formats
Minimum value for the Cr component in YCbCr color formats
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
98 Register descriptions
GDP[n]_KEY2 GDP key 2
0x2C
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
RCR_MAX GY_MAX BCB_MAX
Address:
Type:
Reset value:
GDP base address + 0x2C
Read / Link List Update
0
Description
GDP key 2 is a 24-bit register containing the values for the upper limit of the color range to be detected when using the color key feature.
Field Bit(s) Description
BCB_MAX
GY_MAX
[7:0] Maximum value for the blue component in ARGBargb color formats
Maximum value for the Cb component in YCbCr color formats
[15:8] Maximum value for the green component in ARGBargb color formats
Maximum value for the luminance component in YCbCr color formats
R/CR_MAX [23:16] Maximum value for the red component in ARGBargb color formats
Maximum value for the Cr component in YCbCr color formats
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 99
GDP[n]_HFP GDP horizontal filter pointer
0x30
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK H_FILTER_POINTER
Address:
Type:
Reset value:
GDP base address + 0x30
Read / Link List Update
0
Description
GDP horizontal filter pointer is a 32-bit register containing a memory pointer to the set of filter coefficients that must be used for the horizontal sample rate converter.
Though this register is part of the viewport node, the filter coefficients loading operation only occurs during a vertical blanking interval, if the associated enable bit in the GDP_CTL register is set to 1. This means that all the viewports share the same filter coefficients.
Field Description
H_FILTER_POINTER These address bits are “non-essential”, because the filter coefficients structure must be aligned on a four 128-bit words boundary
BANK
Memory location for the next node to be loaded (the node must be fully contained in the specified bank.
64 MByte bank number
0x40
GDP_HFC0 GDP HF coefficient register 1
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x40
Read / Link List update
0
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
100 Register descriptions
0x44
GDP_HFC1 GDP HF coefficient register 2
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x44
Read / Link List update
0
GDP_HFC2 GDP HF coefficient register 3
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x48
Address:
Type:
Reset value:
GDP base address + 0x48
Read / Link List update
0
GDP_HFC3 GDP HF coefficient register 4
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x4C
Address:
Type:
Reset value:
GDP base address + 0x4C
Read / Link List update
0
0x50
GDP_HFC4 GDP HF coefficient register 5
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x50
Read / Link List update
0
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 101
0x54
GDP_HFC5 GDP HF coefficient register 6
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x54
Read / Link List update
0
GDP_HFC6 GDP HF coefficient register 7
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x58
Address:
Type:
Reset value:
GDP base address + 0x58
Read / Link List update
0
GDP_HFC7 GDP HF coefficient register 8
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x5C
Address:
Type:
Reset value:
GDP base address + 0x5c
Read / Link List update
0
0x60
GDP_HFC8 GDP HF coefficient register 9
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x60
Read / Link List update
0
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
102 Register descriptions
0x64
GDP_HFC9 GDP HF coefficient register 10
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
GDP base address + 0x64
Read / Link List update
0
GDP[n]_PKZ GDP maximum packet size
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xFC
Address:
Type:
Reset value:
GDP base address + 0xFC
Read / Write
0
Description
GDP maximum packet size is a 3-bit register for controlling the maximum size of a data packet during a SuperHyway transaction.
Field
PACKET_SIZE
Bit(s)
[2:0]
Description
Maximum packet size during an SuperHyway transaction
000: Message size
001: 16 SuperHyway words
010: 8 SuperHyway words
011: 4 SuperHyway words
100: 2 SuperHyway words
101: 1 SuperHyway words
This is a static register.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Triple video
DAC interface
3
3.1 Overview
The DAC register interfaces control the source of data to the video DACs as either
RGB, composite (CVBS) or from CPU accessible test registers.
In normal operation the DACs take their digital input from the DENC digital RGB or composite (CVBS) output streams.
For test and debug purposes the CPU can write data to each of the DACs. The test software must set DENC_DAC_IF.CONTROL[ N ].REG_EN
. It should next write the
DENC_DAC_IF.CONTROL.CLK
bit low, high then low to clock data from the
DENC_DAC_IF.DATA[ N ] register into the DAC.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
104 Address map
3.2 Address map
shows the address map of the DAC registers.
Register name Description
DENC_DAC_IF.VCR
Version control register, see
Section 3.3.1: DENC_DAC_IF.VCR
DENC_DAC_IF.CONTROL1
DAC interface control register 1, see
DENC_DAC_IF.CONTROL[n] on page 106
DENC_DAC_IF.DATA1
DAC CPU interface data register 1, see
DENC_DAC_IF.DATA[n] on page 108
DENC_DAC_IF.CONTROL2
DAC interface control register 2, see
DENC_DAC_IF.CONTROL[n] on page 106
DENC_DAC_IF.DATA2
DAC CPU interface data register
DENC_DAC_IF.DATA[n] on page 108
DENC_DAC_IF_TIMING Minimum NUMBEr of cycles allowed between falling edges of the NOTCS signal to the
DENC, see
DENC_DAC_IF.TIMING on page 109
Table 6: Address map
RO
RW
RW
RW
RW
RW
Type
Address offset
0x000
Access size
32
0x010
0x018
0x020
0x028
0x800
32
32
32
32
4
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
3.3 Register descriptions
3.3.1 DENC_DAC_IF.VCR
DENC_DAC_IF.VCR
is the version control register for the DAC unit.
DENC_DAC_IF.VCR
Field Bits Size
MVERS 16-31 16 operation
Read
Write
HARD reset
0x000
Volatile Synopsis no Module version
Used to indicate module version number
RO
Returns 0x0000 ignored
0
Type
105
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
106 Register descriptions
3.3.2 DENC_DAC_IF.CONTROL[n]
DENC_DAC_IF.CONTROL[ N } is the DAC interface control register.
DENC_DAC_IF.CONTROL[n] where n= 1 or 2
Field
REG_EN 0
Bits
1
Size
ENABLE 1
SET operation read write hard reset operation read write hard reset
2 operation read write hard reset
1
1
0x0[n]0
Volatile Synopsis Type no Enable register access to DAC
RW
If bit set then DAC inputs from the register interface, if not set then DAC inputs from DENC.
returns current value updates current value
0 no DAC ENABLE RW
This bit is driven to the DAC enable pin when REG_EN bit is set returns current value updates current value
0 no DAC SET RW
This bit is driven to the DAC set pin when REG_EN bit is set returns current value updates current value
0
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 107
DENC_DAC_IF.CONTROL[n] where n= 1 or 2
Field Bits
RESET
CLK
3 operation read write
1 hard reset
4 1 operation read write hard reset
COMPO 5 1
Size operation read write hard reset
0x0[n]0
Volatile Synopsis Type no DAC RESET RW
This bit is driven to the DAC reset pin when REG_EN bit is set returns current value updates current value
0 no DAC CLK RW
This bit is driven to the DAC clock pin when REG_EN bit is set returns current value updates current value
0 no DAC inputs from
RGB/YUV or CVBS
RW
This bit selects between the RGB/YUV and the CVBS outputs from the DENC to the DAC.
1: CVBS composite input
0: RGB/YUV input returns current value updates current value
0
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
108 Register descriptions
3.3.3 DENC_DAC_IF.DATA[n]
DENC_DAC_IF.DATA[ N ] is the DAC CPU interface data register.
DENC_DAC_IF.DATA[n] where n = 1 or 2
Field Bits Size
UPIN_DATA 0-9 operation
10
VPIN_DATA
WPIN_DAT
A read write hard reset
10-19 operation read write hard reset
20-29 operation read write hard reset
10
10
0x0[n]8
Volatile Synopsis no DAC YDATA
This is driven to DAC YDATA when REG_EN in
DAC.CONTROL is set returns current value updates current value
0 no DAC UDATA
This is driven to DAC UDATA when REG_EN in
DAC.CONTROL is set returns current value updates current value
0 no DAC VDATA
This is driven to DAC VDATA when REG_EN in
DAC.CONTROL is set returns current value updates current value
0
Type
RW
RW
RW
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 109
3.3.4 DENC_DAC_IF.TIMING
DENC_DAC_IF.TIMING
is the DAC timing register.
DENC_DAC_IF.TIMING
0x800
Field
VSG_DENC
_TIMING
Bits Size Volatile
[0:3] 4 operation read write hard reset
Synopsis Type
No Minimum cycles between falling edges of NOTCS signal
RW
Determines the minimum number of cycles allowed between falling edges of the NOTCS signal to the DENC
The DENC documentation specifies 80 ns, which is more than 8.9 clock cycles at 111 MHz.
0000: Reserved
0001: 5 cycles delay
0010: 6 cycles delay
0011: 7 cycles delay
0100: 8 cycles delay
0101: 9 cycles delay
0110: 10 cycles delay
0111: 11 cycles delay
1000: 12 cycles delay
1001: 13 cycles delay
1010: 14 cycles delay
1011: 15 cycles delay
1100: 16 cycles delay
1101: 17 cycles delay
1110: 18 cycles delay
1111: 19 cycles delay
Returns current value
Updates current value
0110
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
110
PRELIMINARY DATA
Register descriptions
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Digital encoder
(DENC)
4
4.1 Overview
The digital encoder (DENC) is a high performance PAL/SECAM/NTSC digital encoder. It converts a 4:2:2 or 4:4:4 digital video stream into a standard analog baseband PAL/SECAM/NTSC signal and into RGB and YPrPb (also known as YUV) analog components.
It can handle interlaced mode (in all standards) and non-interlaced mode in PAL and NTSC. It can perform closed-captions, CGMS, WSS, VPS and teletext encoding and allows Macrovision
7.01/6.1 copy protection. Six analog output pins are available, on which it is possible to output either S-VHS(Y/C)+ CVBS+ RGB or
S-VHS(Y/C)+ CVBS+ Pr+ Y+ Pb or Y1+ C1+ CVBS1+ C2+ Y2+ CVBS2.
The encoder can operate in master mode or in one of several slave modes, where it locks onto incoming synchronous signals. An autotest mode is also provided.
The main functions are controlled using an 8-bit register interface with the CPU.
The registers are described at the end of this chapter.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
112 Features
4.2 Features
• NTSC-M, PAL-BDGHI, N, M, SECAM plus NTSC-4.43 encoding
• 6 simultaneous analog outputs through 10-bit DACs:
S-VHS (Y/C) + CVBS + RGB,
Y1 + C + CVBS + Pr + Y2+ Pb,
Y1 + C1 + CVBS1+ C2 + Y2 + CVBS2
• Macrovision
TM
7.01/6.1 copy protection process in NTSC, PAL and SECAM
• closed captioning, CGMS, WSS, VPS encoding and teletext encoding with included sequencer and shaping
• dual mode ITU-R(CCIR)601/square pixel encoding in PAL and NTSC (except in
SECAM)
• digital line and frame sync input/output (ODDEV/ VSYNC ), programmable polarity and relative position
• digital line or frame sync extraction from ITU-R/CCIR656 / D1 data
• master operation mode, plus 6 slave modes
• programmable access via parallel port
• 4:4:4 input can be encoded on both RGB(YPrPb) and CVBS(S-VHS) outputs
(programmable)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map 113
Register name
DEN_CFG0
DEN_CFG1
DEN_CFG2
DEN_CFG3
DEN_CFG4
DEN_CFG5
DEN_CFG6
DEN_CFG7
DEN_CFG8
DEN_STA
DEN_IDFS[1:3]
4.3 Address map
DEN_PDFS[1:2]
DEN_WSS[1:2]
DEN_DAC13
Description
Configuration register 0, see
Configuration register 1, see
Configuration register 2, see
Configuration register 3, see
Configuration register 4, see
Configuration register 5, see
Configuration register 6, see
Configuration register 7, see
Configuration register 8, see
Status, see
Increment for digital frequency synthesizer, see DEN_IDFS[1:3] on page 174
Static phase offset for digital frequency synthesizer, see
WSS data registers, see
DAC1 and DAC3 multiplying factors, see
Table 7: Address map
Type Address offset
RW 0x000
Access size
32
RW
RW
RW
RW
RW
RW
RW
RW
RO
RW
RW
RW
RW
0x008
0x010
0x018
0x020
0x028
0x030
0x038
0x040
0x048
0x050, 0x058,
0x060
0x068, 0x070
0x078, 0x080
0x088
32
32
32
32
32
32
32
32
32
32
32
32
32
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
114 Address map
Register name
DEN_DAC45
DEN_DAC6C
Reserved
DEN_CID
DEN_VPS[1:6]
DEN_CGMS[1:3]
DEN_TTX[1:5]
DEN_CCF1
DEN_CCF2
DEN_CLF1
DEN_CLF2
Reserved
DEN_REG_64
Description Type Address offset
RW 0x090
Access size
32 DAC4 and DAC5 multiplying factors, see
DAC6 and C multiplying factors, see
RW 0x098 32
RW
0x0A0, 0x0A8,
0x0B0, 0x0B8
0x0C0
-
32 DENC version identification number, see
DEN_CID on page 183
VPS data registers, see
RW 32
CGMS data registers (20 bits only), see
Teletext block definition, see
RW
RW
0x0C8, 0x0D0,
0x0D8, 0x0E0,
0x0E8, 0x0F0
0x0F8, 0x100,
0x108
0x110, 0x118,
0x120, 0x128,
0x130
0x138, 0x140
32
32
32 Closed caption characters extended data for field 1, see DEN_CCF1 on page 187
Closed caption characters extended data for field 2, see
Closed caption extended data line insertion for field 1, see
Closed caption extended data line insertion for field 2, see
RW
RW
RW
RW
0x148, 0x150
0x158
0x160
32
32
32
RW
0x168 to 0x1F8 -
0x200 32 Teletext configuration, see
Table 7: Address map
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Address map 115
Register name
DEN_REG_65
Reserved
DEN_REG_69
DEN_REG_70
DEN_REG_71
DEN_CFCOEF[0:8]
DEN_CFG9
DEN_LFCOEF[0:9]
Description
DAC2 multiplying factors, teletext mask and brightness, contrast and saturation control, see
Type Address offset
RW 0x208
Access size
32
RW
0x210 to 0x220 -
0x228 32 Brightness, see
Contrast, see
Saturation, see
Chroma filter coefficient, see
RW
RW
RW
0x230
0x238
32
32
32 0x240, 0x248,
0x250, 0x258,
0x260, 0x268,
0x270, 0x278,
0x280
0x288 32 Chroma delay and luma filter control, see
Luma coefficient, see
RW
RW 0x290, 0x298,
0x2A0, 0x2A8,
0x2B0, 0x2B8,
0x2C0, 0x2C8,
0x2D0, 0x2D8
32
Table 7: Address map
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
116 Video timing
4.4 Video timing
The burst sequences are internally generated, subcarrier generation being performed numerically with CKREF, the principal DENC clock, as reference.
4-frame bursts are generated for PAL or 2-frame bursts for NTSC. Rise and fall times of synchronization tips and burst envelope are internally controlled according to the relevant ITU-R and SMPTE recommendations. The 6-frame subcarrier phase sequence is generated in SECAM (see
Section 4.10: Subcarrier insertion (SECAM) on page 137 ).
,
Figure 31 and Figure 32 depict typical
vertical blanking interval (VBI) waveforms.
It is possible to encode incoming YCrCb data on those lines of the VBI that do not bear line synchronization, pre-equalization or post-equalization pulses (see Figures
,
and
Figure 31 ). This mode of operation is
referred to as partial blanking and is the default set-up. It allows the encoded waveform to keep any VBI data present in digitized form in the incoming YCrCb stream (for example supplementary closed-caption lines or StarSight data). In
SECAM mode, only Y data are encoded, Cr and Cb are ignored. Alternatively, the complete VBI may be fully blanked, so no incoming YCrCb data is encoded on these lines. Full or partial blanking is set by register bit DEN_CFG1.BLKLI
.
For 525/60 systems, with the SMPTE line numbering convention:
• complete VBI consists of lines one to nineteen and the second half of lines 263 to
282,
• partial VBI consists of lines one to nine and the second half of lines 263 to 272,
• line 282 is either fully blanked or fully active.
For 625/50 systems, with the CCIR line numbering convention:
• complete VBI consists of the second half of lines 623 to 22 and lines 311 to 335,
• partial VBI consists of the second half of lines 623 to 5 and lines 311 to 318,
• line 23 is always fully active.
In an ITU-R656-compliant digital TV line, the active portion of the digital line is the portion included between the start of active video (SAV) and end of active video
(EAV) words. However, this digital active line starts somewhat earlier and may end slightly later than the active line usually defined by analog standards.
The DENC allows two approaches.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Video timing 117
• Encode the full digital line (720 pixels / 1440 clock cycles). In this case, the output waveform will reflect the full YCrCb stream included between SAV and
EAV.
• Drop some YCrCb samples at the extremities of the digital line so that the encoded analog line fits within the analog ITU-R/SMPTE specifications.
In all cases, the transitions between horizontal blanking and active video are shaped to avoid too steep edges within the active video.
gives typical timings concerning the horizontal blanking interval and the active video interval.
The burst envelope shown indicates the location from which the first subcarrier positive zero crossing is sought (with respect to the 0
H always starts with a positive zero crossing.
reference). The normal burst
0H
NTSC, PAL M
PAL B, G, H, I, N
SECAM
4T
E
A
V
128T
137T
146T (PAL M)
128T
151T (145T in SECAM)
4T
S
A
V
1716T
1728T
1440T
Digital active line
1440T
Digital active line
E
A
V
Square pixel
525 / 60 system
115T
131T
1560T
1280T
Digital active line
Square pixel
625 / 50 system
139T
1536T
Digital active line
1888T
169T
T = clock period
PAL, NTSC and SECAM: 37.037 ns
Square pixel PAL: 33.898 ns
Square pixel NTSC: 40.75 ns
Figure 25: Input data format (ITU-R656 /D1 4:2:2)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
118
PRELIMINARY DATA
Video timing
The diagrams in
Figure 26 are valid when the contents of the delay and
synchro-delay register fields are set to the default values.
If on-the-fly format changing is required, clock switching must be synchronized onto the start of frame as shown in the waveforms in the diagram. Internally, the
DEN_CFG7.SQPIX
and DEN_CFG2.NINTRL
bits update is taken into account on the beginning of a new frame.
Master mode
ODDEVEN
(output)
CKREF
HSYNC
(output)
Field2
Slave mode by ODDEVEN and HSYNC
ODDEVEN
(input)
HSYNC
(input)
CKREF
Field1
Field1
Slave mode by ODDEVEN only
ODDEVEN
(input)
CKREF
Field1
Clock period change if square pixel mode switch
Update of SQPIX and NINTRL bits
Clock period change if square pixel mode switch
Update of SQPIX and NINTRL bits
Clock period change if square pixel mode switch
Update of SQPIX and NINTRL bits
Figure 26: Square pixel and/or non-interlaced mode switch
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Video timing 119
0
V
A B
IV
308 309 310 311 312 313 314
Partial VBI1
315
Full VBI1
I
316 317 318 319
A
320
621 622 623 624 625 1 2 3
Partial VBI2
Full VBI2
II
4 5 6
A
7 22 23
308 309 310 311 312 313 314
III
315 316 317 318
A
317
B
335 336
C
621 622 623 624 625 1
I
2
II
III
IV
0
V
:
I, II, III, IV :
A :
B :
C :
Frame synchronization reference
1 st and 5 th , 2 nd and 6 th , 3 rd and 7 th , 4 th and 8 th fields
Burst phase : nominal value +135°
Burst phase : nominal value -135°
Burst suppression internal
3 4 5 6 7 8
Figure 27: PAL-BDGHI, PAL-N typical VBI waveform, interlaced mode (ITU-R625 line numbering)
Full VBI
Partial VBI
A B
0
V
308 309
Burst phase toggles every line
310 311 312 1 2 3 4 5 6 7 8 22
Figure 28: PAL-BDGHI, PAL-N typical VBI waveform, non-interlaced mode (CCIR-like line numbering)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
120 Video timing
1 2 3 4
Partial VBI1
5 6
Full VBI1
7 8 9 10
262 263 264
H
265 266
H
Partial VBI2
267 268 269
Full VBI2
270 271
0.5H
272 273
0.5H
525 1 2 3 4 5 6 7
VBI3
8
H
9
H
10
18 19
H
282
18 19
263 264 265 266 267 268 269
VBI4
270 271 272 273 282
Figure 29: NTSC-M typical VBI waveforms, interlaced mode (SMPTE-525 line numbering)
262 1
3H
2 3 4
Partial VBI
3H
5 6 7
Full VBI
3H
8 9 10 18 19
H H H 0.5H
H
Figure 30: NTSC-M typical VBI waveforms, non-interlaced mode (SMPTE-like line numbering)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Video timing 121
F' F F' F
Partial VBI1
I
Full VBI1
0
V
519
F
520
F'
521
F
522 523 524 525 1 2
Partial VBI2
II
3
Full VBI2
4 5 6
A B
7 8
A
9
B
16 17
F
257
F'
258
F
259 260 261 262 263 264 265
III
266 267 268 269 270
A
271 279
B
280
519
F'
520
F
521 522 523 524 525 1 2
IV
3 4 5 6 7
A
8
B
9
C
257 258 259 260 261 262 263 264
I
II
III
IV
265 266 267 268 269 270 271 272
0
V
:
I, II, III, IV :
A :
B :
C :
Frame synchronization reference
1 st and 5 th , 2 nd and 6 th , 3 rd and 7 th , 4 th and 8 th fields
Burst phase : nominal value +135°
Burst phase : nominal value -135°
Burst suppression internal
Figure 31: PAL-M typical VBI waveforms, interlaced mode (ITU-R/CCIR-525 line numbering)
Full VBI
0
V
256 257
Burst phase toggles every line
258 259 260 261 262 1
Partial VBI
2 3 4 5 6 7 8
A B
9 10 16 17
Figure 32: PAL-M typical VBI waveforms, non-interlaced mode (ITU-R/CCIR-like line numbering)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
122 Video timing
Horizontal blanking interval d
Active video b1 (bit aline = 0)
0H b2 (bit aline = 1) a
Full digital line encoding
(720 pixels - 1440 T)
‘Analog’ line encoding c1 (bit aline = 0) c2 (bit aline = 1)
Figure 33: Horizontal blanking interval and active video timings b1 b2 c1 c2 d a
A
NTSC-M
5.38
µ s (even lines)
5.52
µ s (odd lines)
1.56
µ s
1.56
µ s
8.8
µ s
9.41
µ s
PAL-BDGHI
5.54
5.66
1.3
µ
µ
µ s s (A-type) s (B-type)
1.52
µ s
9.6
µ s
10.48
µ s
9 cycles of 3.58MHz
10 cycles of
4.43MHz
PAL-N
5.54
µ s (A-type)
5.66
µ s (B-type)
1.3
µ s
1.52
µ s
9.6
µ s
10.48
µ s
9 cycles of
3.58MHz
PAL-M
5.73
µ s (A-type)
5.87
µ s (B-type)
1.56
µ s
1.56
µ s
8.8
µ s
9.41
µ s
9 cycles of
3.58MHz
SECAM
5.60
µ s
-
1.0
µ s
1.52
µ s
9.9
µ s
10.48
µ s
Table 8: Typical timing values from
A. These are typical values, actual values will depend of the static offset programmed for subcarrier generation.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Reset procedure 123
4.5 Reset procedure
A hardware reset sets the DENC in HSYNC and ODDEVEN (line-based sync) slave mode. NTSC-M, interlaced ITU-R601 encoding, closed-captioning, WSS, VPS, teletext and CGMS encoding are all disabled.
The configuration can then be customized by writing into the appropriate registers.
A few registers are never reset, their contents are unknown until the first loading
(see
Section 4.22: Register descriptions on page 158 ).
It is also possible to perform a software reset by setting the seventh bit in the
DEN_CFG6 register. The device responds in a similar way as after a hardware reset except that the configuration registers and a few other registers are not altered.
4.6 Slave modes
4.6.1 Introduction
The following slave modes are available:
• ODDEVEN (VSYNC)+HSYNC based (line-based sync),
• ODDEVEN (VSYNC) only based (frame-based sync),
• sync-in-data based (line locked or frame locked).
ODDEVEN refers to an ODDEVEN field flag, also known as BOTTOMTOP .
HSYNC is a line sync signal and VSYNC is a vertical synchronous signal. Their waveforms are depicted in
HSYNC and ODDEVEN (VSYNC) are independently programmable in all slave modes. In all slave modes, ODDEVEN
(VSYNC) and HSYNC signals must be related to CKREF , the principal DENC clock.
In other words, there is no genlocking performed by the DENC.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
124 Slave modes
4.6.2 Line-based synchronization
ODDEVEN+HSYNC based synchronization
Synchronization is performed on a line-by-line basis by locking onto incoming
ODDEVEN and HSYNC signals. Refer to
Figure 34 for waveforms and timings. The
polarities of the active edges of HSYNC and ODDEVEN are programmable and independent. The first active edge of ODDEVEN initializes the internal line counter but encoding of the first line does not start until an HSYNC active edge is detected
(at the earliest, an HSYNC transition may be at the same time as ODDEVEN ). At that point, the internal sample counter is initialized and encoding of the first line starts. Then, encoding of each subsequent line is individually triggered by HSYNC active edges. The phase relationship between HSYNC and the incoming YCrCb data is normally such that the first clock rising edge following the HSYNC active edge samples Cb (that is a blue chroma sample within the YCrCb stream). It is however possible to internally delay the incoming synchronous signals ( HSYNC and
ODDEVEN) by up to three clock cycles to cope with different data/sync phases, using configuration bits DEN_CFG4.SYNCIN_AD
. The DENC is thus fully slaved to the HSYNC signal, which means that lines may contain more or less samples than usual.
• If the digital line is shorter than its nominal value, the sample counter is re-initialized when the early HSYNC arrives and all internal synchronization signals are re-initialized.
• If the digital line is longer than its nominal value, the sample counter is stopped when it reaches its nominal end-of-line value and waits for the late HSYNC before re-initializing.
DEN_CFG4.SYNCIN_AD[1:0] are set to the default.
CKREF
ODDEVEN (in)
HSYNC (in)
Active edge (programmable polarity)
Active edge (programmable polarity)
YCrCb Cb Y Cr Y'
Figure 34: HSYNC + ODDEVEN based slave mode synchronous signals
Cb
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Slave modes 125
HSYNC+VSYNC based synchronization
Synchronization is performed on a line-by-line basis by locking onto incoming
VSYNC and HSYNC signals. Refer to
Figure 36 for waveforms and timings. The
polarities of HSYNC and VSYNC are programmable and independent.
The incoming VSYNC signal is immediately transformed into a waveform identical to the odd/even waveform of an ODDEVEN signal, therefore, the behavior with this synchronization is identical to that described above for ODDEVEN + HSYNC based synchronization. Again, the phase relationship between HSYNC and the incoming
YCrCb data is normally such that the first clock rising edge following the HSYNC active edge samples Cb (that is a blue chroma sample within the YCrCb stream). It is however possible to internally delay the incoming synchronous signals
( HSYNC + VSYNC ) by up to three clock cycles to cope with different data or synchronous phasing, using configuration bits DEN_CFG4.SYNCIN_AD
.
4.6.3 Frame-based synchronization
Genlocking using external sync extraction
The genlock slave mode is used when the OSD (generated externally to the DENC and output via RGB outputs) is mixed with analog video from which the vertical and horizontal synchronization signals are extracted by ROHM’s BA7046.
A software-based control loop locks the 27 MHz system clock to the analog video signal. The vertical synchronous signal from the ROHM sync extractor is connected to a capture port on the mother device (for example STi55xx) and generates an equivalent of the programmable clock reference (PCR) for the analog signal. The
ST40 controls an external VCXO through a PCM output port.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
126 Slave modes
Voltage controlled oscillator
27 MHz mother device
(e.g. STi55xx)
PWM
HSYNC (internal)
To the display
Time-base generator
DENC
Genlock module
ODDEVEN
R
G
B
Capture port
Analog video
SYNC extractor
(ROHM)
CVBS
OSD active
(fast switch)
R
G
B
R
CVBS
Figure 35: Genlock system using a SCART
VDSYNC and HDSYNC signals are provided by the external ROHM sync extractor
(BA7046). The DENC regenerates the signal ODDEVEN (the device internal vertical synchronization signal) from these inputs by locking onto VDSYNC with the internal clock.
HSYNC is generated internally by the sample counter and is not locked to HDSYNC . These HSYNC and ODDEVEN signals are then used inside the
DENC and are also output to drive display and video parts of the device. The DENC behaves in the same way as for ODDEVEN-only based synchronization, see
ODDEVEN-only based synchronization on page 127 . Register
DEN_CFG0 should be programmed as for ODDEVEN -only based synchronization.
The polarities of HSYNC and ODDEVEN are programmable and independent.
VDSYNC and HDSYNC are both falling edge active.
The DENC analog RGB output is delayed by one line vertically and by 25 pixels horizontally, compared to the analog video source. This must be taken into account for OSD, YDO and XDO programming. Refer to register DEN_CFG7 for genlock mode programming.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Slave modes 127
ODDEVEN-only based synchronization
Synchronization is performed on a frame-by-frame basis by locking onto an incoming ODDEVEN signal. A line sync signal is derived internally and is also issued to the outside as HSYNC . Refer to
for waveforms and timings. The phase relationship between ODDEVEN and the incoming YCrCb data is normally such that the first clock rising edge following the ODDEVEN active edge samples Cb
(that is a blue chroma sample within the YCrCb stream). It is however possible to internally delay the incoming ODDEVEN signal by up to three clock cycles to cope with different data/sync phasing, using configuration bits DEN_CFG4.SYNCIN_AD
.
SYNCIN_AD[1:0] are set to the default.
CKREF
VSYNC (in)
Active edge (programmable polarity)
Active edge (programmable polarity)
HSYNC (in)
YCrCb Cb Y Cr Y' Cb
Figure 36: HSYNC and VSYNC based slave mode synchronous signals
The active edges of HSYNC and VSYNC should normally be simultaneous. It is permissible that HSYNC transitions before VSYNC , but VSYNC must not transition before HSYNC .
SYNCIN_AD[1:0] are set to the default.
CKREF
ODDEVEN (in)
YCrCb Cb Y Cr
Figure 37: ODDEVEN-based slave mode synchronous signals
Y’
ADCS 7225754C
Cb
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
128
PRELIMINARY DATA
Slave modes
The first active edge of ODDEVEN triggers generation of the analog synchronous signals and encoding of the incoming video data. Frames being supposed to be of constant duration, the next ODDEVEN active transition is expected at a precise time after the last ODDEVEN detected.
So, once an active ODDEVEN edge has been detected, checks that the following
ODDEVEN are present at the expected instants are performed.
Encoding and analog sync generation carry on unless three successive fails of these checks occur.
In that case, three behaviors are possible, according to the configuration programmed in registers DEN_CFG[1:2] .
• If FREERUN is enabled, the DENC carries on outputting the digital line sync
HSYNC and generating analog video just as though the expected ODDEVEN edge had been present. However, it will re-synchronize onto the next ODDEVEN active edge detected, whatever its location.
• If FREERUN is disabled but bit SYNCOK is set in the configuration registers, the
DENC sets the active portion of the TV line to black level but carries on outputting the analog sync tips (on Ys and CVBS) and the digital line sync signal
HSYNC . When programmed, Macrovision
TM
pseudosynchronous pulses and
AGC pulses are also present in the analog sync waveform.
• If FREERUN is disabled and bit SYNCOK is not set, all analog video is at black level and neither analog sync tips nor digital line sync are output.
This mode is a frame-based sync mode, as opposed to a field-based sync mode. This means that only one type of edge (rising or falling, according to programming) is of interest to the DENC. The other one is ignored.
VSYNC-only based synchronization
Synchronization is performed on a frame-by-frame basis by locking onto an incoming VSYNC signal.
An auxiliary line sync signal HSYNC must also be fed to the DENC, which uses it to reconstruct from VSYNC and HSYNC information an internal odd/even waveform identical to that of an ODDEVEN signal. Therefore, the behavior with this synchronization is identical to that described above for ODDEVEN -only based synchronization (except that nothing is output on the HSYNC pin since it is an input port in this mode).
Note that HSYNC is an input but has no other use than allowing the DENC to decide whether an incoming VSYNC pulse flags an odd or an even field. In other
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Slave modes 129 words, the DENC does not lock onto HSYNC in this mode since this is not a line-locked mode.
The phase relationship between VSYNC and the incoming YCrCb data is normally such that the first clock rising edge following the VSYNC active edge samples Cb
(that is a blue chroma sample within the YCrCb stream). It is however possible to internally delay the incoming synchronous signals ( VSYNC and HSYNC ) by up to three clock cycles to cope with different data/sync phasing, using configuration bits
DEN_CFG4.SYNCIN_AD
.
CKREF
YCrCb
FF 00
EAV
00
ODDEV
(out)
HSYNC
(out)
B6 Cb Y
46TCLKREF
1TCLKREF
HSYNC duration = 128 TCLKREF
Figure 38: Data-based (EAV) slave mode synchronous signals
4.6.4 Sync-in-data based synchronization
End-of-frame word-based synchronization
Synchronization is performed by extracting the 1 to 0 transitions of the end of frame flag (F flag) from the end of active video (EAV) sequence embedded within
ITU-R656/D1 compliant digital video streams. Both a frame sync signal and a line sync signal are derived and are made available externally as ODDEVEN and
HSYNC . Refer to
Figure 38 for waveforms and timings.
The first successful detection of the F flag triggers generation of the analog synchronous signals and encoding of the incoming video data. Because frames are of constant duration, the next EAV word containing the F flag is expected at a precise time after the latest detection.
So, once an active F flag has been detected, checks that the following flags are present at the expected times within the incoming video stream are performed.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
130
PRELIMINARY DATA
Slave modes
Encoding and analog sync generation carry on unless there are three successive fails of these checks. Then, depending on the programmed configuration, one of the following three events occurs:
• If DEN_CONF0.FREE-RUN is enabled, the DENC carries on generating the digital frame and line syncs (ODDEV and HSYNC ) and generating analog video just as though the expected F flag were present. However, it will re-synchronize onto the next F flag detected within the incoming ITU-R656/D1 video stream.
• If FREE-RUN is disabled but the bit DEN_CONF0.SYNCOK
is set in the configuration registers, the DENC sets the active portion of the TV line to black level but carries on outputting the analog sync tips (on Ys and CVBS) and the digital frame and line sync signals ODDEVEN and HSYNC . (When programmed,
Macrovision
TM
pseudosynchronous pulses and AGC pulses are also present in the analog sync waveform).
• If FREE-RUN is disabled and the bit SYNCOK is not set, all analog video is at black level and neither analog sync tips nor digital frame/line sync are output.
The SAV and EAV words are Hamming-decoded.
After detection of two successive errors, a bit is set in the status register to inform the microcontroller of the poor transmission quality.
End-of-line word-based synchronization
Synchronization is performed by extracting the F and H flags from the start of active video (SAV) and end of active video (EAV) words embedded within ITU-R656/
D1 compliant digital video streams. A line sync signal and a frame sync signal are derived from these flags and are issued to the outside on the HSYNC and ODDEVEN /
VSYNC pins in output mode. These signals are also used by the DENC, which treats them as incoming ODDEVEN and HSYNC signals in HSYNC and ODDEVEN based synchronization.
Autotest mode
An autotest mode is available, which causes the DENC to produce a color bar pattern, in the appropriate standard, independently from the video input.
The autotest mode is started by setting the 3-bit field SYNC in the register
DEN_CFG0 to seven. As this mode sets the DENC in master mode, VSYNC ,
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Slave modes 131
ODDEVEN and HSYNC signals are in output mode. In
Table 9 , the decimal values of
Y, Cr and Cb are shown corresponding to the autotest color bar.
Black
Blue
Red
Magenta
Green
Cyan
Yellow
White
112
136
160
236
16
36
64
84
Y
128
116
212
200
56
44
140
128
Cr
Table 9: Autotest colors
Cb
72
156
44
128
128
212
100
184
The corresponding decimal output values just before the DACs are shown in
. Both figures show the static values corresponding to the input values in
800
Blank level 240
Black
Sync level
608
546
486
414
362
290
240
Black
16
Figure 39: Luminance output levels in autotest for NTSC without set-up
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
132 Input demultiplexor
816
Blank level 256
Black
Sync level
624
562
502
430
378
306
256
Black
16
Figure 40: Luminance output levels in autotest for PAL (BGHI) and SECAM
4.7 Input demultiplexor
The incoming YCrCb data, as well as Y4 and CrCb in 4:4:4 mode, is demultiplexed into a blue-difference chroma information stream, a red-difference chroma information stream and a luma information stream. Incoming data bits are treated as blue, red or luma samples according to their relative position with respect to the synchronous signals in use and the contents of configuration bits
DEN_CFG4.SYNCIN_AD
(slave modes) or DEN_CFG4.SYNCOUT_AD
(master mode). Brightness, saturation and contrast are then performed on demultiplexed data, refer to registers DEN_REG_69 , DEN_REG_70 and DEN_REG_71 .
The ITU-R601 recommendation defines the black luma level as Y = 16 and the maximum white luma level as Y = 235. Similarly, it defines 225 quantification levels for the color difference components (Cr, Cb), centered around 128. After the saturation, brightness and contrast stage, the incoming YCrCB samples can be saturated in the input multiplexer with the following rules:
• for Cr or Cb samples:
Cr,Cb > 240 => Cr,Cb saturated at 240,
Cr,Cb < 16 => Cr,Cb saturated at 16,
• for Y samples:
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Subcarrier generation 133
Y > 235 => Y saturated at 235,
Y < 16 => Y saturated at 16.
Using the input multiplexor ensures there are no overflow errors in the codes driving the DACs. Overflow errors occur if erroneous or unrealistic YCrCb samples are input to the encoder. Usually this is avoided by heavily saturating the composite video codes before analog to digital conversion, but the risk is that a distorted output waveform may be generated.
However, in some applications, it may be desirable to let extreme YCrCb codes pass through the demultiplexor. This is controlled using bit MAXDYN in register
DEN_CFG6 . In this case, only codes 0x00 and 0xFF are overridden. If such codes are found in the active video samples, they are forced to 0x01 and 0xFE.
YCrCb codes are not overridden for the EAV/SAV decoder.
4.8 Subcarrier generation
A direct digital frequency synthesizer (DDFS) generates the required color subcarrier frequency using a 24-bit phase accumulator. This oscillator feeds a quadrature modulator which modulates the base-band chrominance components.
The subcarrier frequency is obtained from the following equation:
Fsc = ([ increment_word ] / 2
24
) x CKREF where increment _word is a 24-bit value.
Hard-wired increment _word values are available for each standard and can be automatically selected. Alternatively (according to bit SELRST_INC in DEN_CFG5 ), the frequency can be fully customized by programming other values into a dedicated increment word register, DEN_IDFS . This allows, for instance, the encoding of
NTSC-4.43 or PAL-M-4.43.
This is done with the following procedure.
1 In the DEN_IDFS register, program the required increment.
2 Set bit DEN_CFG5.SELRST_INC
to 1.
3 Perform a software reset using register DEN_CFG6 . This sets all bits in all
DENC registers except DEN_CFG[N] to their default value.
Alternatively, set DEN_CFG8.PH_RST_MODE[1:0] to 01 so that the frequency and phase update is done on the beginning of the next video line.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
134
PRELIMINARY DATA
Subcarrier generation
Note that if a standard change occurs after the software reset, the increment value is automatically re-initialized with the hard wired or loaded value, according to bit
SELRST .
The reset phase of the color subcarrier can also be software-controlled by register
DEN_PDFS .
The subcarrier phase can be periodically reset to its nominal value to compensate for any drift introduced by the finite accuracy of the calculations. In PAL and NTSC subcarrier phase adjustment can be performed every line, every eight fields, every four fields, or every two fields ( DEN_CFG2.VALRST[1:0] ). If SECAM is performed, the subcarrier phase is reset every line. When performing external genlocking, the reference frequency of the regenerated clock may slightly deviate depending on the line length measurement. To prevent this drift from corrupting the colors, the color frequency control line ( CFC pin) can be used to update the 24-bit increment of the
DDFS and keep the color subcarrier stable (see Figure 41 ). Note that if this feature is not used, the CFC pin must be grounded. The DENC can also detect phase reset information coming up to ten clock cycles after transmission of the CFC ’s LSB (see
DEN_CFG8.PH_RST_MODE[1:0] ). It can also automatically reset the phase after
CFC loading (see DEN_CFG8 description) .
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Subcarrier generation
PRELIMINARY DATA
24
135
24
24
Figure 41: Color subcarrier frequency control (CFC) transmission format
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
136
PRELIMINARY DATA
Burst insertion (PAL and NTSC)
4.9 Burst insertion (PAL and NTSC)
The color reference burst is inserted so as to always start with a positive zero crossing of the subcarrier sine wave. The first and last half-cycles have a reduced amplitude so that the burst envelope starts and ends smoothly.
The burst contains nine or ten sine cycles of 4.43361875 MHz or 3.579545 MHz
(depending on the standard programmed in the register DEN_CFG0 ) as follows:
• NTSC-M: 9 cycles of 3.579545 MHz,
• PAL-BDGHI: 10 cycles of 4.43361875 MHz,
• PAL-M: 9 cycles of 3.579545 MHz,
• PAL-N: 9 cycles of 3.579545 MHz.
The burst can be turned off so there is no burst insertion by setting
DEN_CFG2.BURSTEN
to 0.
Burst insertion is performed by always starting the burst with a positive-going zero crossing. This guarantees a smooth start and end of burst with a maximum of undistorted burst cycles and can only be beneficial to chroma decoders.
Burst insertion avoids an uncontrolled initial burst phase, and guarantees a start on a positive-going zero crossing so that two burst start locations are visible over successive lines, according to the line parity. This is normal and explained below.
In NTSC, in the horizontal sync the relation between subcarrier frequency and line length creates a 180 o subcarrier phase difference between lines according to the line parity. If the burst always starts with the same positive-going zero crossing phase, the burst is inserted at time X or at time X+T
NTSC
/2 after the horizontal sync tip according to the line parity, where T
NTSC
is the duration of one cycle of the NTSC burst.
With PAL, a similar rationale holds, and again there are two possible burst start locations. The subcarrier phase difference in the horizontal sync between lines is either 0 or 180 o
. Using the following series: A-A-B-B-A-A- and so on, where A denotes A-type bursts and B denotes B-type bursts A-type and B-type are 180 o out of phase with respect to the horizontal sync. So two locations are possible, one for
A-type, the other for B-type.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Subcarrier insertion (SECAM)
PRELIMINARY DATA
137
This assumes that a periodic reset of the subcarrier is automatically performed (see bits DEN_CFG2.VALRST[1:0] ). Otherwise, over several frames, the start of burst drifts within an interval of half a subcarrier’s cycle. This is normal and means the burst is correctly locked to the colors encoded. The equivalent effect with a gated burst approach is that the start location is fixed but the start phase for the horizontal sync would be drifting.
4.10 Subcarrier insertion (SECAM)
The subcarrier frequency in SECAM mode depends on Cr and Cb values (frequency modulation). The color subcarrier frequency is 4.25 MHz for Cb = 128 on blue lines and 4.406249 MHz for Cr = 128 on red lines. Frequency clipping values are 3.9 MHz and 4.75625 MHz.
The insertion point of the non-modulated subcarrier is shown in
.
cvbs
400
350
300
250
200 5.6
µ s
150
100
50
2.1
2.11
2.12
2.13
2.14
2.15
x 10
6
Figure 42: SECAM color bar pattern (blue line)
In odd fields the phase of subcarrier follows the sequence 0, 0,
π,
0, 0,
π,
0, 0,
π, and so on. This compares to a sine wave starting at the same point -5.6
µ s after the horizontal sync pulse inverted on one line out of every three and also at each frame.
The sequence begins from line 1 or line 23 of the first field, see
DEN_CFG7.GEN_SECAM
.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
138
PRELIMINARY DATA
Luminance encoding
DEN_CFG7.INV_PHI_SECAM
allows the inversion of this sequence ( π , π , 0, π , π , 0 instead of 0, 0, π , 0, 0, π ), in odd fields. In even fields the sequence of subcarrier is always inverted compared to the odd field.
To enable SECAM mode, set DEN_CFG7.SECAM
(MSB) to 1 and then perform a soft-reset or loading of DEN_CFG0 .
4.11 Luminance encoding
The demultiplexed Y samples are band-limited and interpolated at CKREF clock rate. The resulting luminance signal is properly scaled before insertion of any closed-captions, CGMS, VPS, teletext or WSS data and synchronization pulses.
The interpolation filter compensates for the sin(x) / x attenuation inherent in digital to analog conversion and greatly simplifies the output stage filter. See
,
for characteristic curves.
In addition, the luminance that is added to the chrominance to create the composite
CVBS signal can be trap-filtered at 3.58 MHz (NTSC) or 4.43 MHz (PAL). This supports applications oriented towards low-end TV sets which are subject to cross-color if the digital source has a wide luminance bandwidth (for example some
DVD sources). Note that the trap filter does not affect the S-VHS luminance output nor the RGB outputs. If SECAM is performed, enable the trap filter with 4.43 MHz cut-off frequency on the luma part of the CVBS signal using the DEN_CFG3 bits
ENTRAP and TRAP_4.43
.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Luminance encoding 139
A 7.5 IRE pedestal can be programmed if needed with all standards using registers
DEN_CFG1 and DEN_CFG7 . In particular this allows the encoding of Argentinian and non-Argentinian PAL-N, or Japanese NTSC, that is NTSC with no set-up.
0
-5
-10
-15
-20
-25
-30
-35
-40
1 2 3 4 5 6 7 8 9 10 11 12 13
Frequency (MHz)
Figure 43: Luma filtering including DAC attenuation
0
-5
-10
-15
-20
-25
-30
-35
-40
1 2 3 4 5 6 7 8 9 10 11 12 13
Frequency (MHz)
Figure 44: Luma filtering with 3.58 MHz trap, including DAC attenuation
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
140 Chrominance encoding
0
-5
-10
-15
-20
-25
-30
-35
-40
1 2 3 4 5 6 7 8 9 10 11 12 13
Frequency (MHz)
Figure 45: Luma filtering with 4.43 MHz trap, including DAC attenuation
The luma channel has a nineteenth order filter with coefficients programmable by registers DEN_LFCOEF[0:9] . This filter is described in
Section 4.12: Chrominance encoding on page 140
.
Register bit DEN_CFG9.FLT_YS
selects either the register or the hard-wired values for the filter coefficients.
The luma processing as well as line and field timings in SECAM mode are identical to PAL BDGHI.
4.12 Chrominance encoding
U, V (PAL and NTSC) and Dr, Db (SECAM) chroma components are computed from demultiplexed Cb, Cr samples. Before modulating the subcarrier, these are band-limited and interpolated at CKREF clock rate. This processing eases the filtering following digital to analog conversion and allows more accurate encoding.
A set of four different filters is available in PAL and NTSC for chroma filtering to fit a wide variety of applications in the different standards and include filters recommended by ITU-R 624-4 and SMPTE170-M.
The available 3-dB bandwidths are 1.1, 1.3, 1.6 or 1.9 MHz. See
,
Figure 51 and Figure 52 for the various frequency responses
and register DEN_CFG1 for programming. The narrower bandwidths are useful against cross-luminance artifacts, the wider bandwidths allow higher chroma contents.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Chrominance encoding 141
Alternatively, a filter with programmable coefficients (see registers
DEN_CFCOEF[0:8] ) can be used. This is necessary for clocks having frequencies of
24.545454 and 29.5 MHz in square pixel mode, or when another frequency response for a specific application is needed. The order of chroma filter is seventeen with symmetric coefficients, and this works at the same frequency as CKREF, the default being 27 MHz.
If the 4:2:2 input format is used on CVBS and S-VHS outputs, then the first upsampling by 2 repeats the samples. For example a 6.75 to 13.5 MHz sampling frequency with 27 MHz CKREF, gives 10 20 30 at 6.75 MHz and 10 10 20 20 30 30 at
13.5 MHz clock frequency. This is equivalent to filtering by cos(
π
*f/(2*fck)), where fck is the CKREF clock frequency.
The second upsampling, 13.5 to 27 MHz with 27 MHz CKREF, is done by padding with zeros.
Register bit DEN_CFCOEF0.FLT_S
selects either the register or the hard-wired values for the filter coefficients.
In SECAM, 1.3 MHz low-pass and pre-emphasis filtering are performed on Dr and
Db chroma components, before the frequency modulation according to ITU-R
Rec624-4.
Refer to
Figure 46 for the frequency response of these filters. Bell filtering is
performed at the end of the frequency modulation stage.
The peak to peak amplitude of the modulated chrominance signal at the central frequency of 4279.7 kHz is 22.88% of the black-white interval (22.88 IRE).
The chrominance path can be delayed, in relation to the luma path, for S-VHS and
CVBS outputs. Register bit DEN_CFG3.DEL_EN
selects either the default delays or the programmable delay. The default delays are pre-programmed for the PAL,
SECAM and NTSC modes in 4:2:2 and 4:4:4 format on CVBS.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
142
PRELIMINARY DATA
Chrominance encoding
Refer to
Figure 47 for the frequency response of the bell filter with subcarrier
frequencies and clipping values.
-5
-10
-15
10
5
0
10-1
Frequency (MHz)
100
Figure 46: SECAM chroma filtering (pre-emphasis and 1.3 MHz low pass filtering)
Filtrage anti−cloche du SECAM (avec les DACs)
8
6
4
2
12
10
0
3.8
3.9
4 4.1
4.2
4.3
4.4
Frequence (MHz)
4.5
Frequency (MHz)
4.6
4.7
4.8
hi h f b i h i (B ll filt i
Figure 47: SECAM high-frequency subcarrier pre-emphasis (Bell filtering), including DAC attenuation
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Composite video signal generation 143
-1
-2
1
0
-3
-4
-5 f-3=1.1
f-3=1.6
RGB f-3=1.3
f-3=1.9
-6
-7
-8
-9
0 0.5
1 1.5
2 2.5
3 3.5
Frequency (MHz)
Figure 48: Various chroma filters available and RGB filter
4.13 Composite video signal generation
The composite video signal is created by adding the luminance and the chrominance components. Luminance is usually added after trap filtering, but in PAL and NTSC trap filtering is optional, see register DEN_CFG3 . A saturation function is included in the adder to avoid overflow errors should extreme luminance levels be modulated with highly saturated colors. This does not occur with natural colors but may be generated by computers or graphics engines.
A color killing function is available, whereby the composite signal contains no chrominance and so replicates the trap-filtered luminance. This function does not suppress the chrominance on VHS and S-VHS outputs, but suppressing the S-VHS chrominance is possible using bit BKDAC[N] in DEN_CFG5 , where the chrominance signal is outputted on DAC[n].
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
144
PRELIMINARY DATA
Composite video signal generation
0
-5
-10
-15
-20
-25
-30
-35
-40
0 2 4 6 8 10 12 14
Frequency (MHz)
Figure 49: 1.1 MHz chroma filter
0
-5
-10
-15
-20
-25
-30
-35
-40
0 2 4 6 8 10 12 14
Frequency (MHz)
Figure 50: 1.3 MHz chroma filter
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Composite video signal generation
0
-5
-10
-15
-20
-25
-30
-35
-40
0 2 4 6 8 10 12 14
Frequency (MHz)
Figure 51: 1.6 MHz chroma filter
0
-5
-10
-15
-20
-25
-30
-35
-40
0 2 4 6 8 10 12 14
Frequency (MHz)
Figure 52: 1.9 MHz chroma filter
145
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
146 RGB and UV encoding
4.14 RGB and UV encoding
After demultiplexing, the Cr and Cb samples feed a four times interpolation filter.
The resulting base-band chroma signal has a 2.45 MHz bandwidth ( Figure 53
) and is combined with the filtered luma component to generate R,G,B or U,V samples at
27 MHz.
If Y4 and CrCb inputs are used, the filtering identical to luma filtering (see
Figure 43 ) is performed on all components (Y4, Cr and Cb). In this case DAC5
output data encoded from Y4 input if YUV configuration is used (see DEN_CFG8 bits CONF_OUT1 and CONF_OUT0 ).
0
-5
-10
-15
-20
-25
-30
-35
-40
0 2 4 6 8 10 12 14
Frequency (MHz)
Figure 53: RGB: chroma filtering
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Closed captioning 147
4.15 Closed captioning
Closed-captions (or data from an extended data service as defined by the closed-captions specification) can be encoded by the circuit. The closed caption data is delivered to the circuit through the register interface. Two dedicated pairs of bytes
(2 bytes per field), each pair preceded by a clock run-in and a start bit can be encoded and inserted on the luminance path on a selected TV line. The clock run-in and start code are generated by the DENC.
Closed-caption data registers are double-buffered so that loading can be performed anytime, even during line 21/284 or any other selected line.
User register DEN_CCF1 and DEN_CCF2 each contain the first and second byte to send (LSB first) after the start bit on the appropriate TV line, where DEN_CCF1 refers to field 1 and DEN_CCF2 to field 2. The TV line number where data is to be encoded is programmable using registers DEN_CLF1 and DEN_CLF2 . Lines that may be selected include those used by the StarSight data broadcast system.
Closed-caption data has priority over any CGMS signals programmed for the same line.
The internal clock run-in generator is based on a direct digital frequency synthesizer. The nominal instantaneous data rate is 503.496 kHz, that is 32 times the NTSC line rate). Data low corresponds nominally to 0 IRE, data high corresponds to 50 IRE at the DAC outputs.
When closed-captioning is on (bits CC1 and CC2 in DEN_CFG1 ), the CPU should load DEN_CCF1 or DEN_CCF2 once every frame at most, although there is some margin due to double-buffering. Two bits are set in the DEN_STA register in case there are attempts to load the closed-caption data registers too frequently. These can be used to regulate the loading rate.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
148 CGMS encoding
300
250
200
150
100
50
0
10µs
27.35µs
13.9µs
7 cycles of 504kHz
Transition
Time : 220ns
61µs t
Figure 54: Example of closed-caption waveform
The closed caption encoder considers that closed caption data has been loaded and is valid on completion of the write operation into DEN_CCF1 for field 1, or DEN_CCF2 for field 2. If closed caption encoding has been enabled and no new data bytes have been written into the closed caption data registers when the closed caption window starts on the appropriate TV line, then the circuit outputs two US-ASCII null characters with odd parity after the start bit.
4.16 CGMS encoding
CGMS stands for copy generation management system, is also known as VBID, and is described by standard CPX-1204 of EIAJ. CGMS data can be encoded by the digital encoder.
Three bytes, containing 20 significant bits, are delivered to the chip using the register interface. Two reference bits (1 then 0) are encoded first, followed by 20 bits of CGMS data. This includes a cyclic redundancy check sequence, which is not computed by the device but is supplied as part of the 20 data bits. The reference bits are generated locally by the DENC.
shows a typical CGMS waveform.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
CGMS encoding 149
300
250
200
150
100
50
0
11µs
Bit 1
48.7µs
Word 0
6 bits
Word 1 Word 2
4 bits 4 bits
CRCC
6 bits
Bit 20 t
Figure 55: Example of CGMS waveform
CGMS encoding is enabled by setting bit ENCGMS in register DEN_CFG3 . When enabled, the CGMS waveform is present once in each field, on lines 20 and 283, using SMPTE-525 line numbering.
The CGMS data register is double-buffered, which means that it can be loaded at any time, even during line 20/283, without any risk of corrupting any CGMS data being encoded. The CGMS encoder considers that new CGMS data has been loaded and is valid on completion of the write operation into register DEN_CGMS .
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
150 WSS encoding
4.17 WSS encoding
The digital encoder allows wide screen signalling (WSS) in 625-line format, complying with the ETS 300 294 standard. Two bytes are delivered to the circuit through the register interface into two dedicated registers (see register DEN_WSS ).
WSS encoding is enabled using bit ENWSS in register DEN_CFG3 . When WSS encoding is enabled, a waveform is present on the first half of line 23 of each frame.
Data is preceded by a run-in sequence and a start code generated locally by the
DENC.
4.18 VPS encoding
VPS data encoding is defined by ETS 300 231 communication, June 1993 . VPS data can be encoded by the DENC on line 16 (CCIR) for 625-line PAL and SECAM television systems. The VPS data is delivered to the circuit using registers
DEN_VPS . The data transmission is preceded by a clock run-in and a start code generated by the DENC. The clock frequency is 5 MHz. This feature is enabled by setting the ENVPS bit of register DEN_CFG7 .
Figure 56 shows an example of VPS
waveform.
Run-In Start -Code Data
Figure 56: Example of VPS waveform
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Teletext encoding 151
4.19 Teletext encoding
The DENC can encode teletext according to the CCIR/ITU-R broadcast teletext system B specification (also known as world system teletext), and North American basic teletext specification (NABTS) EIA-516.
In DVB applications, teletext data is embedded within DVB streams as MPEG data packets. The transport layer processing IC (ST40) sorts incoming data packets and stores teletext packets in a buffer. It then passes them to the DENC on request.
Signal exchange
The DENC and the teletext buffer exchange two signals, teletext synchronization
(TTXS) going from the DENC to the teletext buffer and teletext data (TTXD) going from the teletext buffer to the DENC.
The TTXS signal is a request signal generated on selected lines. In response to this signal, the teletext buffer is expected to send teletext bits to the DENC for insertion of a teletext line into the analog video signal. The number of teletext bits sent depends on the teletext system being used. The teletext system is determined by register bit DEN_REG_64.
TTXT_ABCD .
360 bits are sent for teletext B, that is WST in PAL and SECAM, or 288 for teletext C, that is NABTS in NTSC.
The duration of the TTXS window corresponds to the number of bits being sent. See
Transmission protocol .
• For teletext B and 625 line systems, the TTXS window duration is 1402 reference clock periods (corresponding to 360 bits).
• For teletext C and 525 line systems (NABTS), the TTXS window duration is 1121 master clock periods.
Following the TTXS rising edge, the encoder expects data from the teletext buffer after a programmable number (two to nine) of 27 MHz master clock periods. Data is transmitted synchronously with the master clock at an average rate of
6.9375 Mbit/s according to the protocol described below. In order of transmission, it consists of sixteen clock run-in bits, eight framing code bits and one teletext packet of 336 or 228 bits, depending on the teletext system being used. If more than one packet of 336 or 228 bits are transmitted, these are ignored by the DENC. By default, register bit DEN_REG_65.
TTX_MASK_OFF masks the two bits of teletext framing code, allowing the code to be set by the DENC according to the selected teletext standard.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
152
PRELIMINARY DATA
Teletext encoding
Transmission protocol
To transmit the teletext data bits at an average rate of 6.9375 Mbit/s, which is about
1 / 3.89 times the master clock frequency, the following scheme is adopted:
The 360-bit packet is regarded as nine 37-bit sequences plus one 27-bit sequence.
In every sequence, the 10th, 19th, 28th and 37th bits are transmitted as a succession of three identical samples at 27 Msample/s. Each of the remaining teletext data bits is transmitted as a succession of four identical samples at 27
Msample/s.
Programming TTXS rising to first valid sample
The encoder expects the teletext buffer to clock-out the first teletext data sample on the (2 + n) th
rising edge of the master clock following the rising edge of TTXS.
Figure 57 depicts this graphically for n = 0.
CKREF
TTXS
TTXD
(TXDL[2:0] + 2) TCKREF
Not Valid Bit 1 Bit 2
Figure 57: TTXT rising to first valid sample delay for TXDEL[2:0] = 0
N is programmable from zero to seven by register bits DEN_TTX1.TTXDEL[2:0] . The value written in TXDEL[2:0] is two less than the overall delay in CKREF cycles, so a value of zero for TXDEL[2:0] corresponds to an overall delay of two cycles, and a value of seven corresponds to a delay of nine cycles.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Teletext encoding 153
Programming teletext line selection
Five dedicated registers, DEN_TTX[1:5] , program teletext encoding in various lines in the vertical blanking interval (VBI) of each field. In this way, each line in VBI can be selected independently.
Full-page teletext encoding is set by register bit DEN_TTX1.FP_TTXT
. Teletext is encoded on lines 24 to 311 and 336 to 623, using ITU-R line numbering. This is in addition to the lines already programmed in the VBI. When full page teletext is performed, no video data is encoded and YCrCb, Y4 and CrCb input streams are ignored.
Teletext pulse shape
The shape and amplitude of a single teletext pulse is shown in
power spectral density is shown in
and
It is zero at frequencies above 5 MHz, as required by the world system teletext specification.
40
30
20
70
60
50
10
0
-100 -50
-144 ns
0 50 100
+144 ns
Figure 58: Shape and amplitude of a single teletext symbol
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
154
PRELIMINARY DATA
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 1 2 3 4 5 6 7 8
Frequency (MHz)
Figure 59: Linear PSD scale
-40
-50
-60
-70
0
-10
-20
-30
-80
0 1 2 3 4 5 6 7 8
Frequency (MHz)
Normalized power spectral density (PSD) of a single teletext pulse
Figure 60: Logarithmic PSD scale
Teletext encoding
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Line skip and line insert capability 155
4.20 Line skip and line insert capability
This patented feature of the DENC offers the possibility to cut the cost of the application by suppressing the need for a VCXO.
Ideally, the master clock used on the application board and fed to the MPEG decoding IC would have exactly the same frequency as the clock used when the
MPEG data was encoded. Obviously this is not realistic. Up to now a solution commonly used was to dynamically adjust the clock on the board as close to the ideal clock as possible, with the help of time stamps embedded within the MPEG stream.
Such tracking often involves the use of a VCXO. When the MPEG data buffer fills to more than one threshold the clock frequency increases, when it empties to another threshold the clock frequency is lowered.
The DENC offers an alternative, cost-saving solution. By programming two bits in register DEN_CFG6 , the DENC is able to reduce or increase the length of some frames in a way that does not introduce visible artifacts, even if comb-filtering is used. These bits should be set according to the level of the MPEG data buffer.
Operation with the DENC as sync master is as shown below.
• If the MPEG data buffers fill, set bit JUMP to 1 and bit DEC_NINC to 1.
The DENC reduces the length of the current frame and bit JUMP resets to 0.
• If the MPEG data buffers empty, set bit JUMP to 1 and bit DEC_NINC to 0.
The DENC increases the length of the current frame and bit JUMP resets to 0.
These operations can be repeated until the MPEG data buffer is inside its fixed limits.
It is also possible to use line skip and line repeat in non-interlaced mode.
Line skip and line insert can be used in slave mode. The synchronous signals supplied to the DENC must be in accordance with the programmed frame lengths.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
156
PRELIMINARY DATA
CVBS, S-VHS, RGB and UV outputs
4.21 CVBS, S-VHS, RGB and UV outputs
Six out of eight video signals can be directed to six analog output pins through a
10-bit digital to analog converter operating at the reference clock frequency. The available combinations are:
• S-VHS (Y/C), CVBS and RGB,
• S-VHS (Y/C), CVBS, U, Y2 and V,
• Y1, C1, CVBS1, C2, Y2 and CVBS2.
These combinations are controlled by bits CONF_OUT1 and CONF_OUT0 in register
DEN_CFG8 , as shown in
CONF_OUT1 CONF_OUT0 DAC1 DAC2 DAC3 DAC4 DAC5 DAC6
0
0
1
0
1 x
Y
Y
Y
C
C
C
CVBS
CVBS
CVBS
C
V
R
Table 10: Encoding of CONF_OUT
Y
Y
G
CVBS
U
B
Notes
Default
The register bits DEN_CFG2.SET4:4:4 and DEN_CFG9.SET444_CVBS
select the outputs CVBS/S-VHS or RGB/YUV for each of the two encoded input formats.
The C to Y peak to peak amplitude ratio can be modified in both CVBS and VHS (Y/
C) outputs using MULT_RGB_C .
For the 100/0/100/0 color bar pattern the default peak to peak amplitude of UV and
RGB outputs is set to 70% of Y or CVBS peak to peak amplitude. This can be modified using the multiplying factors in registers DEN_DAC45 and DEN_DAC6C .
If the DEN_CFG7[2] bit UV_LEV has the default value of 0, the U and V outputs have 0.7 V peak to peak amplitude when the 100/0/100/0 color bar pattern is input.
If UV_LEV is 1, the U and V outputs are those defined by ITU-R 624-4 for the PAL and NTSC standards (Vpp/Upp = 1.4). In that case the U peak to peak amplitude is
0.61 V, or 0.57 V if the DEN_CFG7 bit SETUPYUV is set, and the V peak to peak amplitude is 0.86 V, or 0.80 V if the register DEN_CFG7 bit SETUPYUV is set. In all these cases UV outputs can be multiplied by 0.75 to 1.22, the factor according to register bits DEN_DAC45.DAC4_MULT
and DEN_DAC6C.DAC6_MULT
.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
CVBS, S-VHS, RGB and UV outputs 157
A single external analog power supply pair is used for all DACs, but two independent pairs of current and voltage references are needed. An 11 Kbytes resistor must be connected between each I_REF and V_REF pin.
The internal current sources are independent from the positive supply, and the consumption of the DACs is constant whatever the codes converted.
Any unused DAC may be independently disabled by software, in which case its output is at neutral level (blanking for luma and composite outputs, no color for chroma output, black for RGB and UV outputs). For applications where a single
CVBS output is required, the RGB/CVBS and S-VHS/UV triple DAC should be disabled, pin I_REF_DAC_RGB should be tied to analog power supply and pin
V_REF_DAC_RGB should be left unconnected.
Due to the 3.3 V power supply used, the output swing of the DACs is about 1 Vp-p.
Therefore some external gain may be required, which, combined with the recommended output filtering stage, means active filtering. For this active filtering stage to be very simple, it is possible to invert the DAC outputs by programming a bit of DEN_CFG5 . Code N becomes code 1024-N, that is the resulting waveform undergoes a symmetry around the mid-swing code.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
158
4.22 Register descriptions
Register descriptions
DEN_CFG0 Configuration0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x000
RW
10010010
Description
Bitfield
FREERUN
POLV
POLH
STD[1:0]
Description
Bit FREERUN is taken into account in ODDEV-only, VSYNC-only or F-based slave modes. It is irrelevant to other synchronization modes.
Synchro: active edge of ODDEV/VSYNC selection (when input)
0: Disabled
1: Enabled
Synchro: active edge of ODDEV/VSYNC selection (when input)
0: Falling edge of ODDEV flags start of field1 (odd field) or VSYNC is active low
1: Rising edge of ODDEV flags start of field1 (odd field) or VSYNC is active high
Synchro: active edge of HSYNC selection (when input) or polarity of HSYNC (when output)
0: HSYNC is a negative pulse (128 TCKREF wide) or falling edge is active
1: HSYNC is a positive pulse (128 TCKREF wide) or rising edge is active
Standard
0 0: PAL BDGHI
0 1: PAL N (see bit set-up)
1 0: NTSC M
A B
1 1: PAL M
A. The standard on hardware reset is NTSC; any standard modification automatically selects the right parameters for correct subcarrier generation.
B. If DEN_CFG7.SECAM is set, the STD1 and STD0 bits are not taken into account.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 159
DEN_CFG1 Configuration 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x008
RW
01000100
Description
Bitfield Description
CC[2:1]
00:
A
01:
10:
11:
No closed caption/extended data encoding
Closed caption/extended data encoding enabled in field 1 (odd)
Closed caption/extended data encoding enabled in field 2 (even)
Closed caption/extended data encoding enabled in both fields
SETUP Pedestal enable
0:
A Blanking level and black level are identical on all lines (ex: Arg. PAL-N, Japan
NTSC-M, PAL-BDGHI)
1: Black level is 7.5 IRE above blanking level on all lines outside VBI (ex: Paraguayan and Uruguayan PAL-N). In all cases, gain factor is adjusted to obtain the required chrominance levels.
COKI Color killer
0:
A Color ON
1: Color suppressed on CVBS output signal (CVBS=YS) but color still present on C output
For color suppression on chroma DAC ‘C’, see register DEN_CFG5 .BKDAC2.
SYNCOK Synchronous signal availability (analog & digital) for input synchronization loss with free-run inactive freerun=0
0:
1:
A No synchro output signals
FLT[1:0] 00:
01:
Output synchros available on YS, CVBS and, when applicable, HSYNC (if output port), ODDEV (if output port),: i.e same behavior as free-run except that video outputs are blanked in the active portion of the line f -3dB =1.1MHz low def NTSC filter f -3dB =1.3MHz low def PAL filter
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
160 Register descriptions
Bitfield
BLKLI
B
Description
10:
A f -3dB =1.6MHz high def. NTSC filter (ATSC compliant) & PAL M/N (ITU-R 624.4
compliant)
11: f -3dB =1.9MHz high def. PAL filter: Rec 624 - 4 for PAL BDG/I compliant
Vertical Blanking Interval selection for active video lines area.
0:
A
1:
(‘partial blanking’) Only the following lines inside the vertical interval are blanked:
NTSC-M: lines [1:9], [263(half):272] (525-SMPTE), PAL-M: lines [523:6],
[260(half):269] (525-CCIR) other PAL: lines [623(half):5], [311:318] (625-CCIR)
This mode preserves embedded VBI data within the incoming YCrCb, e.g. teletext
(lines [7:22] and [320:335]), Wide Screen signalling (full line 23), Video Programing
Service (line16), etc.).
(‘full blanking’) All lines inside VBI are blanked
NTSC-M: lines [1:19], [263(half):282] (525-SMPTE), PAL-M: lines [523:16],
[260(half):279] (525-CCIR) other PAL: lines [623(half):22], [311:335] (625-CCIR)
A. Default mode when DENC_NRST pin is active (low level)
B. BLKLI must be set to 0 when closed captions are to be encoded on the following lines: in the 525/60 system, before line 20 (SMPTE) or before line 283 (SMPTE), in 625/50 system, before line 23 (CCIR) or before line 336 (CCIR).
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 161
DEN_CFG2 Configuration 2
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x010
RW
00100000
Description
Bitfield Description
VALRST[1:0]
A
RSTOSC_BUF
C
SELRST
SET4:4:4
BURSTEN
00:
B
01:
Automatic reset of the oscillator every line
Automatic reset of the oscillator every 2 nd
field
10:
Automatic reset of the oscillator every 4 th
field
11:
Automatic reset of the oscillator every 8 th
field
Software phase reset of DDFS (Direct Digital Frequency Synthesizer) buffer
0:
1:
No reset
When a 0-to-1 transition occurs, either the hard-wired default phase value, or the value loaded in the DEN_PDFS1/2 register (according to bit SELRST), is put to phase buffer. This value is loaded into accumulator (phase of subcarrier) when bits PH_RST_OSC from DEN_CFG8 are programmed, or when the standard changes or soft reset occurs.
Selects reset values for Direct Digital Frequency Synthesizer
0:
Hardware reset values for subcarrier oscillator phase (see register descriptions for values)
DEN_PDFS1/2
1: Loaded reset values selected (see contents of the DEN_PDFS1/2 registers)
Selects the 4:2:2 or 4:4:4 video input from the mixing unit
0:
YCrCb (4:2:2) input:
The presence of OSD on the DENC output can be selected or deselected by
OSD block header field S.
YCrCb (4:4:4) input: In this mode OSD is always present on the DENC output.
1:
Chrominance burst control
0: Burst is turned off on CVBS, chrominance output is not affected
1:
Burst is enabled
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
162 Register descriptions
Bitfield
ENRST
NINTRL
D
Description
Cyclic update of DDFS phase
0:
No cyclic subcarrier phase reset
1: Cyclic subcarrier phase reset depending of valrst1 and valrst0 (see above)
Non-interlaced mode select
0:
1:
Interlaced mode (625/50 or 525/60 system)
Non-interlaced mode(2x312/50 or 2x262/60 system)
A. VALRST[1:0] is taken into account only if bit ENRST is set. Resetting the oscillator means here forcing the value of the phase accumulator to its nominal value to avoid accumulating errors due to the finite number of bits used internally. The value to which the accumulator is reset is either the hard-wired default phase value or the value loaded in the DEN_PDFS[1:2] registers (according to bit SELRST), to which a 0
0
, 90
0
, 180
0
, or 270
0
correction is applied according to the field and line on which the reset is performed.
If SECAM is performed the oscillator is reset every line.
B. This is the default mode when DENC_NRST pin is active (low level).
C. RSTOSC_BUF is automatically set back to 0 after the buffer is loaded.
D. NINTRL update is internally taken into account at the beginning of the next frame. In
SECAM mode, only the interlaced mode is available.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 163
DEN_CFG3 Configuration 3
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x018
RW
00000000
Description
Bitfield
ENWSS
DEL_EN
CK_IN_PHASE
B
ENCGMS
C
TRAP_4.43
Description
WSS encoding enable
0:
A Disabled
1: Enabled
Select delay on chroma path with reference to luma one on S-VHS and CVBS
0: Use default delays:
-0.5 pixel delay for PAL/NTSC in 4:2:2 format on CVBS)
+0.5 pixel delay for SECAM in 4:4:4 format on CVBS)
0.0 pixel delay for PAL/NTSC in 4:4:4 format or SECAM in 4:2:2 format on CVBS)
1: Use chroma programmed delays (described in register
)
Choice of active edge of CKREF (master clock) that samples incoming YCrCb data.
This bit can be used to analyze the cause of application synchronization problems.
0:
A CKREF falling edge
1: CKREF rising edge
CGMS encoding enable
0:
A Disabled
1: Enabled
Enable trap filter: Trap_4.43 is taken into account only if bit ENTRAP is set
0:
A Select the trap filter centered around 3.58 MHz
1: Select the trap filter centered around 4.43 MHz
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
164 Register descriptions
Bitfield Description
ENTRAP
D Enable trap filter
0:
A Trap filter disabled
1: Trap filter enabled
YCRCB_REF_CLK_S Select whether the clock and data comes from the system or the pad
0: Internal clock and video data
1: Clock from PIO1[2] and data from yc[0:7]
A. Default mode when DENC_NRST pin is active (low level)
B. This bit is typically used when synchronization problems appear in application.
C. When ENCGMS is set to 1, closed-captions/extended data services should not be programmed on lines 20 and 283 (525/60, SMPTE line number convention).
D. When SECAM is performed the trap filter is always enabled (ENTRAP = 1).
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 165
DEN_CFG4 Configuration 4
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x020
RW
00000000
Description
Bitfield Description
DEL4[2:0] Delay on luma path w.r.t chroma path on YUV and RGB outputs when 4:4:4 input is used
0 1 0: + 2 pixel delay on luma
0 0 1:
0 0 0:
A
1 1 1:
+ 1 pixel delay on luma
+ 0 pixel delay on luma
- 1 pixel delay on luma
1 1 0: - 2 pixel delay on luma
Other configurations: + 0 pixel delay on luma
ALINE Video active line duration control
Full digital video line encoding (720 pixels - 1440 clock cycles)
1: Active line duration follows ITU-R/SMPTE ‘analog’ standard requirements
SYNCOUT_AD[1:0] Adjustment of outgoing synchronous signals. Used to ensure correct interpretation of incoming video samples as Y, Cr or Cb when the encoder is master and supplies synchronous signals
SYNCIN_AD[1:0]
00:
01:
10:
Nominal
+1 ckref
+2 ckref
11:
Adjustment of incoming synchronous signals. Used to ensure correct interpretation of incoming video samples as Y, Cr or Cb when the encoder is slaved to incoming synchronous signals (incl. ‘F/H’ flags stripped off ITU-R656/D1 data)
00:
01:
A
+3 ckref
Nominal
+1 ckref
10:
11:
+2 ckref
+3 ckref
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
166 Register descriptions
A. Default mode when DENC_NRST pin is active (low level)
DEN_CFG5 Configuration 5
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x028
RW
00000000
Description
Bitfield
DACINV
BKDACN
SELRST_INC
Description
‘Inverts’ DAC codes to compensate for an inverting output stage in the application
0:
A Non inverted DAC inputs (outputs)
1: Inverted DAC inputs (outputs)
Blanking of DACs (N = 1,2,3,4,5 or 6)
DAC N in normal operation
1: DAC N input code forced to black level (if RGB, UV or C) or blanking level (if Y or CVBS) depending on CONF_OUT bits of the DEN_CFG8 register.
Choice of Digital Frequency Synthesizer increment after soft-reset or when
PH_RST_MODE = ‘01’ (see the DEN_CFG8 register)
1:
Hard wired value (depending on TV standard)
Soft (value from DEN_IDFS1/2/3 registers)
A. Default mode when DENC_NRST pin is active (low level)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 167
DEN_CFG6 Configuration 6
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x030
RW
00010000
Description
Bitfield
MAXDYN
A
TTX_EN
CFC[1:0]
SOFTRESET
C
Description
Max dynamic magnitude allowed on YCrCb inputs for encoding
0:
B 10hex to EBhex for Y, 10hex to E0hex for chrominance (Cr,Cb)
1: 01hex to FEhex for Y, Cr and Cb
Teletext enable bit
0:
B Disabled
1: Enabled
Color frequency control via CFC line
0 0:
B
0 1:
Update mode disabled (update is carried out by loading registers)
DEN_IDFS1/2/3
Update of increment for DDFS just after serial loading via CFC
1 0:
1 1:
Update of increment for DDFS on next active edge of HSYNC
Update of increment for DDFS just before next color burst
Software reset
0:
B No reset
1: Software reset
A. EAV and SAV words are replaced by blanking values before being fed to the luminance and chrominance processing.
B. Default mode when DENC_NRST pin is active (low level)
C. Bit SOFTRESET is automatically reset after internal reset generation. Software reset is active for four CKREF periods. When soft reset is activated, all the device is reset as with hardware reset except for the first nine user registers (DEN_CFG[0:8]).
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
168 Register descriptions
DEN_CFG7 Configuration 7
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x038
RW
00000000
Description
SQPIX
Bitfield
ENVPS
UV_LEV
SETUPYUV
Description
Square pixel mode enable: This mode is not available in secam standard.
0:
Disable
1: Enable
VPS encoding enable
0:
1:
Disable
Enable
UV output level
0:
Same peak to peak amplitude for both U and V (default value - 0.7 Vpp for
100/0/100/0 color bar pattern)
1:
Pedestal enable on YUV outputs:
This bit is significant only if register DEN_CFG8 bit CONF_OUT[1:0] = 01’ (YUV outputs). If this is the case, the Y output on DAC5_G_Y has a 7.5 IRE pedestal.
Furthermore, if UV_LEV = 1 then the U and V levels also depend on the value of
SETUPYUV.
0:
1:
U and V outputs as defined by ITU-R624-4
Disable
Enable
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 169
Bitfield Description
INV_PHI_SECAM Inversion of subcarrier phase
0:
0, 0,
π
,... in odd fields and
π
,
π
, 0 in even fields
1:
π
,
π
, 0 in odd fields and 0, 0,
π
,... in even fields
GEN_SECAM
/SECAM
Where the bit order is SECAM - GEN_SECAM:
00
A
:
01:
10:
11:
Standard selected by STD1 and STD0 bits of DEN_CFG0 (PAL or NTSC)
Genlock slave mode using external synchronous extraction
SECAM standard, the subcarrier phase sequence start-point is line1
SECAM standard, the subcarrier phase sequence start-point is line23
If master mode is performed in the SECAM standard, bit SECAM must be set before
SYNC2, SYNC1 and SYNC0 bits of DEN_CFG0 . If DEN_CFG0 is not programmed, then a soft reset must be performed after programming SECAM. In SECAM, the trap filter should always be enabled (see DEN_CFG3 register).
A. Default value
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
170 Register descriptions
DEN_CFG8 Configuration 8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x040
RW
00100000
Description
Bitfield
TTX_NOTMV
BLK_ALL
CONF_OUT[1:0]
Description
After reset, the default value of this bit is zero, however, for devices using teletext, this bit must then be reprogrammed to 1. This is to avoid the occurrence of teletext glitches in SECAM mode and loss of teletext data in all modes.
Priority of ancillary data on a VBI line. Note, higher priority data overwrites lower priority data.
0: priority is: CGMS > closed caption > Macrovision
A
> WSS > VPS > teletext
B
1: priority is: teletext > CGMS > closed caption > WSS > VPS > Macrovision
Blanking of all video lines
0
C
1
Disabled
Enabled (all inputs ignored - 0x80 instead of Cr and Cb and 10hex instead of Y and Y4)
DENC output configuration
0 0
0 1
DAC1
Y
Y
DAC2
C
C
DAC3
CVBS
CVBS
DAC4
C
V
DAC5
Y
Y
DAC6
CVBS
U
1
Y C CVBS R G B
If CONF_OUT[1:0] = 01 and register DEN_CFG2 bit SET_4:4:4 = 1, then the dac5 output Y comes from the Y4 input.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 171
Bitfield Description
PH_RST_MODE[1:0] Subcarrier phase reset mode.
In modes “01” and “10”, this bit is automatically reset to “00” after oscillator reset.
00
01
Disabled
10
Enabled - phase is updated with value from phase buffer register (see
DEN_CFG2 bit rstosc_buf) on the beginning of the next video line.
Increment is updated with hard or soft value depending on selreg_inc value (see DEN_CFG5 )
Enabled - phase is updated with value from the DEN_IDFS1/2/3 registers on the next increment updating by CFC (depending on CFC loading moment and DEN_CFG6 CFC[1:0] bits.
11 Enabled - phase is reset after detecting of rst bit on cfc line, up to 9
CKREF after loading of CFC’s LSB.
A. If there is no Macrovision programmed on the line, then VBI line blanking (when register
DEN_CFG1 bit BLKI = 1) overwrites VPS or teletext, and no VPS or teletext data is
encoded.
B. Default value
C. Default value
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
172 Register descriptions
DEN_STA Status
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x048
R0
Undefined
Description
Bitfield
JUMP
FIELDCT[2:0]
BUF1_FREE
BUF2_FREE
Description
Indicates whether a frame length modification has been programmed at ‘1’ from programming of bit ‘jump’ to end of frame(s) concerned default = 0 Refer to DEN_CFG6 register
Digital field identification number
000
...
111
Indicates field 1
Indicates field 8
NOTE: fieldct[0] also represents the odd/even information (odd='0', even='1')
Closed caption registers access condition for field 1
Same as buf2_free but concerns field 1.
Reset value:= 1 (access authorized)
A
Closed caption registers access condition for field 2
Closed caption data for field 2 is buffered before being output on the relevant TV line; buf2_free is reset if the buffer is temporarily unavailable. If the micro controller can guarantee that the DEN_CCF2 registers are never written more than once between two frame reference signals, then bit ‘buf2_free’ will always be true (set). Otherwise, closed caption field2 registers ( DEN_CCF2 ) access might be temporarily forbidden by resetting bit ‘buf2_free’ until the next field2 closed caption line occurs.
Note that this bit is false (reset) when 2 pairs of data bytes are awaiting to be encoded, and is set back immediately after one of these pairs has been encoded (so at that time, encoding of the last pair of bytes is still pending)
Reset value:= 1 (access authorized)
A
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions
ATFR
Bitfield
HOK
B
Description
Frame synchronization flag
0
A Encoder not synchronized
1 In slave mode: encoder synchronized
Hamming decoding of frame sync flag embedded within ITU-R656 / D1 compliant
YCrCb streams
0 Consecutive errors
1
A A single or no error
A. Default mode when DENC_NRST pin is active (low level)
B. Signal quality detector is issued from Hamming decoding of EAV, SAV from YCrCb
173
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
174 Register descriptions
DEN_IDFS[1:3] Increment for digital frequency synthesizer
These three registers contain the 24-bit increment used by the DDFS, only if bit
SELRST_INC (register DEN_CFG5 ) equals 1. They generate the phase of the subcarrier, that is the address that is supplied to the sine ROM. It, therefore, customizes the synthesized subcarrier frequency of 1 LSB ~ 1.6 Hz
To validate use of these registers instead of the hard-wired values use this procedure.
1 Load the registers with the required value.
2 Set bit DEN_CFG5.SELRST_INC
to 1.
3 Using register DEN_CFG6 perform a software reset.
The values loaded in DEN_IDFS[1:3] are taken into account after a software reset, and only if bit DEN_CFG5.SELRST_INC
= 1. These registers are never reset and must be explicitly written, to ensure that they contain sensible information.
On hardware or software reset the DDFS is initialized with a hardwired increment, independent of DEN_IDFS[1:3] . These hardwired values cannot be read out of the
DENC.
0x050
0x058
0x060
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
D
23
D
22
D
21
D
20
D
19
D
18
D
17
D
16
Reserved
D
15
D
14
D
13
D
12
D
11
D
10
D
9
D
8
Reserved D7 D6 D5 D4 D3 D2 D1 D0
Address:
Type:
Reset value:
DENC base address+ 0x050( DEN_IDFS1) , 0x058 ( DEN_IDFS2) ,
0x060( DEN_IDFS3)
RW
Undefined
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 175
Description
Bitfield
DEN_IDFS[1:3]
Description
Value
D[23:0]: 21F07C hexa for NTSC M
D[23:0]: 2A098B hexa for PAL BGHIN
D[23:0]: 21F694 hexa for PAL N
D[23:0]: 21E6F0 hexa for PAL M
D(23:0]: 255554 hexa for NTSC M square pixel
D[23:0]: 26798C hexa for PAL BGHIN square pixel
D[23:0]: 1F15C0 hexa for PAL N square pixel
D[23:0]: 254AD4 hexa for PAL M square pixel
Frequency synthesized Ref.Clock
f=3.5795452 MHz 27 MHz f=4.43361875MHz
f=3.5820558 MHz f=3.57561149 MHz f=3.5795434 MHz
27 MHz
27 MHz
27 MHz
24.545454 MHz f=4.43361867 MHz f=3.58205605 MHz f=3.57561082 MHz
29.5 MHz
29.5 MHz
24.545454 MHz
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
176 Register descriptions
DEN_PDFS[1:2] Phase DFS
These registers are never reset and must be explicitly written.
If bit SELRST = 0, for example after a hardware reset, the phase offset used every time the DDFS is re-initialized is a hard-wired value. The hard-wired values cannot be read out of the DENC. These are:
• D9C000hex for PAL BDGHI, N, M,
• 1FC000hex for NTSC-M,
• 000000hex (blue lines),
• 43C000hex (red lines) for SECAM.
When DEN_CFG7.SECAM = 0
Static phase offset for digital frequency synthesizer (10 bits only)
0x068
0x070
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
Reserved
O
21
O
20
O
19
O
18
O
17
O
16
O
23
O
15
O
22
O
14
Address:
Type:
Reset value:
DENC base address + 0x068 ( DEN_PDFS1) , 0x070 ( DEN_PDFS2)
RW
Undefined
Under certain circumstances detailed below, these registers contain the 10 MSBs of the value with which the phase accumulator of the DDFS is initialized after a 0 to 1 transition of bit DEN_CFG2.RSTOSC
, or after a standard change, or when cyclic phase readjustment has been programmed (see bits VALRST[1:0] of DEN_CFG2 ).
The fourteen remaining LSBs loaded into the accumulator in these cases are all zeroes, defining the phase reset value with a 0.35
o
accuracy.
To validate use of these registers instead of the hard-wired values use the following procedure.
1 Load the registers with the required value.
2 Set bit SELRST to 1 ( DEN_CFG2 )
3 Perform a software reset using DEN_CFG6 , or set DEN_CFG6 .
RSTOSC_BUF to
1. This puts the soft-phase value into a temporary register and sets register
DEN_CFG8 bit PH_RST_MODE[1:0] to put this value into an accumulator at the beginning of the next line.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 177
When DEN_CFG7.SECAM = 1
Static phase offset for digital frequency synthesizer for two SECAM subcarriers
(eight MSB only) (blue lines in DEN_PDFS1 and red lines in DEN_PDFS2)
0x068
0x070
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved
Reserved
B
21
R
21
B
20
R
20
B
19
R
19
B
18
R
18
B
17
R
17
B
16
R
16
B
15
R
15
B
14
R
14
Address:
Type:
Reset value:
DENC base address + 0x068 ( DEN_PDFS1) , 0x070 ( DEN_PDFS2) ,
RW
Undefined
These registers contain the eight bits (21 to 14) of the value with which the phase accumulator of the DDFS is initialized on every line in SECAM mode. The phase is calculated with 1.4˚ accuracy as:
• blue lines DEN_PDFS1 * 16384 (dec), or DEN_PDFS1 * 4000 (hex),
• red lines (256 + DEN_PDFS1 + DEN_PDFS2) * 16384 (dec), or (100 +
DEN_PDFS1 + DEN_PDFS2) * 4000 (hex)
To validate use of these registers instead of the hard-wired values, follow the PAL and NTSC mode.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
178 Register descriptions
0x078
DEN_WSS[1:2] WSS_BIT[15:0]: WSS data registers
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x080
Address:
Type:
Reset value:
DENC base address + 0x078 ( DEN_WSS1) , 0x080 ( DEN_WSS2)
RW
Undefined
Description
Bit field
WSS[15:13,7:5,1,0]
WSS[2]
WSS[4:3]
WSS[11:8]
A
WSS[12]
Description reserved = 0
0:
1:
0 0:
No subtitles within teletext
Subtitles within teletext
No open subtitles
0 1:
1 0:
1 1:
1 0 0 0:
0 0 0 1:
0 0 1 0:
1 0 1 1:
0 1 0 0:
1 1 0 1:
1 1 1 0:
0 1 1 1:
0:
1:
Subtitles in active image area
Subtitles out of image area reserved full format 4:3 box 14:9 center box 14:9 top box 16:9 center box 16:9 top
> box 16:9 center full format 4:3 (shoot and protect 14:9 center) full format 16:9 (anamorphic)
Camera mode
Film mode
A. WSS11 is an odd parity bit
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 179
DEN_DAC13 DAC1 and DAC3 multiplying factors
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x088
RW
10001000
Description
Bit field Description
DAC3_MULT[3:0] multiplying factor on dac3_cvbs digital signal before the digital to analog converters with 3.125% step
0 0 0 0: 75.00% dac3_cvbs value compared to default
0 0 0 1:
0 0 1 0:
0 0 1 1:
.. .. .. ..
1 0 0 0:
A
78.125% dac3_cvbs value compared to default
81.25% dac3_cvbs value compared to default
84.375% dac3_cvbs value compared to default
...
100% dac3_cvbs value compared to default
.. .. .. ..
1 1 1 1: 121.875% dac3_cvbs value compared to default
DAC1_MULT[3:0] multiplying factor on dac1_y digital signal before the digital to analog converters with
3.125% step
0 0 0 0: 75.000% dac1_y value compared to default
0 0 0 1:
0 0 1 0:
0 0 1 1:
.. .. .. ..
1 0 0 0:
.. .. .. ..
1 1 1 1:
A
78.125% dac1_y value compared to default
81.250% dac1_y value compared to default
84.375% dac1_y value compared to default
...
100% dac1_y value compared to default
...
121.875% dac1_y value compared to default
A. Default value
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
180 Register descriptions
DEN_DAC45 DAC4 and DAC5 multiplying factors
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x090
RW
10001000
Description
Bitfield
DAC5_MULT[3:0]
DAC4_MULT[3:0]
Description
Multiplying factor on dac5_g_y digital signal before the digital to analog converters: dac5_g_y value (in% of default value)
Value if G(conf_out=1x) if Y(conf_out=0x)
0 0 0 0:
0 0 0 1:
0 0 1 0:
0 0 1 1:
.. .. .. ..
80.49%
82.93%
85.37%
87.81%
75.000%
78.125%
81.250%
84.375%
1 0 0 0:
A
.. .. .. ..
...
100%
...
100%
1 1 1 1: 117.07% 121.875%
Multiplying factor on dac4_r_v_c digital signal before the digital to analog converters: dac4_r_v_c value (in% of default value)
Value
0 0 0 0:
0 0 0 1:
0 0 1 0:
0 0 1 1:
.. .. .. ..
1 0 0 0:
.. .. .. ..
1 1 1 1: if R (conf_out=1x)
80.49%
82.93%
85.37%
87.81%
...
100%
117.07% if V or C (conf_out=0)
75.000%
78.125%
81.250%
84.375%
...
100%
121.875%
A.
Default mode when DENC_NRST pin is active (low level)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 181
DEN_DAC6C DAC6 and C multiplying factors
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x098
RW
10000000
Description
Bitfield Description
C_MULT[3:0] Multiplying factor on C digital output (before digital to analog convertors) and on color part of CVBS signal:
Value Factor value (C_MULT)
0 0 0 0:
0 0 0 1:
1.000000 (1.000000
dec)
1.000001 (1.015625
dec)
0 0 1 0:
0 0 1 1:
1.000010 (1.031250
dec)
1.000011 (1.046875
dec)
...
.. .. .. ..
1 1 1 1: 1.001111 (1.234375
dec)
DAC6_MULT[3:0] Multiplying factor on dac6_b_cvbs digital signal before the digital to analog converters:
DAC6_B_CVBS value (in% of default value)
Value
0 0 0 0:
0 0 0 1:
0 0 1 0:
0 0 1 1:
.. .. .. ..
1 0 0 0:
A
.. .. .. ..
1 1 1 1:
If B(conf_out=1x)
80.49%
82.93%
85.37%
87.81%
...
100%
117.07%
If CVBS (conf_out=01)
75.000%
78.125%
81.250%
84.375%
...
100%
121.875%
A.
Default mode when DENC_NRST pin is active (low level)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
182
PRELIMINARY DATA
Register descriptions
The default peak to peak amplitude of U and V outputs corresponds to 70% of default Y or CVBS peak to peak amplitude if the 100/0/100/0 color bar pattern is inputted. In other words, when IREF is set to deliver 1 Vpp for CVBS on DAC3 and
DAC3_MULT = 1000, when switched to U DAC6 delivers 0.7 Vpp. If bit UV_LEV from register DEN_CFG7 is set, the default peak to peak amplitude is 86% (80% if
SETUPYUV = 1) for V output and 67% (57% if SETUPYUV = 1) for U output. If the
100/0/100/0 color bar pattern is inputted the default is the Y or CVBS peak to peak amplitude, according to the ITU-R 624-4 definition of UV signals.
The default peak to peak amplitude of RGB outputs corresponds to 70% of the default Y or CVBS peak to peak amplitude if the 100/0/75/0 color bar pattern is inputted. In other words, when IREF is set to deliver 1 Vpp for CVBS on DAC3 and
DAC3_MULT = 1000), when switched to B, DAC6 delivers 0.7 Vpp.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 183
DEN_CID CHIPID: DENC version ID number
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved CHIPID
Address:
Type:
Reset value:
DENC base address + 0x0C0
RO
Undefined
Description
Bit field Description
CHIPID 1010 0000
0x0C8
DEN_VPS1 VPS data registers
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x0D0
0x0D8
0x0E0
0x0E8
0x0F0
Address:
Type:
Reset value:
DENC base address + 0x0C8 (DEN_VPS1), 0x0D0 (DEN_VPS2),
0x0D8 (DEN_VPS3), 0x0E0 (DEN_VPS4), 0x0E8 (DEN_VPS5),
0x0F0 (DEN_VPS6)
RW
Undefined
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
184 Register descriptions
Description
Bit field
PT[7:0]
NP[5:0]
C[3:0]
MIN[5:0]
H [4:0]
M[3:0]
D[4:0]
NP[7:6]
CNI[3:0]
S[1:0]
Description
Program type, binary
Network or program CNI (Country and Network Identification)
Country, binary
Minute, binary
Hour, binary
Month, binary
Day, binary
Network or program CNI
4 bits of CNI Reserved for enhancement of VPS
Sounds
0 0: don’t know
0 1: mono
10: stereo
1 1: dual sound
DEN_CGMS[1:3] CGMS data registers (20 bits only)
0x0F8
0x100
0x108
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
Reserved
Reserved
Reserved
B1 B2 B3 B4
B5 B6 B7 B8 B9
B
10
B
11
B
12
B
13
B
14
B
15
B
16
B
17
B
18
B
19
B
20
DENC base address + 0x0F8 (DEN_CGMS1), 0x100
(DEN_CGMS2), 0x108 (DEN_CGMS3)
RW
Undefined
Description
Bit field
B15 to B20
B11 to B14
B7 to B10
B4 to B6
B1 to B3
Description
CRC (not internally computed)
Word2
Word1
Word0B
Word0A
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 185
0x110
DEN_TTX[1:5] TTX_[1:5]_DEF teletext block definition
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x118
0x120
0x128
0x130
Address:
Type:
Reset value:
DENC base address + 0x110 (DEN_TTX1), 0x118 (DEN_TTX2),
0x120 (DEN_TTX3), 0x128 (DEN_TTX4), 0x130 (DEN_TTX5)
RW
Undefined
Description
Bitfield Description
TTX_LX Each of these bits enables teletext on line X (ITU-R line numbering and 625 line systems).
Teletext line selections for other standards refer to the table below:
TTXDEL[2:0] Teletext data latency: The encoder clocks the first teletext data sample on the (2+txdl[2:0]) th rising edge of the master clock, following the rising edge of TTXS (teletext synchronization signal, supplied by the encoder). 1 0 0: default value
FP_TTXT Full page teletext mode enable
0:
1:
A Disabled
Enabled
A. Default mode when DENC_NRST pin is active (low level).
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
186 Register descriptions
TTX__[1:4]_DEF Bit field
TTX_L20
TTX_L21
TTX_L22
TTX_L23
TTX_L318
TTX_L319
TTX_L320
TTX_L321
TTX_L322
TTX_L323
TTX_L324
TTX_L325
TTX_L326
TTX_L327
TTX_L328
TTX_L6
TTX_L7
TTX_L8
TTX_L9
TTX_L10
TTX_L11
TTX_L12
TTX_L13
TTX_L14
TTX_L15
TTX_L16
TTX_L17
TTX_L18
TTX_L19
322
323
324
325
326
327
328
318
319
320
321
20
21
22
23
16
17
18
19
12
13
14
15
6
7
8
9
10
11
PAL BDGHIN line
(CCIR 625 line numbering)
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
268
269
270
271
272
273
274
275
276
277
278
PAL M line
(CCIR 525 line numbering)
NTSC M line
(SMPTE 525 line numbering)
Table 11: Teletext block definition for PAL and NTSC standards
275
276
277
278
279
280
281
271
272
273
274
23
24
25
26
19
20
21
22
15
16
17
18
9
10
11
12
13
14
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 187
0x138
TTX__[1:4]_DEF Bit field
TTX_L329
TTX_L330
TTX_L331
TTX_L332
TTX_L333
TTX_L334
TTX_L335
329
330
331
332
333
334
335
PAL BDGHIN line
(CCIR 625 line numbering)
(CCIR 525 line numbering)
279
280
281
282
283
284
285
PAL M line
282
283
284
285
286
287
288
NTSC M line
(SMPTE 525 line numbering)
Table 11: Teletext block definition for PAL and NTSC standards
DEN_CCF1 extended data for field 1
CCCF1: closed caption characters
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x140
Address:
Type:
Reset value:
DENC base address + 0x138 ( DEN_CCF11) , 0x140 ( DEN_CCF12)
RW
Undefined
Description
C11[7:1]
OPC11
C12[7:1]
OPC12
Bit field Description
First byte to encode in field1
Odd-parity bit of US-ASCII 7-bit character c11[7:1]
Second byte to encode in field1
Odd-parity bit of US-ASCII 7-bit character c12[7:1]
• Default value: none, but closed captions enabling without loading these registers issue a null character.
• DEN_CCF1 registers are never reset.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
188 Register descriptions
0x148
DEN_CCF2 extended data for field 2
CCCF2: closed caption characters,
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x150
Address:
Type:
Reset value:
DENC base address + 0x148 (DEN_CCF21), 0x150 (DEN_CCF22)
RW
Undefined
Description
C21[7:1]
OPC21
C12[7:1]
OPC22
Bit field Description
First byte to encode in field2
Odd-parity bit of US-ASCII 7-bit character c21[7:1]
Second byte to encode in field2
Odd-parity bit of US-ASCII 7-bit character c22[7:1]
• Default value: none, but closed captions enabling without loading these registers issue a null character.
• DEN_CCF2 registers are never reset.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 189
DEN_CLF1 insertion for field 1
CCLIF1: closed caption, extended data line
This register programs the TV line number of the closed caption and extended data encoded in field 1:
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x158
RW
00001111
525/60 system: (525-SMPTE line number convention)
Only lines 10 to 22 should be used for closed caption or extended data services. Lines one to nine contain the vertical synchronous pulses with equalizing pulses.
Bit field
L1[4:0] 0 0 0 0 0:
0 0 0 x x:
....
i code line (i+6)
....
11111:
Description
No line selected for closed caption encoding
Do not use these codes
(SMPTE) selected for encoding line 37 (SMPTE) selected
625/50 system: (625-CCIR/ITU-R line number convention)
Only lines 7 to 23 should be used for closed caption or extended data services.
Bit field
L1[4:0] 0 0 0 0 0:
....
i code line (i+6)
....
11111:
Description
No line selected for closed caption encoding
(CCIR) selected for encoding (i>0) line 37 (CCIR) selected
Default value = 01111 line 21 (525/60, 525-SMPTE line number convention), which corresponds to line 21 in l625/50 system,(625-CCIR line number convention)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
190 Register descriptions
DEN_CLF2 insertion for field 2
CCLIF2: closed caption/extended data line
This register programs the TV line number of the closed caption and extended data encoded in field 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
525/60 system: (525-SMPTE line number convention)
Only lines 273 to 284 should be used for closed caption or extended data services although it is possible to program over a wider range. Preceding lines contain the vertical synchronous pulses with equalizing pulses. If CGMS is allowed on lines 20 and 283 (525/60, 525-SMPTE line number convention), closed captions should not be programmed on these lines.
Bit field
L2[4:0] 0 0 0 0 0:
0 0 0 x x: i line (269 +i)
....
01111:
11111:
DENC base address + 0x160
RW
00001111
Description
No line selected for closed caption encoding
Do not use these codes
(SMPTE) selected for encoding
Line 284 (SMPTE) selected for encoding
Line 289 (SMPTE)
625/50 system: (625-CCIR line number convention)
Only lines 319 to 336 should be used for closed caption or extended data services although it is possible to program over a wider range. Preceding lines contain the vertical synchronous pulses with equalizing pulses,
Bit field l2[4:0] 0 0 0 0 0: i line (318 +i)
....
10010:
11111:
Description
No line selected for closed caption encoding
(CCIR) selected for encoding
Line 336 (CCIR) selected for encoding
Line 349 (CCIR)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 191
Default value = 01111 line 284 (525/60, 525-SMPTE line number convention, which corresponds to line 333 in 625/50 system, (625-CCIR line number convention)
DEN_REG_64 TTX_CONF
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x200
RW
01010000
Description
Do not change the value of bits 4 to 0.
Bit field
TTXT_ABCD[1:0]
TTXT100IRE
Description
Teletext standard selection
0 0
0 1
Teletext A
Teletext B teletext B in 625 line systems is known as World System
Teletext
1 0
A
1 1
Teletext C teletext C in 525 line systems is known as NABTS
Teletext D
Teletext waveform amplitude
70 IRE
1 100 IRE
A. Default mode when DENC_NRST pin is active (low level)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
192 Register descriptions
DEN_REG_65 DAC2MULT and TTXS
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x208
RW
10000010
Description
Bitfield Description
BCS_EN_2
BCS_EN_4
Brightness, Contrast and Saturation control by registers DEN_REG_69 to
DEN_REG_71 on 4:2:2 input
0:
A Disable
1: Enable
Brightness, Contrast and Saturation control by registers DEN_REG_69 to
DEN_REG_71 on 4:4:4 input
0: Disable
1:
Enable
TTX_MASK_OFF Masking of 2 bits in teletext framing code, depending on selected teletext standard
0:
Enable
1: Disable
DAC2_MULT[3:0] Multiplying factor on dac1_c digital signal before the digital to analog converters with
3.125% step
Bitvalue dac2_c value compared to default
0 0 0 0: 75.000%
0 0 0 1: 78.125%
0 0 1 0: 81.250%
0 0 1 1: 84.375%
...
...
100%
...
1 1 1 1: 121.875%
A. Default mode when DENC_NRST pin is active (low level)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 193
DEN_REG_69 Brightness
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved B[7:0]
Address:
Type:
Reset value:
DENC base address + 0x228
RW
10000000
The register contents are used by the following formula to adjust the luminance intensity of the display video image:
Y out
= Y in
+ b – 128
Where:
• Y in
is 8-bit input luminance,
• Y out
is the result of the brightness operation (still on 8 bits), saturated at 235
(16) or 254 (1) according to DEN_CFG6 bit MAXDYN ,
• b is brightness, an unsigned value with center at 128, default 128.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
194 Register descriptions
DEN_REG_70 Contrast
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved C[7:0]
Address:
Type:
Reset value:
DENC base address + 0x230
RW
00000000
The register contents are used by the following formula to adjust the relative difference between the display image higher and lower intensity luminance values:
Y out
=
(
Y in
– 128
) ( c + 128
)
--------------------------------------------------
128
+ 128
Where ,
• Y in
is 8-bit input luminance,
• Y out
is the result of the contrast operation (still on 8 bits ), saturated at 235 (16) or 254 (1) according to DEN_CFG6 bit MAXDYN ,
• c is contrast, two’s complement value from -128 to 127, default 0.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 195
DEN_REG_71 Saturation
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved S[7:0]
Address:
Type:
Reset value:
DENC base address + 0x238
RW
10000000
The register contents are used by the following formula to adjust the color intensity of the displayed video image:
Crout = s Crin –
128
128
)
+ 128
Cbout = s Cbin –
128
128
)
+ 128
Where:
• Crin and Cbin are the 8-bit input chroma,
• Crout and Cbout are the result of the saturation operation (still on 8 bits), saturated at 240 (16) or 254 (1) according to DEN_CFG6 bit MAXDYN ,
• s is the saturation value, unsigned value with centre at 128, default 128.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
196 Register descriptions
DEN_CFCOEF[0:8]Chroma filter coefficient 0 to 8
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8
0x240
(DEN_
CFCOEF0)
0x248
(DEN_
CFCOEF1)
0x250
(DEN_
CFCOEF2)
0x258
(DEN_
CFCOEF3)
0x260
(DEN_
CFCOEF4)
0x268
(DEN_
CFCOEF5)
0x270
(DEN_
CFCOEF6)
0x278
(DEN_
CFCOEF7)
0x280
(DEN_
CFCOEF8)
Address:
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Type:
Reset value:
7
FLT
_S
6 5 4 3 2 1 0
PLG_
DIV1
PLG_
DIV0
CH_
COEF0
[4:0]
CH_
COEF
8[8]
CH_COEF1[5:
0]
CH_COEF2[6:0]
CH_COEF3[6:0]
CH_COEF4[7:0]
CH_COEF5[7:0]
CH_COEF6[7:0]
CH_COEF7[7:0]
CH_COEF8[7:0]
DENC base address + 0x240 (DEN_CFCOEF0), 0x248,
0x250,....0x280 (DEN_CFCOEF8)
RW see table below
Description
These registers contain the nine coefficients and three control bits for the chroma filter, which are described in the table below. The coefficients are chosen to give the
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 197 required filter response for a specific application according to the symmetrical RIF filter equation:
H z = c
0
+ c
1 z
– 1
+ c
2 z
– 2
+
˙˙˙
+ c
7z
– 7
+ c
8 z
– 8
+ c
7 z
– 9
+
˙˙˙
+ c
2z
– 14
+ c
1 z
– 15
+ c
0 z
– 16
The register reset, or default, values give the coefficients for the SECAM square pixel mode.
Each register value is calculated by adding an offset value to the desired coefficient value, according to the relationship: register value = offset + actual coefficient value.
For instance, to obtain a coefficient value of five for c4, which has an offset of 32, the register DEN_CFCOEF4 must contain the value 100101, which is the binary equivalent of 32 + 5. The offset values for each coefficient are listed in the table below.
The sampling frequency of the filter is CKREF (27 MHz., 24.5454 MHz. or
29.5 MHz.).
Bitfield
CH_COEF8[7:0]
A
CH_COEF7[7:0]
CH_COEF6[7:0]
CH_COEF5[7:0]
CH_COEF4[7:0]
CH_COEF3[6:0]
CH_COEF2[6:0]
Description (offset & coefficient values in decimal)
Coefficient number 8 (ch_coef8); offset value = 0, reset value = 10000000, corresponding to c8 = 128
Coefficient number 7 (ch_coef7); offset value = 0, reset value = 01111011, corresponding to c7 = 123
Coefficient number 6 (ch_coef6); offset value = 0, reset value = 01101100, corresponding to c6 = 108
Coefficient number 5 (ch_coef5); offset value = 32, reset value = 01110111, corresponding to c5 = 87
Coefficient number 4 (ch_coef4); offset value = 32, reset value = 01011111, corresponding to c4 = 63
Coefficient number 3 (ch_coef3); offset value = 32, reset value = 1000111, corresponding to c3 = 39
Coefficient number 2 (ch_coef2); offset value = 64, reset value = 1010100, corresponding to c2 = 20
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
198 Register descriptions
Bitfield Description (offset & coefficient values in decimal)
CH_COEF1[5:0]
CH_COEF8[8]
CH_COEF0[4:0]
PLG_DIV[1:0]
FLT_S
Coefficient number 1 (ch_coef1); offset value = 32, reset value = 100111, corresponding to c1 = 7
Coefficient number 8 (ch_coef8) bit 8; reset value = 0, see ch_coef8[7:0] below
Coefficient number 0 (ch_coef0); offset value = 16, reset value = 10001, corresponding to c0 = 1
00: When sum of coefficients = 512 (dec.)
0:
1:
01: When sum of coefficients = 1024 (dec. reset value)
10: When sum of coefficients = 2048 (dec.)
11: When sum of coefficients = 4096 (dec.)
Use hard-wired coefficients for the chroma filter
Use register DEN_CFCOEF[0:8] values, default (reset) or programmed, to determine coefficients
Reserved Reset value: 0
A. The MSB of this coefficient value can be found in the DEN_CFCOEF1 register.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 199
DEN_CFG9 Chroma delay and luma filter control
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Address:
Type:
Reset value:
DENC base address + 0x288
RW
00100010
Description
This register contains the chroma path delay, referenced to luma one on S-VHS and
CVBS outputs, selection of input format mode, and three bits to control the luma filter. The following table describes the register’s functions.
Bitfield
FLT_YS
PLG_DIV_Y[1:0]
SET444_CVBS
Description
0:
1:
0:
1:
00:
01:
Use hard-wired coefficients for the luma filter
Use register DEN_LFCOEF[0:9] values, default (reset) or programmed, to determine coefficients
When sum of coefficients = 256 (dec.)
When sum of coefficients = 512 (dec. reset value)
10:
11:
When sum of coefficients = 1024 (dec.)
When sum of coefficients = 2048 (dec.)
Select input format to DENC for S-VHS and CVBS outputs:
4:2:2 input format (default)
4:4:4 input format
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
200 Register descriptions
Bitfield Description
DEL[3:0]
A Delay on chroma path with reference to luma path encoding (1 pixel = 2 periods of frequency f
CKREF
):
0010: -0.5 pixel delay (default for PAL/NTSC in 4:2:2 format on CVBS)
0011: -1.0 pixel delay
0100: -1.5 pixel delay
0101: -2.0 pixel delay
1100: +2.5 pixel delay
1101: +2.0 pixel delay
1110: +1.5 pixel delay
1111: +1.0 pixel delay
0000: +0.5 pixel delay (default for SECAM in 4:4:4 format on CVBS)
0110, 1000, 1010: +0.5 pixel delay
0001: 0.0 pixel delay (default for PAL/NTSC in 4:4:4 format or SECAM in 4:2:2 format on CVBS)
0111, 1001, 1011: 0.0 pixel delay
A. Bit DEN_CFG3.DEL_EN selects either default or programmed delays.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 201
DEN_LFCOEF[0:9]Luma filter coefficient 0 to 9
0x290
(DEN_
LFCOEF
0)
0x298
(DEN_
LFCOEF
1)
0x2A0
(DEN_
LFCOEF
2)
0x2A8
(DEN_
LFCOEF
3)
0x2B0
(DEN_
LFCOEF
4)
0x2B8
(DEN_
LFCOEF
5)
0x2C0
(DEN_
LFCOEF
6)
0x2C8
(DEN_
LFCOEF
7)
0x2D0
(DEN_
LFCOEF
8)
0x2D8
(DEN_
LFCOEF
9)
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
Reserved
7
LU_
COEF8
[8]
LU_
COEF0
[4:0]
LU_
COEF9
[9:8]
LU_COEF1[5:0]
LU_
COE
F
6[8]
LU_
COE
F7[8]
6 5 4 3 2 1 0
LU_COEF2[6:0]
LU_COEF3[6:0]
LU_COEF4[7:0]
LU_COEF5[7:0]
LU_COEF6[7:0]
LU_COEF7[7:0]
LU_COEF8[7:0]
LU_COEF9[7:0]
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
202
PRELIMINARY DATA
Register descriptions
Address:
Type:
Reset value:
DENC base address + 0x290 (DEN_LFCOEF0), 0x298,
0x2A0,....0x2D8 (DEN_LFCOEF9)
RW see table below
Description
These registers contain the ten coefficients for the luma filter, which are described in the table below. The coefficients give the required filter response for a specific application according to the symmetrical RIF filter equation: z
)
= l
0
+ l
1 z
– 1
+ l
2 z
– 2
+
˙˙˙
+ l
8 z
– 8
+ l
9 z
– 9
+ l
8 z
– 10
+
˙˙˙
+ l
2 z
– 16
+ l
1 z
– 17
+ l
0 z
The values of the coefficients lu_coef0 through to lu_coef7 must be entered in two’s complement form and the remainder as normal positive values.
The sampling frequency of the filter is CKREF (27 MHz, 24.5454 MHz or 29.5 MHz.)
The control bits for this filter are in register
.
Bitfield
LU_COEF9[7:0]
A
LU_COEF8[7:0]
A
LU_COEF7[7:0]
A
LU_COEF6[7:0]
A
LU_COEF5[7:0]
LU_COEF4[7:0]
LU_COEF3[6:0]
Description (coefficient values in decimal)
Coefficient number 9 (LU_COEF9); reset value = 11111000, corresponding to l9 =
+504
Coefficient number 8 (LU_COEF8); reset value = 00111101, corresponding to l8 =
+317
Coefficient number 7 (LU_COEF7); reset value = 00000111, corresponding to l7 =
+7
Coefficient number 6 (LU_COEF6); reset value = 10101100, corresponding to l6 =
-84
Coefficient number 5 (LU_COEF5); reset value = 11111011, corresponding to l5 = -5
Coefficient number 4 (LU_COEF4); reset value = 00011111, corresponding to l4 =
+31
Coefficient number 3 (LU_COEF3); reset value = 0000011, corresponding to l3 = +3
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 203
Bitfield Description (coefficient values in decimal)
LU_COEF7[8]
LU_COEF2[6:0]
LU_COEF6[8]
LU_COEF1[5:0]
LU_COEF9[9:8]
LU_COEF0[4:0]
LU_COEF8[8]
Coefficient number 7 (LU_COEF7) bit 8; reset value = 0, see lu_coef7[7:0] below
Coefficient number 2 (LU_COEF2); reset value = 1110111, corresponding to l2 = -9
Coefficient number 6 (LU_COEF6) bit 8; reset value = 1, see lu_coef6[7:0] below
Coefficient number 1 (LU_COEF1); reset value = 111111, corresponding to l1 = -1
Coefficient number 9 (LU_COEF9) bits 8 & 9, reset value = 01, see lu_coef9[7:0] below
Coefficient number 0 (LU_COEF0); reset value = 00001, corresponding to l0 = +1
Coefficient number 8 (LU_COEF8) bit 8; reset value = 1, see lu_coef8[7:0] below
Reserved Reset value: 0
A. The MSB(s) of these coefficient values can be found in one of the above DEN_LFCOEF registers.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
204
PRELIMINARY DATA
Register descriptions
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Video front end (VFE)
5
5.1 Overview
The video front end (VFE) extracts embedded synchronization signals, ancillary data and video data from 2 YCbCr streams in the digital video port (DVP). Ancillary data is fully decoded and is sent to DRAM when the DECODING ENABLE ancillary data signal is enabled. Video data is also decoded and sent to DRAM after horizontal and vertical filtering when the DECODING ENABLE video signal is enabled. The samples are inside windows separately defined for the top and bottom field.
If the YCbCr stream is not 601_656 compliant, external horizontal and vertical synchronization signals are supported.
The video front end also includes the video timing generator which must be the slave of one DVP or used in master mode.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
206 System configuration
5.2 System configuration
This sections provides a view of a gamma-based architecture, as implemented in an
ST40 device.
RGB888
Digital
BLITTER
ENGINE capture bkg color
GDP
GDP
GDP
GDP cursor
HSYNC, VSYNC, BNOTT
GAMMA
External
Memory system
Interconnect
YCbCr 4:2:2
(Raster storage)
+ VBI data
VFE
DVP (1) D1
IN
(1)
DVP (2) D1
IN
(2) syncs
VTG
Audio
Capture
Port
Audio player
PCM
IN
1
PCM
IN
2
PCM
OUT
Figure 61: ST40 gamma architecture
Each DVP module can capture a video input stream in the local memory, with an optional resizing operation (downsize only).
The video buffers, once stored in the external memory, can be displayed using a GDP pipeline, or handled by the blitter under the CPU’s control.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
VFE module 207
Ancillary data such as close caption or teletext which is included in the input stream can be captured in a separate buffer for post-processing by the ST40 CPU.
The video input sync may be used as a master sync reference for the device. The external VSYNC event can optionally generate an interrupt to the ST40 CPU.
5.3 VFE module
The VFE module regroups two DVP submodules described in
Section 5.6: DVP module architecture on page 214
of this document and the VTG submodule described in
Section 5.7: Video timing generator (VTG) on page 222 . A block diagram
of the VFE is shown in
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
CPU_CK
DIN_I_REG_DATA_IN[31:0]
DIN_I_REG_OPC[7:0]
DIN_I_REG_REQ
DIN_I_REG_ADDRESS[13:2]
DIN_I_REG_BE[3:0]
DIN_O_REG_R_DATA[31:0]
DIN_O_REG_R_REQ
DIN_O_REG_R_OPC
DIN_O_DVP0_VID_REQ
DIN_O_DVP0_VID_ADD [31:4
DIN_O_DVP0_VID_BYTE_EN [15:0]
DIN_O_DVP0_VID_DATA [127:0]
DIN_O_DVP0_VID_OPC [7:0]
DIN_O_DVP0_VID_EOP
DIN_O_DVP0_VID_TID4
DIN_I_DVP0_VID_GRANT
DIN_I_DVP0_VID_VALID
DIN_O_DVP0_ANC_REQ
DIN_I_DVP0_ANC_GRANT
DIN_O_DVP0_ANC_ADD [31:4]
DIN_O_DVP0_ANC_BYTE_EN [15:0]
DIN_O_DVP0_ANC_DATA [127:0]
DIN_O_DVP0_ANC_OPC [7:0]
DIN_O_DVP0_ANC_EOP
DIN_O_DVP0_VID_TID4
DIN_I_DVP0_ANC_VALID
DIN_O_DVP1_VID_REQ
DIN_O_DVP1_VID_ADD [31:4
DIN_O_DVP1_VID_BYTE_EN [15:0]
DIN_O_DVP1_VID_DATA [127:0]
DIN_O_DVP1_VID_OPC [7:0]
DIN_O_DVP1_VID_EOP
DIN_O_DVP1_VID_TID4
DIN_I_DVP1_VID_GRANT
DIN_I_DVP1_VID_VALID
DIN_O_DVP1_ANC_REQ
DIN_I_DVP1_ANC_GRANT
DIN_O_DVP1_ANC_ADD [31:4]
DIN_O_DVP1_ANC_BYTE_EN [15:0]
DIN_O_DVP1_ANC_DATA [127:0]
DIN_O_DVP1_ANC_OPC [7:0]
DIN_O_DVP1_ANC_EOP
DIN_O_DVP1_VID_TID4
DIN_I_DVP1_ANC_VALID
PRELIMINARY DATA
Register summary 209
5.4 Register summary
Table 13 provide a summary of the VFE registers for the DVP and
VTG submodules. The addresses are given from a base address:
• DVP0 = 0x000,
• DVP1 = 0x100,
• VTG = 0x200.
Register name where n = 0 to 1
DVP[N]_CTL
DVP[N]_TFO
DVP[N]_TFS
DVP[N]_BFO
DVP[N]_BFS
DVP[N]_VTP
DVP[N]_VBP
DVP[N]_VMP
DVP[N]_CVS
Description Type
Control register, see
Top field offset (h & v, with respect to
(0,0)), see
Top field stop (h & v, with respect to
(0,0)), see
Bottom field offset (h & v, with respect to (0,0)), see
RW
RW
RW
RW
Bottom field stop (h & v, with respect to (0,0)), see
Video top pointer (memory location for top-left pixel), see
RW
RW
Video bottom pointer (memory location for top-left pixel), see
Video memory pitch, see
Captured video size, see
Table 12: DVP address map
RW
RW
RW
Address offset
0x[n]00
0x[n]04
0x[n]08
0x[n]0C
0x[n]10
0x[n]14
0x[n]18
0x[n]1C
0x[n]20
Access size
32
32
32
32
32
32
32
32
32
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
210
PRELIMINARY DATA
Register summary
Register name where n = 0 to 1
DVP[N]_VSD
DVP[N]_HSD
DVP[N]_HLL
DVP[N]_HSRC
DVP[N]_HFC
DVP[N]_VSRC
DVP[N]_VFC
DVP[N]_ITM
DVP[N]_ITS
DVP[N]_STA
DVP[N]_LNSTA
DVP[N]_HLFLN
DVP[N]_ABA
Description Type
Vertical synchro delay, see
Horizontal synchro delay, see
Half line length, see
Horizontal sample rate converter configuration, see
Horizontal filter coefficients (10 addresses), see
Vertical sample rate converter configuration, see
Vertical filter coefficients (6 addresses), see
DVP interrupt mask, see
DVP interrupt status, see
RW
RW
RW
RW
RW
RW
RW
RW
RO
DVP interrupt register, see
Line number status, see
Half lines per field, see
Ancillary data base address, see
Table 12: DVP address map
RO
RO
RW
RW
Address offset
0x[n]24
0x[n]28
0x[n]2C
0x[n]30
0x[n]34 to
0x[n]58
0x[n]60
0x[n]64 to
0x[n]78
0x[n]98
0x[n]9C
0x[n]A0
0x[n]A4
0x[n]A8
0x[n]Ac
Access size
32
32
32
32
32 each
32
32 each
32
32
32
32
32
32
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register summary 211
Register name where n = 0 to 1
DVP[N]_AEA
Description Type
Address offset
DVP[N]_APS
DVP[N]_PKZ
Ancillary data end address, see
Ancillary data page size, see
RW
RW
Packet size on SuperHyway protocol, see
Table 12: DVP address map
RW
0x[n]B0
0x[n]B4
0x[n]FC
Table 13 provides a summary of the VFE registers for the VTG module.
Access size
32
32
32
Register name
VTG_MOD
VTG_CLKLN
VTG_H_HD
VTG_TOP_V_VD
VTG_BOT_V_VD
VTG_TOP_V_HD
Description
Video timing generator mode of operation, see
Number of samples per line, see
HSYNC output rising edge, see
VSYNC delay from line counter clear for output rising edge on top field in line units, see
VSYNC delay from line counter clear for output rising edge on bottom field in line units, see
VSYNC delay from sample counter clear for output rising edge in sample units on top field, see
Table 13: VTG address map
RW
RW
RW
RW
RW
RW
Type
Addres s offset
0x224
Access size
32
0x228
0x22C
0x230
0x234
0x238
32
32
32
32
32
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
212
PRELIMINARY DATA
Register summary
Register name
VTG_BOT_V_HD
VTG_HLFLN
VTG_DRST
VTG_ITM
VTG_ITS
VTG_STA
Description
VSYNC delay from sample counter clear for output rising edge in sample units on bottom field, see
Half lines per field, see
VTG soft reset, see
Interrupt mask, see
Interrupt status, see
Status register, see
Table 13: VTG address map
RW
RW
WO
RW
RO
RO
Type
Addres s offset
0x23C
Access size
32
0x240
0x248
0x298
0x29C
0x2A0
32
32
32
32
32
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
VFE phase relations
5.5 VFE phase relations
The outputs of VTG are related to PIX2_CK as shown below. The derived PIX_CK must be phased to take into account the relative position of the signals.
213
PIX2_CK
VTG_O_VREF
VTG_O_HREF
VTG_O_BNOTT
VTG_O_PIX_CNT clk_per_line/2-1
0 top field
1
PIX2_CK
VTG_O_VREF
VTG_O_HREF
VTG_O_BNOTT
VTG_O_PIX_CNT bottom field clk_per_line/4-1 clk_per_line/4 clk_per_line/4+1
PIX_CK to generate
Figure 63: Outputs of VTG
31 32 clk_per_line/4+32
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
214 DVP module architecture
5.6 DVP module architecture
5.6.1 List of features
DVP main features are:
• ITU-R BT.601/656 compliance, 525/60i 720 x 480, 625/50i 720 x 576 nominal formats,
• support for SQ pixel video, 525/60i 640 x 480, 625/50i 768 x 576,
• external sync support for video streams that do not provide embedded code words (SAV/EAV protocol),
• video data is captured into the system local memory, in YCbCr4:2:2 raster format (compatible with gamma 2D-blitter as well as with the GDP display),
• user-defined capture window to select a subregion within the active area of the incoming video,
• continuous resampling capability from x1 to x0.1, both horizontally and vertically, using a 5-taps horizontal filter, and a 3-taps vertical filter,
• generic ancillary data capture processor (SMPTE291M, ITU-RBT-1364), in a paged circular buffer, for post-processing by a host CPU,
• the extracted (or separately provided) video timebase is provided to the system to become the master reference.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
DVP module architecture
PRELIMINARY DATA
5.6.2 DVP block diagram
DVP_I_HSI
DVP_I_VSI
8
DVP_I_
YCBCR[7:0]
PIX2_CK protocol
VIDEO_DATA
ANC_DATA protocol
601/656 decoder
VF
Delay
Line
Delay
Line
5-taps
H-SRC
HF rd wr
REQ, OPC, BE, EOP, TID
GRANT, R_REQ, R_OPC,
R_EOP
Video
capture
FIFO
VIDEO_ADDRESS
ANC_ADDRESS
REQ, OPC, BE, EOP, TID
Ancillary Data
Capture
FIFO
DVP reg module
215
DIN_I_DVP0_HSI
VTG CPU
Figure 64: DVP module functional block diagram
The design is a modular architecture, similar to the one used in the gamma blitter engine. It must be split into a chain of independent sub-blocks, that are compliant with the in/out protocol defined for the blitter.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
216 DVP module architecture
5.6.3 Operation
5.6.3.1 DVP submodule overview
Ancillary data, when enabled, is systematically detected and sent on the ANC_DATA bus with protocol signals ( FIRST_PIXEL , LAST_PIXEL and NEXT_VALID_ANC ). The first mode reads the number of words present in the detected packet to enable detection of two successive ancillary packets. The second mode stores a fixed number of bytes after the detected header ignoring the real length of packet. If the fixed number is greater than the effective length, one or more headers occurring inside the fixed number are not taken into account.
Video data, when enabled, is detected into the window given by registers loaded by
CPU. The VIDEO_DATA bus is sent with protocol associated (that is
NEXT_VALID_VIDEO , FIRST_LINE , FIRST_PIXEL , LAST_LINE and LAST_PIXEL ) to be processed before sending to DRAM.
5.6.3.2 Bandwidth considerations
The general formula to estimate the bandwidth requirement (BR) of the DVP system is:
BR (in MByte/s) = (Pixel frequency in MHz) x 2 x horizontal resampling factor
Examples:
• 601 rate / x1: BR = 13.5 x 2 x 1 = 27 MByte/s
• PAL SQ rate / x1: BR = 14.75 x 2 x 1 = 29.5 MByte/s
• 601 rate / x0.4: BR = 13.5 x 2 x 0.4 = 10.8 MByte/s
The vertical resizing factor does not impact the peak bandwidth, but only the average bandwidth.
5.6.4 Description of unitary functions
5.6.4.1 SuperHyway interface
The DVP SuperHyway interface includes:
• an initiator interface to capture the video data into the external memory. The data is buffered into a x128 FIFO,
• an initiator interface to capture the ancillary data into the external memory,
• a target interface so that the CPU can access its registers.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
DVP module architecture
PRELIMINARY DATA
217
5.6.4.2 Description of the video decoder.
The frame architecture for an ITU-R BT.656 compliant video is shown in
.
Y, Cb,Cr are multiplexed at twice the pixel rate on an 8-bit bus, according to a 4:2:2 sampling pattern.
External HSI (optional)
Embedded H flag
EAV SAV
TF_VBLK
Top Field Blanking
HBLK
TF_VAV
HAV
Top Field Active Video
BF_VBLK
Bottom Field Blanking
BF_VAV
Bottom Field Active Video
EAV...........
SAV...........
HBLK........
HAV..........
TF_VBLK.
TF_VAV.....
BF_VBLK..
BF_VAV....
End of Active Video
Start of Active Video
Horizontal Blanking
Horizontal Active Video
Top Field Vertical Blanking
Top Field Vertical Active Video
Bottom Field Vertical Blanking
Bottom Field Vertical Active Video
Note: HSI and VSI are shown as active-high signals, but active-low signals are also supported
Figure 65: Interlaced video format derived from ITU-R BT.656
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
218
PRELIMINARY DATA
DVP module architecture
An SAV and EAV header is made of four consecutive code words FF-00-00-XY:
• a code word of all ones,
• two code words of all zeros,
• and a code word including F (top field/bottom field), V (blanking/active), H
(horizontal) and P3, P2, P1, P0 which are parity bits.
The fourth code word (XY) depends on the value of F, V and H. (See
1
1
1
1
1
1
1
1
1
1
0
0
0
0
1
1
0
0
1
0
0
1
1
1
0
1
0
0
1
1
0
1
1
0
0
0
1
1
1
0
0
1
0
1
1
0
1
0
Table 14: -XY code word
1
1
1
0
0
1
0
0
1
0
1
0
1
0
0
1
Golden rules
• SAV sequence is identified with H = 0, and EAV with H = 1,
• F and V can only change during EAV,
• Bit 7 is always set to 1.
0x80
0x9D
0xAB
0xB6
0xC7
0xDA
0xEC
0xF1 x x x x x x x x
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
DVP module architecture
PRELIMINARY DATA
219
Table 15 shows typical frame and field parameters for popular standard definition
formats.
Standard Parameter Size Unit
PixClk frequency
EAV
SAV
HBLK
HAV
TF_VBLK
BF_BLK
TF_VAV
BF_VAV
PixClk frequency
EAV
SAV
HBLK
HAV
TF_VBLK
BF_BLK
TF_VAV
BF_VAV
13.5
4
4
268
1440
19(23)
19(22)
244(240)
243(240)
13.5
4
4
268
1440
24
25
288
288
MHz
PIXCLK2X cycles lines
MHz
PIXCLK2X cycles lines
Table 15: ITU-R BT656 parameters for 525/60i and 625/50i formats
There are no restrictions on the values of the different parameters.
The interface must support the customized 656-like format. For instance, 525 lines with 511 active lines (256 top + 255 bottom), or square pixel formats (640 x 480 active area or 768 x 576 active area), and so on.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
220
PRELIMINARY DATA
DVP module architecture
The only limitation is the PixClock2X highest frequency, which is 29.5 MHz.
The 8-bit multiplexed luma/chroma bus scheme is given below: one line (active line = n pixels)
BLANKING CODEWORDS
0x80/0x10/0x80/0x10....
ACTIVE VIDEO DATA
1st pixel
Pix0
Pix1
Pix2
Pix3
Pix4 Pix(n-2)
Pix(n-1)
Figure 66: 4:2:2 multiplex scheme/byte ordering
• The first active pixel (pixel 0) is always a complete YCbCr pixel. The last active pixel (n) is nominally a Y-only pixel, but the DVP must support external chroma decoders that generate a variable number of pixels per line, for example, if there is a very poor quality analog source.
• More generally, even-indexed pixels are YCbCr pixels (24 bits), odd-indexed pixels are Y-only pixels (8 bits). The average pixel size is 16-bit.
• Y nominal range is 16 to 235 (black to white), 1 to 254 is the valid range that can be supported by the DVP module.
• Cb and Cr nominal range is 16 to 240. 1 to 254 is the valid range that can be supported by the DVP module.
• 0 and 255 are reserved words.
• XY parity errors are detected and corrected where possible.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
DVP module architecture
PRELIMINARY DATA
221
5.6.4.3 Ancillary data decoder
When the ancillary page size is extracted from the stream the check-sum byte is stored at the end of data.
Parity is not checked.
5.6.4.4 Video 4:2:2 to 4:4:4 converter
For the 4:2:2 to 4:4:4 conversion, the interpolation scheme is similar to the one used in the blitter.
5.6.4.5 2-D resize using the vertical filter
The DVP can vertically downsize the incoming video stream, using a 3-tap polyphase filter, with eight phases. The filter can be used without resizing, just to low-pass filter the incoming video.
The delay lines are sized to process square pixel PAL video:
• 1 delay line = 2 x 384 x 24 bits = 2.25 KBytes,
• the filter is programmable: all the coefficients can be directly loaded by the CPU.
5.6.4.6 2-D resize using the horizontal filter
The horizontal sample rate converter uses a polyphase-filter architecture, with five taps and eight phases.
The block itself has the capability to apply any reducing factor, with no limitation, only the number of taps will limit the resampling quality.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
222
PRELIMINARY DATA
Video timing generator (VTG)
5.7 Video timing generator (VTG)
The video timing generator is either master or slave of the digital video port (DVP).
As master it delivers HSYNC (horizontal synchronization signal) and VSYNC
(vertical synchronization signal) starting from hard or soft reset and calibrated by register information such as the number of samples per line and the number of half lines in a field).
As a slave, HSYNC and VSYNC are generated from incoming signals HSYNC_IN and
VSYNC_IN ; the line length is not fixed and the number of half lines per field depends on the interval between two VSYNC_IN signals.
5.7.1 List of features
The main features of the VTG are:
• in master mode, it automatically generates synchronization signals and associated counters values,
• in slave mode, it re-generates synchronization signals and associated counter values dependant upon the incoming synchronization signals.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Video timing generator (VTG)
PRELIMINARY DATA
5.7.2 Block diagram
dvp0_hsync dvp1_hsync pix2_ck0 pix2_ck1 dvp0_vsync dvp1_vsync hardreset
13 vtg_sample_cnt pix2clk vtg_hsync vtg_pix_cnt[11:0] vref vsync hdo, hds, clk_per_line[12:0], vtg_mode hardreset href_pulse halfline hardreset href hsync vtg_IRQ vtg_vsync halflinecnt[11:0] vref_pulse ext_bnott vtg_halflinecnt halflinecnt[11:0] bnott hardreset pix2clk vdo, vds, halflines_per_vert[11:0], vtg_mode vtg_reg_module
223
Figure 67: VTG functional block diagram
CPU
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
224
PRELIMINARY DATA
Video timing generator (VTG)
5.7.3 Description of unitary functions
5.7.3.1 Master mode
In this mode HSYNC_IN and VSYNC_IN are not taken into account. When a hard or soft reset occurs SAMPLECNT and HALFLINECNT are cleared, at the same time
HREF and VREF are made activate, SAMPLECNT counts until CLK_PER_LINE is reached and then cleared, a new HREF is activated and so on. The counter halflinecnt is incremented each time SAMPLECNT equals CLK_PER_LINE/2 and
CLK_PER_LINE (half line signal). When this counter reaches
HALFLINES_PER_VERT minus one ( HLFLN - 1 in the following diagram) a new
VREF is activated and HALFLINECNT is cleared.
The counter LINECNT is set to one when HREF and VREF occur at the same time and cleared when VREF occurs without HREF and incremented by HREF .
pix2clk reset href vref bnott halfline hsync reset href halfline vref bnott vsync
1
0 1
2
2 3
3
4 5 6
4
7
5 (hlfln-1)/2
(hlfln+1)/2 0
(hlfln-1) 0 1
1
VDO
VDS
0 1 2 31 32 reference edge
HDO
HDS
Figure 68: Unitary functions in master mode
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Video timing generator (VTG)
PRELIMINARY DATA
225
5.7.3.2 Slave mode
In slave mode the VTG is driven by external synchronization signals ( HSYNC_IN and VSYNC_IN ) coming from the DVP module. These signals are delivered synchronously using the VTG clock.
The coincidence of HSYNC_IN and VSYNC_IN at the beginning of the top field is considered perfect. The VTG operates the same as in master mode, except that the signals HREF and VREF are derived from the incoming synchronization instead of being determined by the values of the SAMPLECNT , HALFLINECNT and LINECNT counters.
pix2clk vsync_in hsync_in href vref bnott halfline hsync vsync_in hsync_in href halfline vref bnott vsync
1
0 1
2
2 3
3
4 5 6
4
7
VDO
VDS
0 1 2 31 32 reference edge
5 n-1
HDO
HDS
Figure 69: Unitary functions in slave mode n 0
0
1
1
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
226
PRELIMINARY DATA
YCbCr 422 memory storage
5.8 YCbCr 422 memory storage
128-bit word address
BIT 127
Y Cr Y Cb
PIXEL X+6
PIXEL X+7
BYTE ADDRESS INCREASES
Y Cr Y Cb
31 24 23 16 15 8 7
Y Cr Y Cb
0
Y
3
Cr
2
Y
1
BIT 0
Cb
0
PIXEL X+4
PIXEL X+5
PIXEL X+2
PIXEL X+3
16-BIT PIXEL ADDRESS INCREASES
PIXEL X
PIXEL X+1
- Memory address for pixel (0,0) must be aligned on a 32-bit word address boundary
- The pitch value must be a multiple of 4 bytes
- X is even on that diagram
Figure 70: YCbCr 4:2:2 (16 bpp)
5.9 Clocks and resets
5.9.1 Clock description
CPU_CK is the clock used for the register interface. It runs at 100 MHz
ST-CK is the clock used for the interconnect interface. It runs at 111 MHz.
PIX_2X_CK is the pixel 2X clock. It runs at up to 30 MHz.
5.9.2 Reset generation
The hard reset is resynchronized to each clock and generates a reset active low synchronous to the falling edge of the clock. This reset is used as an asynchronous reset on all the FF.
To buffer this net, a clock tree is inserted with relaxed conditions for skew.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Interface description 227 hard_reset tst_mux_nrst
1
0 block_nrst clock tree block_ck en tst_nrst_mux
Figure 71: Reset generation
5.10 Interface description
5.10.1 Ancillary data SuperHyway initiator
This initiator performs fixed burst size equal to half FIFO size. The FIFO size is calculated by taking into consideration all the real process of the ST40.
5.10.2 Video data SuperHyway initiator
This initiator performs fixed burst size equal to half FIFO size except for the first and last burst.The FIFO size is calculated by taking into consideration all the real process of the ST40.
Half FIFO size = sub multiple of the memory Page
Page frontier line start address line stop address nice boundary
ADCS 7225754C
1st Burst 2nd Burst 3rd Burst 4th Burst 5th Burst 6th Burst
Figure 72: Video data SuperHyway initiator
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
228 Interface description
5.10.3 CPU interface SuperHyway target
The width of the address bus is only 13:2 because all the registers are 32-bit registers and because at the top level of ST40, the request is sent to the digital input subsystem only if the CPU wants to speak to a digital input subsystem register. It means a predecoding of the address is needed to filter the request.
cpu_ck req r_req opc/add/be/data r_datar_opc
Figure 73: CPU timing interface
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register mapping
5.11 Register mapping
Video Front End subsytem_start_Address
DVP0 Base Address
DVP1 Base Address
VTG Base Address
0x000
0x100
0x200
0x300
0x400
0x500
0x600
DVP0
DVP1
VTG unused unused unused unused
32-bit BYTE ADDRESS
31 24 23 16 15
Base Address selection
32-bit Register selection
Figure 74: VFE register map
8 7 0
Unused
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
64 x 32-bit
229
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
230
5.12 Register descriptions
Register descriptions
DVP[n]_CTL DVP control register
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x00
Address:
Type:
Reset value:
Table 16: DVP control register
DVP[n] base address + 0x00
RW
0
Description
The DVP control register provides the operating mode of the DVP pipe, for the current viewport display.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 231
ENA_VIDEO
ENA_ANCILLARY_DATA
EXT_SYNC_POLARITY
PHASE
Field Description
0:No video data are captured
1:Video data are captured into the device local memory validated by vertical synchronous signal
0:No ancillary data are captured
1:Ancillary data are captured into the device local memory validated by vertical synchronous signal
0:negative for both horizontal and vertical, no meaning if bit[4] = 0
1:positive for both horizontal and vertical non double-buffered (taken into account when loaded by CPU) first pixel signification of capture window
00: first sample is CB
01: first sample is Y
10: first sample is CR
11: first sample is Y validated by vertical synchronous signal
VSYNC_BOT_HALF_LINE_EN 0:VSOUT starts at the beginning of the last top field line
1:VSOUT starts at the middle of the last top field line
EXTERNAL_SYNC
H
REF
_POLARITY validated by vertical synchronous signal
0:Extract the H/V/F reference sync flags from embedded EAV/SAV codes
(H becomes H ref
, V becomes V ref
)
1:Use external HSI/VSI signals as sync reference
(HSI becomes H ref
, VSI becomes V ref
) non double-buffered (taken into account when loaded by CPU)
0:The negative edge of H ref the horizontal counter reset.
(as defined by bit[4]) is taken as reference for
1:The positive edge of H ref the horizontal counter reset
(as defined by bit[4]) is taken as reference for
Note: In EAV/SAV mode, 0 means SAV is the reference, 1 means EAV is the reference.
V
REF
_POLARITY 0:The negative edge of V ref
(as defined by bit[4]) is taken as reference for the vertical counter reset.
1:The positive edge of V ref
(as defined by bit[4]) is taken as reference for the vertical counter reset non double-buffered (taken into account when loaded by CPU)
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
232 Register descriptions
Field
ENA_H-RESIZE
SYNCHRO_PHASE_NOTOK
MIX_CAPT_EN
Description
0:The horizontal resize engine is disabled
1:The horizontal resize engine is enabled
ENA_V-RESIZE validated by vertical synchronous signal
0:The vertical resize engine is disabled
1:The vertical resize engine is enabled validated by vertical synchronous signal
VALID_ANC_PAGE_SIZE_EXT 0 ANC_PAGE_SIZE extracted from ancillary data bit[5:0] from header sixth bit
1 ANC_PAGE_SIZE given by DVP[n]_APS register validated by vertical synchronous signal
0: external vertical and horizontal synchronization signals are presumed to be in phase to initialize a top field
1: external vertical and horizontal synchronization signals may be out of phase (in this case the vertical synchronization signal must be earlier or later than horizontal synchronization signal with a maximum of 1/4 of line length non double-buffered (taken into account when loaded by CPU) mixer data capture enable
MIX_CAPT_PREREQUEST loaded by VTG_VREF once MIX_CAPT_PREREQUEST set to 1 validated by vertical synchronous signal
DVP is configured to capture mixer data. This non double-buffered bit allows VTG_REF to load MIX_CAPT_EN into DVP, then data for mixer are captured directly non double-buffered (taken into account when loaded by CPU)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 233
DVP[n]_TFO DVP top field offset
0x4
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDO XDO
Address:
Type:
Reset value:
DVP[n] base address + 0x4
RW
0
Description
The DVP top field offset register provides the x,y location of the viewport top-left pixel, with respect to the current video timebase (one pixel = two samples).
Field Bit(s) Description
XDO [12:0] X location for the first pixel of the viewport (left), in sample unit
YDO [26:16] Y location for the first line of the viewport (top), with respect to field numbering
DVP[n]_TFS DVP top field stop
0x8
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDS XDS
Address:
Type:
Reset value:
DVP[n] base address + 0x8
RW
0
Description
The DVP top field stop register provides the x,y location of the viewport top right pixel, with respect to the current video timebase (one pixel = two samples).
Field Bit(s) Description
XDS [12:0] X location for the last pixel of the viewport (right), in sample unit
YDS [26:16] Y location for the last line of the viewport (bottom), with respect to field numbering
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
234 Register descriptions
DVP[n]_BFO DVP bottom field offset
0xC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDO XDO
Address:
Type:
Reset value:
DVP[n] base address + 0xC
RW
0
Description
The DVP bottom field offset register provides the x,y location of the viewport bottom-left pixel, with respect to the current video timebase (one pixel = two samples).
Field Bit(s) Description
XDO [12:0] X location for the first pixel of the viewport (left), in sample unit
YDO [26:16] Y location for the first line of the viewport (top), with respect to field numbering
DVP[n]_BFS DVP bottom field stop
0x10
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
YDS XDS
Address:
Type:
Reset value:
DVP[n] base address + 0x10
RW
0
Description
The DVP bottom field stop register provides the x,y location of the viewport bottom-right pixel, with respect to the current video timebase (one pixel = two samples).
Field Bit(s) Description
XDS [12:0] X location for the last pixel of the viewport (right), in sample unit
YDS [26:16] Y location for the last line of the viewport (bottom), with respect to field numbering
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 235
DVP[n]_VTP DVP video top field pointer
0x14
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK POINTER
Address:
Type:
Reset value:
DVP[n] base address + 0x14
RW
0
Description
The DVP video top field pointer register is a 32-bit register containing the memory location for the top field first pixel to be stored, that is the top-left corner.
Field
POINTER
BANK
Bit(s) Description
[25:0] Top field first pixel byte address, in the selected 64 MByte bank (note that the whole captured video frame must be totally included into the same bank)
[31:26] 64-MByte bank number
DVP[n]_VBP DVP video bottom field pointer
0x18
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK POINTER
Address:
Type:
Reset value:
DVP[n] base address + 0x18
RW
0
Description
The DVP video bottom field pointer register is a 32-bit register containing the memory location for the bottom field first pixel to be stored, that is the top-left corner.
Field
POINTER
BANK
Bit(s) Description
[25:0] Bottom field first pixel byte address, in the selected 64 MByte bank
(note that the whole captured video frame must be totally included into the same bank)
[31:26] 64 MByte bank number
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
236 Register descriptions
DVP[n]_VMP DVP video memory pitch
0x1C
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PITCH VALUE
Address:
Type:
Reset value:
DVP[n] base address + 0x1C
RW
0
Description
The DVP video memory pitch register contains the memory pitch for the captured video, as stored in the memory.
Field Bit(s) Description
PITCH_VALUE [12:0] Memory pitch for the captured video (Note: the pitch is the distance inside the memory, in byte unit, between two vertically adjacent pixels within a field)
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 237
DVP[n]_CVS DVP captured video size
0x20
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 1514131211 10 9 8 7 6 5 4 3 2 1 0
BOT_SIZE
RELATION
TOP_VIDEO_WINDOW_HEIGHT PIXMAP_WIDTH
Address:
Type:
Reset value:
DVP[n] base address + 0x20
RW
0
Description
The DVP captured video size register provides the size of the displayed pixmap attached to the viewport.
Field Bit(s) Description
PIXMAP_WIDTH
TOP_VIDEO_WINDOW
_HEIGHT
[10:0] Pixmap width, in pixel unit
[26:16] Pixmap height, in line unit, being defined as the number of lines that must be read from memory for the current FIELD
IN AN INTERLACED DISPLAY
BOT_SIZE_RELATION [31:30 00: bottom size equal top size
01: bottom size equal top size plus 1
10: bottom size equal top size minus 1
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
238 Register descriptions
DVP[n]_VSD DVP vertical synchronization delay
0xC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
V_DELAY H_DELAY
Address:
Type:
Reset value:
DVP[n] base address + 0x24
RW
0
Description
The DVP vertical synchronization delay register provides the size of the delay of
VSOUT :
Top field:
• H_DELAY is the delay of VSOUT from sample counter clear,
• V_DELAY is the delay from line counter clear,
• The total delay from sample counter clear is:
H_DELAY + V_DELAY * samples per line .
Bottom field:
• external synchros or (internal synchros with
DVP[N]_CTL.VSYNC_BOT_HALF_LINE_EN
= 0):
H_DELAY is the delay of VSOUT in samples units from external vertical synchro input,
V_DELAY is the delay from line counter clear,
• the total number of samples delay from vertical synchronization input is:
H_DELAY + V_DELAY * samples per line ,
• internal synchros with DVP[N]_CTL.VSYNC_BOT_HALF_LINE_EN
= 1 this delay becomes:
H_DELAY + V_DELAY * samples per line +
DVP[n]_HLL.HALF_LINE_LENGTH
to provide VSOUT on the bottom field at the middle of the last line of the top field.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 239
The H_DELAY and V_DELAY values must be strictly lower than the number of samples per line.
Field
H_DELAY
V_DELAYT
Bit(s)
[12:0]
[26:16]
Description horizontal delay, in sample unit vertical delay, in line units
DVP[n]_HSD DVP horizontal synchronization delay
0xC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Reserved H_DELAY
Address:
Type:
Reset value:
DVP[n] base address + 0x28
RW
0
Description
The DVP horizontal synchronization delay register provides the size of the delay of
HSOUT .
H_DELAY is the delay of hsout in sample units from the sample counter clear signal. The H_DELAY value must be strictly lower than the number of samples per line.
Field
H_DELAY
Bit(s)
[12:0]
Description horizontal delay, in sample unit
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
240 Register descriptions
DVP[n]_HLL DVP half line length
0x20
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
HALF_LINE_LENGTH
Address:
Type:
Reset value:
DVP[n] base address + 0x2C
RW
0
Description
The DVP half line length register provides the number of samples necessary to have
VSOUT shifted one half line after HSOUT is in internal synchros mode and when
DVP[N]_CTL.VSYNC_BOT_HALF_LINE_EN
= 1.
Field Bit(s) Description
HALF_LINE_LENGTH [11:0] half line length, in sample unit
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 241
DVP[n]_HSRC DVP horizontal sample rate converter
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x30
Address:
Type:
Reset value:
DVP[n] base address + 0x30
RW
0
Description
The DVP horizontal sample rate converter register provides the configuration for the horizontal sample rate converter.
Field Bit(s) Description
HSRC_INCREMENT [9:0] The horizontal sample rate converter state-machine increment, in 2.8 format
HSRC_INITIAL_PHASE [18:16] The horizontal sample rate converter state-machine initial phase on top field [0:7]
ENABLE_H_FILTER [24] 0: h filter disabled
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
242 Register descriptions
DVP[n]_HFC DVP horizontal filter coefficients (register
file)
0x44
0x48
0x4C
0x50
0x54
0x34
0x38
0x3C
0x40
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
K 0.3
K 0.2
K 0.1
K 0.0
K 1.2
K 2.1
K 3.0
K 1.1
K 2.0
K 2.4
K 1.0
K 1.4
K 2.3
K 0.4
K 0.3
K 2.2
K 3.4
K 4.3
K 5.2
K 6.1
K 7.0
K 3.3
K 4.2
K 5.1
K 6.0
K 6.4
K 3.2
K 4.1
K 5.0
K 5.4
K 6.3
K 3.1
K 4.0
K4.4
K 5.3
K 6.2
0x58 K 7.4
Address:
Type:
Reset value:
K 7.3
K 7.2
DVP[n] base address + 0x30 to 0x58
RW
0
K 7.1
Description
The DVP horizontal filter coefficients register file consists of ten registers. It contains the 40 coefficients used for the 8-phase 5-tap digital filter of the horizontal sample rate converter. The CPU sees these registers as a group of ten 32-bit registers.
Field
K[i].[j]
Bit(s) Description
8 bits Coefficient j of subfilter i (subposition i)
Format S1.6: 8 bit signed with 1.0 encoded as 0x40
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 243
DVP[n]_VSRC DVP vertical sample rate converter
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0x60 VSRC_INCREMENT
Address:
Type:
Reset value:
DVP[n] base address + 0x60
RW
0
Description
The DVP vertical sample rate converter register provides the configuration for the vertical sample rate converter.
Field Bit(s) Description
VSRC_INCREMENT [9:0] The vertical sample rate converter state-machine increment, in
2.8 format
VSRC_INITIAL_PHASE [18:16] The vertical sample rate converter state-machine initial phase on top field, [0:7]
ENABLE_V_FILTER [24] 0: v filter disabled
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
244 Register descriptions
DVP[n]_VFC DVP vertical filter coefficients (register file)
0x64
0x68
0x6C
0x70
0x74
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
K 1.0
K 0.2
K 0.1
K 0.0
K 2.1
K 3.2
K 5.0
K 6.1
K 2.0
K 3.1
K 4.2
K 6.0
K 1.2
K 3.0
K 4.1
K 5.2
K 1.1
K 2.2
K 4.0
K 5.1
0x78 K 7.2
Address:
Type:
Reset value:
K 7.1
K 7.0
DVP[n] base address + 0x64 to 0x78
RW
0
K 6.2
Description
The DVP vertical filter coefficients register file contains the 24 coefficients used for the 8-phase 3-tap digital filter of the vertical sample rate converter. The CPU sees these registers as a group of six 32-bit registers.
K[i].[j]
Field Bit(s) Description
8 bits Coefficient j of subfilter i (subposition i)
Format S1.6: 8 bit signed with 1.0 encoded as 0x40
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 245
DVP[n]_ITM DVP interrupt mask
0x98
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
DVP[n] base address + 0x98
RW
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
Any bit set in this register enables the corresponding interrupt in the DVP interrupt output line. An interrupt is generated.
Whenever a bit in the DVP[N]_STA register changes from 0 to 1 and the corresponding mask bit is set.
DVP[n]_ITS DVP interrupt status
0x9C
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
DVP[n] base address + 0x9C
RO
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
When a bit in the DVP_STA register changes from 0 to 1, the corresponding bit in the DVP_ITS register is set, independent of the state of DVP[N]_ITM . If any set
DVP[N]_ITS bit is unmasked, the line DVP interrupt output line is asserted. The reading of DVP[N]_ITS clears all bits in that register. When DVP[N]_ITS is zero the
DVP interrupt output line returns de-asserted.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
246 Register descriptions
DVP[n]_STA DVP status register
0xA0
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
DVP[n] base address + 0xA0
RO
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
This register contains a set of bits which represents the status of the DVP. Any change from 0 to 1 of any of these bits sets the corresponding bit of the DVP[N]_ITS register, and can thus potentially cause an interrupt on the DVP interrupt output line. VST and VSB are pulses and are unlikely ever to be read as 1.
Field
VSB
VST
Description
VSYNC bottom Set for a short time at the beginning of the bottom field, corresponding to the rising edge of the internal BNOTT signal.
VSYNC top Set for a short time at the beginning of the top field, corresponding to the falling edge of the internal BNOTT signal.
DVP[n]_LNSTA Line number status
0xA4
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
LINE_NUMBER_STATUS
[10:0]
Address:
Type:
Reset value:
VTG base address + 0xA4
RO
0
Description
This register is loaded on the VTG VREF output signal (vertical synchronization) with the value of the DVP line counter.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 247
DVP[n]_HLFLN DVP half lines per vertical
0xA8
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
HLFLN[11:0]
Address:
Type:
Reset value:
DVP[n] base address + 0xA8
RW
0
Description
This register specifies the number of half lines per vertical period.
This value is used when the bit DVP[N]_CTL.SYNCHRO_PHASE_NOTOK
is set, then the vertical synchronization is forced to be in phase with the horizontal synchronization signal to generate a top field. The external vertical signal is ignored.
DVP[n]_ABA DVP ancillary data base address
0xAC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK ADDRESS Write 0
Address:
Type:
Reset value:
DVP[n] base address + 0xAC
RW
0
Description
The DVP ancillary data base address register is a 32-bit register containing the memory location for the first ancillary data page. The buffer must be aligned on a
128-bit word address boundary.
Field
ADDRESS
BANK
Bit(s) Description
[25:0] Base address for the ancillary data buffer, in the selected 64 MByte bank
[31:26] 64 MByte bank number
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
248 Register descriptions
DVP[n]_AEA DVP ancillary data end address
0xB0
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
BANK ADDRESS Write 0
Address:
Type:
Reset value:
DVP[n] base address + 0xB0
RW
0
Description
The DVP ancillary data end address register is a 32-bit register containing the last memory location for the ancillary data buffer. For a 128-bit word address the address counter wraps to the base address location.
Field
ADDRESS
BANK
Bit(s) Description
[25:0] Base address for the ancillary data buffer, in the selected 64 MByte bank
[31:26] 64 MByte bank number (programmed value must match the
DVP[N]_ABA bank)
DVP[n]_APS DVP ancillary data page size
0xB4
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PAGE_SIZE Write 0
Address:
Type:
Reset value:
DVP[n] base address + 0xB4
RW
0
Description
The DVP ancillary data page size register provides the size in bytes of the memory page used for a single ancillary data packet. The size granularity is 16 bytes, the maximum size is 4096 bytes.
Field Bit(s) Description
PAGE_SIZE [11:0] Memory size allocated to an ancillary data packet
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 249
DVP[n]_PKZ DVP maximum packet size
0xFC
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PACKET_S
IZE
Address:
Type:
Reset value:
DVP[n] base address + 0xFC
RW
0
Description
The DVP[N]_PKZ register is a 3-bit register for controlling the maximum size of a data packet during a SuperHyway transaction.
Field Bit(s)
PACKET_SIZE [2:0]
Description
Maximum packet size during a SuperHyway transaction
000: Message size
001: 16 SuperHyway words
010: 8 SuperHyway words
011: 4 SuperHyway words
100: 2 SuperHyway words
101: 1 SuperHyway words
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
250 Register descriptions
VTG_MOD VTG mode of operation
0x40
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MODE
Address:
Type:
Reset value:
VTG base address + 0x24
RW
0
Description
The DVP captured video size register provides the size of the displayed pixmap attached to the viewport.
Field
MODE 1:0
Bit(s) Description
00 master mode
01 slave by dvp_0
10 slave by dvp_1
VTG_CLKLN Clocks per line
0x28
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
CLKLN[12:0]
Address:
Type:
Reset value:
VTG base address + 0x28
RW
0
Description
This register specifies the total number of sample clock cycles per horizontal period, that is the horizontal complete line length.
If the frequency of VTG clock is twice the pixel frequency then CLKLN is 13 bits wide.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 251
VTG_H_HD VTG HSYNC output falling and rising edge
0x2C
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
HD_HS[12:0] HD_HO[12:0]
Address:
Address:
Reset value:
VTG base address + 0x2C
RW
0
Description
This register determines the rising sample position of the HSYNC signal pin output pulse relative to the sample counter clear.
The HSYNC output rises from 0 to 1 level when the sample counter is equal to
VTG_H_HD.HD_HO
and falls from 1 to 0 when the sample counter is equal to
VTG_H_HD.HD_HS
.
Note that the order of HD_HO and HD_HS determines the polarity of the HSYNC signal pin.
If the frequency of VTG clock is twice the pixel frequency then HDO is 13 bits width.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
252 Register descriptions
VTG_TOP_V_VD VTG VSYNC vertical top field line number output falling and rising edge
0x30
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VD_TOP_VS[10:0] VD_TOP_VO[10:0]
Address:
Address:
Reset value:
VTG base address + 0x30
RW
00000000
Description
This register determines the line position edges of the VSYNC signal pin output pulse relative to line counter clear.
The VSYNC output will rise from 0 to 1 level when the line counter is equal to
VD_TOP_VO and will fall from 1 to 0 when the line counter is equal to VD_TOP_VS .
Note that the order of VD_TOP_VO and VD_TOP_VS determines the polarity of the
VSYNC signal pin, if VD_TOP_VO = VD_TOP_VS it is the order of VD_TOP_HO and
VD_TOP_HS which determines this polarity.
If the frequency of VTG clock is twice the pixel frequency then HDS is 13 bits width.
Note that the minimum value of VD_TOP_VO is 001h.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 253
VTG_BOT_V_VD VTG vertical bot field line number output falling and rising edge
0x34
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VD_BOT_VS[10:0] VD_BOT_VO[10:0]
Address:
Type:
Reset value:
VTG base address + 0x34
RW
0
Description
This register determines the line position edges of the VSYNC signal pin output pulse relative to line counter clear.
The VSYNC output will rise from 0 to 1 level when the line counter is equal to
VD_BOT_VO and will fall from 1 to 0 when the line counter is equal to VD_BOT_VS .
Note that the order of VD_BOT_VO and VD_BOT_VS determines the polarity of the
VSYNC signal pin, if VD_BOT_VO = VD_BOT_VS it is the order of
VTG_BOT_V_HD.VD_BOT_HO
and VTG_BOT_V_HD.VD_BOT_HS
which determines this polarity.
Note that the min value of VD_TOP_VO is 000h.
If the frequency of VTG clock is twice the pixel frequency then HDS is 13 bits width.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
254 Register descriptions
VTG_TOP_V_HD VTG VSYNC vertical top field sample number output rising and falling edge
0x38
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VD_TOP_HS[12:0] VD_TOP_HO[12:0]
This register determines the line position edges of the VSYNC signal pin output pulse relative to sample counter clear.
The VSYNC output will rise from 0 to 1 level when the line counter is equal to
VD_TOP_HO and will fall from 1 to 0 when the line counter is equal to VD_TOP_HS .
Note that the order of VD_TOP_HO and VD_TOP_HS determines the polarity of the
VSYNC signal pin, if VTG_TOP_V_VD.VD_TOP_VO
=
VTG_TOP_V_VD.VD_TOP_VS
, else the order of VD_TOP_VO and VD_TOP_VS determines the polarity of the VSYNC signal pin.
If the frequency of VTG clock is twice the pixel frequency then HDS is 13 bits width.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 255
VTG_BOT_V_HD VTG VSYNC vertical bottom field sample number output rising and falling edge
0x3C
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
VD_BOT_HS[12:0] VD_BOT_HO[12:0]
This register determines the line position edges of the VSYNC signal pin output pulse relative to sample counter clear.
The VSYNC output will rise from 0 to 1 level when the line counter is equal to
VD_BOT_HO and will fall from 1 to 0 when the line counter is equal to VD_BOT_HS .
Note that the order of VD_BOT_HO and VD_BOT_HS determines the polarity of the
VSYNC signal pin if VTG_BOT_V_VD.VD_BOT_VO
=
VTG_BOT_V_VD.VD_BOT_VS
, else the order of VD_BOT_VO and VD_BOT_VS determines the polarity of the VSYNC signal pin.
If the frequency of VTG clock is twice the pixel frequency then HDS is 13 bits width.
The value given to VD_BOT_HDO allows the rising edge of VSYNC to be adjusted between two HSYNC signals to be able to start an analog bottom field. The normal value is VTG_H_HD.HD_HO
+ CLKLN /2.
If HD_HO is 0 and VD_BOT_VO is 0 take care that line counter is cleared when sample count = CLKLN/2-1 and the first value of sample counter is CLKLN /2 when line counter is 0, then the correct value for VD_BOT_HDO must be CLKLN /2, under this value VSYNC does not start for bottom field.
VTG_HLFLN VTG half lines per vertical
0x40
31 30 29 28 28 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
HLFLN[11:0]
This register specifies the number of half lines per vertical period.
An odd value in this register indicates interlaced output and an even value indicates progressive output.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
256 Register descriptions
VTG_DRST Video timing generator reset
Address:
Type:
Reset value:
VTG base address + 0x48
WO
0
Description
Writing to this register resets the sample counter and line counter of the VTG. The reset is just activated once on writing.
When activated, this reset activates VREF and HREF . If VTG is in interlaced mode, that is the half lines per vertical number is odd, a top field is generated.
VTG_ITM VTG interrupt mask
0x98
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
VTG base address + 0x98
RW
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
Any bit set in this register will enable the corresponding interrupt in VTG_IRQ line.
An interrupt is generated whenever a bit in the VTG_STA register changes from 0 to
1 and the corresponding mask bit is set.
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register descriptions 257
VTG_ITS VTG interrupt status
0x9C
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
VTG base address + 0x9c
RO
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
When a bit in the VTG_STA register changes from 0 to 1, the corresponding bit in the VTG_ITS register is set, independent of the state of VTG_ITM . If any set
VTG_ITS bit is unmasked, the line VTG_IRQ is asserted. The reading of VTG_ITS clears all bits in that register. When VTG_ITS is zero the VTG_IRQ line returns de-asserted.
VTG_STA VTG status register
0xA0
3130292828262524232221201918171615141312111098 7 6
Reserved
Address:
Type:
Reset value:
VTG base address + 0xa0
RO
0
5 4
VST
3
VSB
2 1
Reserved
0
Description
This register contains a set of bits which represents the status of the VTG. Any change from 0 to 1 of any of these bits sets the corresponding bit of the VTG_ITS register, and can thus potentially cause an interrupt on the VTG_IRQ line.
VST and
VSB are pulses and are unlikely ever to be read as 1.
Field
VSB
VST
Description
VSYNC bottom Set for a short time at the beginning of the bottom field, corresponding to the rising edge of the internal BNOTT signal.
vsync top Set for a short time at the beginning of the top field, corresponding to the falling edge of the internal BNOTT signal.
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
258
PRELIMINARY DATA
Register descriptions
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Pixel clock controller (PIXCLK)
6
6.1 Overview
This register interface allows SuperHyway control of:
• pixel clock enable,
• CLOCKGENB PLL2 as the source for internal generated pixel clock,
• teletext data source.
6.2 Register overview
Register name Description Type
RO
Address offset
0x000 PIXCLKCON.VCR
Version control register, see
PIXCLKCON.CONTROL
Pixel clock control register, see
Table 17: Address map
RW 0x008
Access size
32
32
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
260
6.3 Register definitions
6.3.1 PIXCLKCON.VCR
PIXCLKCON.VCR
0x00
Field Bits Size Volatile
MVERS [16:31] 16
Operation
Read
Write
Hard reset
Module version
Synopsis
Used to indicate module version
Returns current value
Ignored
See datasheet
Table 18: PIXCLKCON.VCR
Register definitions
Type
RO
6.3.2 PIXCLKCON.CONTROL
This register controls the selection of pixel clock and associated signals.
PIXCLKCON.CONTROL
pixel clock control register
Field
CLKEN
Bits Size Volatile
0x08
Synopsis
0
Operation
Read
Write
Hard reset
1 Enable the pixclock2x and pixclock to the video subsystem
0: Clock held low to video subsystem
1: Clock active to video subsystem
Returns current value
Updates current value
See datasheet
Table 19: PIXCLKCON.CONTROL
Type
RW
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register definitions 261
-
PIXCLKCON.CONTROL
pixel clock control register
Field
TTXTSRC
Bits
Read
Write
Hard reset
[2:31]
Operation
Read
Write
Size
1
Operation
1
30
HARD reset
-
Volatile
0x08
Synopsis
Teletext control signal source
Table 19: PIXCLKCON.CONTROL
Type
0: Teletext data source from Teletext DMA unit.
1: Teletext source from external pins (use when operating from DVP clock only).
Returns current value
Updates current value
See datasheet
-
Reserved
Reserved
Undefined
Write 0
See datasheet
RW
Res
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
262
PRELIMINARY DATA
Register definitions
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Appendices
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
264
PRELIMINARY DATA
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Register address list
A
Module
Blitter
Blitter
Register name
GAM_BLT_ACK
GAM_BLT_CCO
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
GAM_BLT_CML
GAM_BLT_CTL
GAM_BLT_CWO
GAM_BLT_CWS
GAM_BLT_FF0
GAM_BLT_FF1
GAM_BLT_FF2
GAM_BLT_FF3
Description
ALU and color key control, see
CLUT color conversion operators, see
CLUT memory location, see
Blitter control, see
Clipping window offset, see
Clipping window stop, see
Flicker filter 0, see
Flicker filter 1, see
Flicker filter 2, see
Flicker filter 3, see
Address offset
0x80
0x58
0x5C
0x00
0x50
0x54
0x70
0x74
0x78
0x7C
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
266
Module
Blitter
Blitter
Register name
GAM_BLT_HFC[1:10]
GAM_BLT_HFP
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
GAM_BLT_INS
GAM_BLT_KEY1
GAM_BLT_KEY2
GAM_BLT_NIP
GAM_BLT_PKZ
GAM_BLT_PMK
GAM_BLT_RSF
GAM_BLT_RST
GAM_BLT_RZC
GAM_BLT_S1BA
GAM_BLT_S1CF
GAM_BLT_S1SZ
GAM_BLT_TSZ
GAM_BLT_S1TY
Description
Horizontal coefficients, see
Horizontal filter coefficients pointer, see
Instruction register, see
Color key 1, see
Color key 2, see
Next instruction pointer, see
Packet size control, see
Plane mask, see
Resize scaling factor, see
Raster scan trigger, see
2D resize control, see
Source 1 base address, see
Source 1 color fill, see
Source 1 target window size, see
GAM_BLT_S1SZ/GAM_BLT_TSZ on page 28
Source 1 type, see
Address offset
0x00 to 0x24
0x64
0x18
0x84
0x88
0x10
0xFC
0x8C
0x6C
0x90
0x60
0x1C
0x2C
0x28
0x20
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Module
Blitter
Blitter
Register name
GAM_BLT_S1XY
GAM_BLT_S2BA
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
Blitter
GAM_BLT_S2CF
GAM_BLT_S2SZ
GAM_BLT_S2TY
GAM_BLT_S2XY
GAM_BLT_STA1
GAM_BLT_STA2
GAM_BLT_STA3
GAM_BLT_TBA
GAM_BLT_TTY
GAM_BLT_TXY
GAM_BLT_USR
GAM_BLT_VFC[1:10]
GAM_BLT_VFP
GAM_BLT_XYL
PRELIMINARY DATA
267
Description
Source 1 XY location, see
Source 2 base address, see
Source 2 color fill, see
Source 2 window size, see
Source 2 type, see
Source 2 XY location, see
Blitter status register 1, see
Blitter status register 2, see
Blitter status register 3, see
Target base address, see
Target type, see
Target XY location, see
User specific register, see
Vertical coefficients, see
Vertical filter coefficients pointer, see
XYL control, see
Address offset
0x24
0x30
0x40
0x3C
0x34
0x38
0x04
0x08
0x0C
0x44
0x48
0x4C
0x14
0x30 to 0x54
0x68
0x94
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
268
Module
Blitter
Register name
GAM_BLT_XYP
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(DVP)
Compositor
(Mixer)
Compositor
(Mixer)
Compositor
(Mixer)
Compositor
(Mixer)
Compositor
(Mixer)
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(Cursor)
Compositor
(Cursor)
GAM_CUR_AWE
GAM_CUR_AWS
GAM_CUR_CML
GAM_CUR_CTL
GAM_CUR_PKZ
GAM_CUR_PML
GAM_CUR_PMP
GAM_CUR_SIZE
GAM_CUR_VPO
GAM_DVP_CTL
GAM_MIX_AVO
GAM_MIX_AVS
GAM_MIX_BCO
GAM_MIX_BCS
GAM_MIX_BKC
Description
XY subinstruction pointer, see
Active window end, see
Active window start, see
CLUT memory location, see
Cursor control, see
Packet size control, see
First pixel memory location, see
Pixmap memory pitch, see
Pixmap memory size, see
Viewport offset, see
DVP control register, see
Active video offset, see
Active video stop, see
Background color offset, see
Background color stop, see
Background color, see
0x000
0x528
0x52C
0x50C
0x014
0x018
0x01C
0x00C
0x510
0x504
Address offset
0x98
0x02C
0x028
0x020
0x000
0x0FC
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Module
Compositor
(Mixer)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Register name
GAM_MIX_CTL
GDP[ N ]_AGC
GDP[ N ]_CTL
GDP[ N ]_HFC[0:9]
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
Compositor
(GDP)
GDP[ N ]_HFP
GDP[ N ]_HSRC
GDP[ N ]_KEY1
GDP[ N ]_KEY2
GDP[ N ]_NVN
GDP[ N ]_PKZ
GDP[ N ]_PML
GDP[ N ]_PMP
GDP[ N ]_SIZE
GDP[ N ]_VPO
GDP[ N ]_VPS
PRELIMINARY DATA
269
Description
Mixer control register, see
Alpha gain constant, see
GDP control register, see
GDP HF Coefficient register 0 to 9, see
Horizontal filter pointer, see
Horizontal sample rate converter, see
Key 1, see
Key 2, see
Next viewport node, see
Maximum packet size, see
Pixmap memory location, see
Pixmap memory pitch, see
Pixmap size, see
Viewport offset, see
Viewport stop, see
Address offset
0x500
0x[n]04
0x[n]00
0x[n]40 to 0x[n]64
0x[n]30
0x[n]08
0x[n]28
0x[n]2C
0x[n]24
0x[n]FC
0x[n]14
0x[n]18
0x[n]1C
0x[n]0C
0x[n]10
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
270
Module
Compositor
(GDP)
DAC
DAC
DAC
DAC
DAC
DAC
DENC
DENC
DENC
Register name Description
GDP[ N ]_VSRC Vertical sample rate converter, see
DENC_DAC_IF.CONTROL1
DAC interface control register 1, see
DENC_DAC_IF.CONTROL[n] on page 106
DENC_DAC_IF.CONTROL2
DAC interface control register 2, see
DENC_DAC_IF.CONTROL[n] on page 106
DENC_DAC_IF.DATA1
DENC_DAC_IF.DATA2
DAC CPU interface data register 1, see
DENC_DAC_IF.DATA[n] on page 108
DAC CPU interface data register 2, see
DENC_DAC_IF.DATA[n] on page 108
DENC_DAC_IF.VCR
DENC_DAC_IF_TIMING
DEN_CCF1
Version control register, see
Minimum number of cycles allowed between falling edges of the
NOTCS signal to the DENC, see
DENC_DAC_IF.TIMING on page 109
Closed caption characters extended data for field 1, see
DEN_CCF2
DEN_CFCOEF[0:8]
Closed caption characters extended data for field 2, see
Chroma filter coefficient, see
Address offset
0x[n]20
0x10010
0x10020
0x10018
0x10028
0x10000
0x00800
0x00138,
0x00140
0x00148,
0x00150
0x00240,
0x00248,
0x00250,
0x00258,
0x00260,
0x00268,
0x00270,
0x00278,
0x00280
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Module
DENC
DENC
Register name
DEN_CFG0
DEN_CFG1
DENC
DENC
DENC
DENC
DENC
DENC
DENC
DENC
DEN_CFG2
DEN_CFG3
DEN_CFG4
DEN_CFG5
DEN_CFG6
DEN_CFG7
DEN_CFG8
DEN_CFG9
DENC
DENC
DENC
DENC
DEN_CGMS[1:3]
DEN_CID
DEN_CLF1
DEN_CLF2
PRELIMINARY DATA
271
Description
Configuration register 0, see
Configuration register 1, see
Configuration register 2, see
Configuration register 3, see
Configuration register 4, see
Configuration register 5, see
Configuration register 6, see
Configuration register 7, see
Configuration register 8, see
Chroma delay and luma filter control, see
CGMS data registers (20 bits only), see
DENC version identification number, see
Closed caption extended data line insertion for field 1, see
Closed caption extended data line insertion for field 2, see
Address offset
0x000
0x008
0x010
0x018
0x020
0x028
0x030
0x038
0x040
0x288
0x0F8, 0x100,
0x108
0x000C0
0x158
0x160
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
DENC
DENC
DENC
DENC
DENC
DENC
DEN_PDFS[1:2]
DEN_REG_64
DEN_REG_65
DEN_REG_69
DEN_REG_70
DEN_REG_71
PRELIMINARY DATA
272
Module
DENC
Register name
DEN_DAC13
DENC
DENC
DENC
DENC
DEN_DAC45
DEN_DAC6C
DEN_IDFS[1:3]
DEN_LFCOEF[0:9]
Description
DAC1 and DAC3 multiplying factors, see
DAC4 and DAC5 multiplying factors, see
DAC6 and C multiplying factors, see
Increment for digital frequency synthesizer, see
Luma coefficient, see
Address offset
0x088
0x090
0x098
0x050, 0x058,
0x060
Static phase offset for digital frequency synthesizer, see
Teletext configuration, see
DAC2 multiplying factors, teletext mask and brightness, contrast and saturation control, see
Brightness, see
Contrast, see
Saturation, see
0x00290,
0x00298,
0x002A0,
0x002A8,
0x002B0,
0x002B8,
0x002C0,
0x002C8,
0x002D0,
0x002D8
0x068, 0x070
0x00200
0x00208
0x00228
0x00230
0x00238
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
Module
DENC
DENC
Register name
DEN_STA
DEN_TTX[1:5]
DENC DEN_VPS[1:6]
VFE
VFE
VFE
VFE
VFE
VFE
VFE
DENC DEN_WSS[1:2]
PIXCLKCON CONTROL
PIXCLKCON VCR
DVP[
DVP[
DVP[
DVP[
N
N
N
N
]_ABA
]_AEA
]_APS
]_BFO
DVP[ N ]_BFS
DVP[ N ]_CTL
DVP[ N ]_CVS
PRELIMINARY DATA
273
Description
Status, see
Teletext block definition, see
Address offset
0x048
VPS data registers, see
WSS data registers, see
Pixel clock control register, see
Version control register, see
Ancillary data base address, see
Ancillary data end address, see
Ancillary data page size, see
Bottom field offset (h & v, with respect to (0,0)), see
Bottom field stop (h & v, with respect to (0,0)), see
Control register, see
Captured video size, see
0x00110,
0x00118,
0x00120,
0x00128,
0x00130
0x000C8,
0x000D0,
0x000D8,
0x000E0,
0x000E8,
0x000F0
0x078, 0x080
0x20008
0x20000
0x[n]Ac
0x[n]B0
0x[n]B4
0x[n]0C
0x[n]10
0x[n]00
0x[n]20
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
PRELIMINARY DATA
274
VFE
VFE
VFE
VFE
VFE
VFE
VFE
VFE
Module
VFE
Register name
DVP[ N ]_HFC
VFE
VFE
VFE
VFE
DVP[ N ]_HLFLN
DVP[ N ]_HLL
DVP[ N ]_HSD
DVP[ N ]_HSRC
DVP[ N ]_ITM
DVP[ N ]_ITS
DVP[ N ]_LNSTA
DVP[ N ]_PKZ
DVP[
DVP[
DVP[
DVP[
N
N
N
N
]_STA
]_TFO
]_TFS
]_VBP
Description
Horizontal filter coefficients (10 addresses), see
Half lines per field, see
Half line length, see
Horizontal synchro delay, see
Horizontal sample rate converter configuration, see
DVP interrupt mask, see
DVP interrupt status, see
Line number status, see
Packet size on SuperHyway protocol, see
DVP interrupt register, see
Top field offset (h & v, with respect to (0,0)), see
Top field stop (h & v, with respect to
(0,0)), see
Video bottom pointer (memory location for top-left pixel), see
Address offset
0x[n]34 to 0x[n]58
0x[n]A8
0x[n]2C
0x[n]28
0x[n]30
0x[n]98
0x[n]9C
0x[n]A4
0x[n]FC
0x[n]A0
0x[n]04
0x[n]08
0x[n]18
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
VFE
VFE
VFE
VFE
VFE
VFE
VFE
Module
VFE
Register name
DVP[ N ]_VFC
VFE
VFE
VFE
VFE
DVP[ N ]_VMP
DVP[ N ]_VSD
DVP[ N ]_VSRC
DVP[ N ]_VTP
VFE VTG_BOT_V_HD
VTG_BOT_V_VD
VTG_CLKLN
VTG_DRST
VTG_H_HD
VTG_HLFLN
VTG_ITM
VTG_ITS
PRELIMINARY DATA
275
Description
Vertical filter coefficients (6 addresses), see
Video memory pitch, see
Vertical synchro delay, see
Vertical sample rate converter configuration, see
Video top pointer (memory location for top-left pixel), see
VSYNC delay from sample counter clear for output rising edge in sample units on bottom field, see
VSYNC delay from line counter clear for output rising edge on bottom field in line units, see
Number of samples per line, see
VTG soft reset, see
HSYNC output rising edge, see
Half lines per field, see
Interrupt mask, see
Interrupt status, see
Address offset
0x[n]64 to 0x[n]78
0x[n]1C
0x[n]24
0x[n]60
0x[n]14
0x23C
0x234
0x228
0x248
0x22C
0x240
0x298
0x29C
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
VFE VTG_TOP_V_VD
PRELIMINARY DATA
276
Module
VFE
Register name
VTG_MOD
VFE
VFE
VTG_STA
VTG_TOP_V_HD
Description
Video timing generator mode of operation, see
Status register, see
VSYNC delay from sample counter clear for output rising edge in sample units on top field, see
VSYNC delay from line counter clear for output rising edge on top field in line units, see
Address offset
0x224
0x2A0
0x238
0x230
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
PRELIMINARY DATA
Index
B
ix
M
MDIV
260
N
Name
265
NDIV
260
O
OTHER
261
P
260-261
R
Register
104, 259-260
Field Type
READ-ONLY
106-109
Reset
105-109, 260-261
S
SETUP
261
SuperH SH-Series documentation suite notation
ix
T
Type
105-106, 108-109, 260
V
Volatile
105-106, 108-109, 260
ADCS 7225754C
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices
278
PRELIMINARY DATA
STMicroelectronics
SH-4, ST40 System Architecture, Volume 3: Video Devices ADCS 7225754C
다운로드
광고