NOT RECOMMENDED FOR NEW DESIGNS
Contact our Technical Support Center at
1-888-INTERSIL or www.intersil.com/tsc
DATASHEET
FN7753
Rev. 0.00
July 7, 2011
TW6816
4-CH Audio/Video Decoders with 66MHz PCI Interface
Features
Video Decoder
NTSC (M, 4.43) and PAL (B, D, G, H, I, M, N, N
combination), PAL (60), SECAM support with automatic
format detection
Software selectable analog inputs allows any of 4 CVBS
per one video ADC
Video Scaler
High quality horizontal filtered scaling with arbitrary scale
down ratio
Phase accuracy better than 1/32 pixel
Selectable anti-alias filter
Four 10-bit ADCs and analog clamping circuit for CVBS
input.
Audio Capture
Four 10-bit ADC for Analog Sound digitizing
Programmable Sampling rate
Fully programmable static gain or automatic gain control
for the Y channel
Programmable white peak control for CVBS channel
4-H adaptive comb filter Y/C separation
PAL delay line for color phase error correction
Image enhancement with 2D peaking and CTI.
Digital sub-carrier PLL for accurate color decoding
Digital Horizontal PLL for synchronization processing and
pixel sampling
Advanced synchronization processing and sync detection
for handling non-standard and weak signal
Programmable hue, brightness, saturation, contrast,
sharpness, Gamma control, and noise suppression
Automatic color control and color killer
Detection of level of copy protection according to
Macrovision standard
PCI
66MHz/33MHz PCI with M66EN interface
PCI Rev. 2.2-3.0 compliant
ACPI support
Integrated Video/Audio DMA controller
Support both selectable one real-time video and 4x
switching non real-time video
Miscellaneous
Programmable RGB and YCbCr color space conversion
400Kbps Two-wire MPU serial bus Master interface
Power-down mode
Single 27MHz crystal for all standards
5V tolerant I/O
1.8 V power supply
100-pin LQFP package
Programmable output cropping
FN7753 Rev. 0.00
July 7, 2011
Page 1 of 140
TW6816
Function Description
Figure 1: TW6816 Block Diagram
VIN1D
VIN1C
VIN1B
VIN1A
VIN2D
VIN2C
VIN2B
VIN2A
VIN3D
VIN3C
VIN3B
VIN3A
VIN4D
VIN4C
VIN4B
VIN4A
AGC
10-Bit ADC
Video
Decoder
HV Scaler
RGB/YUV/
YCbCr
Format
Converter
RGB/YUV/
YCbCr
Format
Converter
Video
FIFO
DMA
AGC
10-Bit ADC
Video
Decoder
HV Scaler
Video
FIFO
DMA
Video In
AGC
10-Bit ADC
Video
Decoder
HV Scaler
RGB/YUV/
YCbCr
Format
Converter
Video
FIFO
DMA
AGC
10-Bit ADC
Video
Decoder
HV Scaler
RGB/YUV/
YCbCr
Format
Converter
Video
FIFO
DMA
PCI Interface
PCI Bus
AIN1
Gain
Control
10-Bit ADC
Decimation
Filter
Audio
Format
Converter
Audio
FIFO
DMA
AIN2
Gain
Control
10-Bit ADC
Decimation
Filter
Audio
Format
Converter
Audio
FIFO
DMA
Audio In
AIN3
Gain
Control
10-Bit ADC
Decimation
Filter
Audio
Format
Converter
Audio
FIFO
DMA
AIN4
Gain
Control
10-Bit ADC
Decimation
Filter
Audio
Format
Converter
Audio
FIFO
DMA
2-wire Serial Bus
2-wire Serial
Bus Master
FN7753 Rev. 0.00
July 7, 2011
Page 2 of 140
TW6816
Ordering Information
PART NUMBER
(Note 1)
PART
MARKING
PACKAGE
(Pb-free)
TW6816-LA1-GR
Note:
TW6816 DALA1-GR
100 LEAD LQFP (12mmx12mm)
1. These Intersil Pb-free plastic packaged products employ special Pb-free material sets, molding
compounds/die attach materials, and 100% matte tin plate plus anneal (e3 termination finish, which is
RoHS compliant and compatible with both SnPb and Pb-free soldering operations). Intersil Pb-free products
are MSL classified at Pb-free peak reflow temperatures that meet or exceed the Pb-free requirements of
IPC/JEDEC J STD-020.
FN7753 Rev. 0.00
July 7, 2011
Page 3 of 140
TW6816
Table of Contents
Function Description ..................................................................2
Ordering Information ..................................................................3
Video Decoder .........................................................................7
Video Decoder Overview .....................................................7
Analog Front-end..................................................................7
Sync Processing...................................................................8
Color Decoding .....................................................................9
Component Processing......................................................11
Power Management ...........................................................12
Down-scaling and Cropping...............................................12
Video Data Format Conversion .............................................15
GAMMA Correction ............................................................15
Byte Swapping....................................................................15
Color Formats .....................................................................16
Serial BUS Interface ..............................................................17
Audio Processing ...................................................................18
Audio Clock.........................................................................18
Analog Audio Input .............................................................19
PCI Interface ..........................................................................19
Interfacing to Serial EEPROM ...........................................19
DMA Controller Instructions ...............................................20
Filter Curves ...........................................................................22
Filter Curves ...........................................................................22
Decimation filter ..................................................................22
Chroma Band Pass Filter Curves ......................................22
Luma Notch Filter Curve for NTSC and PAL ....................23
Chrominance Low-Pass Filter Curve.................................23
Horizontal Scaler Pre- Filter Curves ..................................24
Vertical Interpolation Filter Curves .....................................24
Peaking Filter Curves ....................................................25
Peaking Filter Curves ....................................................25
Anti-aliasing Filter Curves ..................................................25
Control Registers ......................................................................26
Register Description...............................................................26
PCI Function 0/1/2/3 Configuration Space Registers for
Video ......................................................................................27
0x00 – Vendor ID and Device ID .......................................27
0x04 – Command and Status Register .............................27
0x08 – Revision ID and Class Code ..................................28
0x0C – Cache Line Size ....................................................28
0x0D – Latency Timer ........................................................28
0x0E – Header Type ..........................................................28
0x10 – Base Address 0 ......................................................28
0x2C – Subsystem ID and Subsystem Vendor ID ............29
0x34 – Capabilities Pointer ................................................29
0x3C – Interrupt Line, Interrupt Pin, Min_Gnt, Max_Lat ...29
0x44 – Power Management Capabilities...........................30
0x48 – Power Management Control/Status ......................30
PCI Memory Space Registers for Video ...............................31
Function 0 Video 1 Memory Register Summary ...............31
Function 0 Video 1 Memory Register Description.............36
0x000 – VDMAC[31:4] .......................................................36
0x000 – VDMAC[3:0] .........................................................37
0x004 – VDMAP_SA..........................................................37
0x008 – VDMAP_EXE .......................................................37
0x00C – VDMAP_PP .........................................................37
0x014 – SBUSC .................................................................38
0x018 – SBUSSD...............................................................39
0x01C – INTSTAT ..............................................................39
0x01C – INTSTAT (cont.) ..................................................40
0x020 – INTMASK .............................................................40
0x02C – RGB_PAT ............................................................41
0x030 – SBUSRD ..............................................................41
0x034 – SBUSTRIG ...........................................................41
0x040 – Video Capture Control .........................................42
0x04C – VIDEO FRAME DROP CONTROL ....................42
0x050 – VIDEO SVIDS...................................................... 43
0x054 – MR VIDEO SUBSYS........................................... 43
0x058 – DEVICE ID ........................................................... 43
0x058 – SUBSYSTEM ID.................................................. 43
0x060 – VADCKPOL..................................................... 44
0x064 – I2C RST ............................................................... 44
0x078 – M66EN ................................................................. 44
0x204 – Decoder Status Register 1 (STATUS1).............. 44
0x208 – Input Format (INFORM) ...................................... 45
0x210 – GAMMA and HSYNC Delay Control .................. 45
0x218 – Analog Control Register (ACNTL) ...................... 46
0x21C – Cropping Register High (CROP_HI) .................. 46
0x220 – Vertical Delay Register Low (VDELAY_LO)....... 46
0x224 – Vertical Active Register Low (VACTIVE_LO) ..... 47
0x228 – Horizontal Delay Register Low (HDELAY_LO) .. 47
0x22C – Horizontal Active Register Low (HACTIVE_LO) 47
0x230 – Control Register I (CNTRL1) ............................... 48
0x234 – Vertical Scaling Register, Low (VSCALE_LO) ... 48
0x238 – Scaling Register High (SCALE_HI) .................... 48
0x23C – Horizontal Scaling Register Low (HSCALE_LO)48
0x240 – BRIGHTNESS Control Register (BRIGHT) ........ 49
0x244 – CONTRAST Control Register (CONTRAST) ..... 49
0x248 – SHARPNESS Control Register I (SHARPNESS)49
0x24C – Chroma (U) Gain Register (SAT_U) .................. 49
0x250 – Chroma (V) Gain Register (SAT_V) ................... 50
0x254 – Hue Control Register (HUE)................................ 50
0x25C – Vertical Sharpness (VSHARP) ........................... 50
0x260 – Coring Control Register (CORING) .................... 50
0x268 – Analog Control II .................................................. 51
0x270 – Standard Selection (SDT) ................................... 51
0x274 – Standard Recognition (SDTR) ............................ 52
0x278 – NT50 .................................................................... 52
0x280 – Clamping Gain (CLMPG) .................................... 52
0x284 – Individual AGC Gain (IAGC) ............................... 53
0x288 – AGC Gain (AGCGAIN)........................................ 53
0x28C – White Peak Threshold (PEAKWT) ..................... 53
0x290– Clamp level (CLMPL) ........................................... 53
0x294– Sync Amplitude (SYNCT)..................................... 53
0x298 – Sync Miss Count Register (MISSCNT) .............. 54
0x29C – Clamp Position Register (PCLAMP) .................. 54
0x2A0 – Vertical Control I (VCNTL1) ................................ 54
0x2A4 – Vertical Control II (VCNTL2) ............................... 54
0x2A8 – Color Killer Level Control (CKILL)....................... 55
0x2AC – Comb Filter Control (COMB).............................. 55
0x2B0 – Luma Delay and H Filter Control (LDLY) ........... 55
0x2B4 – Miscellaneous Control I (MISC1) ........................ 55
0x2B8 – LOOP Control Register (LOOP) ......................... 56
0x2BC – Miscellaneous Control II (MISC2) ...................... 56
0x2C0 – Macrovision Detection (MVSN) .......................... 57
0x2C4 – Decoder Chip STATUS II (STATUS2) .............. 58
0x2C8 – H Monitor (HFREF) ............................................. 58
0x2CC – CLAMP MODE (CLMD) ..................................... 58
0x2D0 – ID Detection Control (IDCNTL)........................... 58
0x2D4 – Clamp Control I (CLCNTL1) ............................... 59
0x3DC – Field2 Cropping High (F2CROP_HI) ................. 59
0x3E0 – Field2 Vertical Delay Low (F2VDELAY_LO)...... 60
0x3E4 – Field2 Vertical Active Low (F2VACTIVE_LO) .... 60
0x3E8 – Field2 Horizontal Delay Low (F2HDELAY_LO) . 60
0x3EC – Field2 Horizontal Active Low (F2HACTIVE_LO)60
0x3F0 – Field2 Control (F2CNT) ....................................... 61
0x3F4 – Field2 Vertical Scaling Low (F2VSCALE_LO) ... 61
0x3F8 – Field2 Scaling High (F2SCALE_HI)................... 61
0x3FC – Field2 Horizontal Scaling Low (F2HSCALE_LO)61
Function 1/2/3 Video 2/3/4 Memory Register Summary .. 62
Function 1/2/3 Video 2/3/4 Memory Register Description 67
0x000 – VDMAC[31:4] ....................................................... 67
0x000 – VDMAC[3:0] ......................................................... 68
0x004 – VDMAP_SA ......................................................... 68
FN7753 Rev. 0.00
July 7, 2011
Page 4 of 140
TW6816
0x008 – VDMAP_EXE .......................................................68
0x00C – VDMAP_PP .........................................................68
0x01C – INTSTAT ..............................................................69
0x01C – INTSTAT (cont.) ..................................................70
0x020 – INTMASK .............................................................70
0x02C – RGB_PAT ............................................................71
0x040 – Video Capture Control .........................................72
0x04C – VIDEO FRAME DROP CONTROL ....................72
0x058 – DEVICE ID ...........................................................73
0x058 – SUBSYSTEM ID ..................................................73
0x078 – M66EN..................................................................73
0x204 – Decoder Status Register 1 (STATUS1) ..............74
0x208 – Input Format (INFORM) .......................................75
0x210 – GAMMA and HSYNC Delay Control ...................75
0x218 – Analog Control Register (ACNTL) .......................76
0x21C – Cropping Register High (CROP_HI)...................76
0x220 – Vertical Delay Register Low (VDELAY_LO) .......76
0x224 – Vertical Active Register Low (VACTIVE_LO) .....77
0x228 – Horizontal Delay Register Low (HDELAY_LO)...77
0x22C – Horizontal Active Register Low (HACTIVE_LO) 77
0x230 – Control Register I (CNTRL1) ...............................78
0x234 – Vertical Scaling Register, Low (VSCALE_LO)....78
0x238 – Scaling Register High (SCALE_HI) .....................78
0x23C – Horizontal Scaling Register Low (HSCALE_LO)78
0x240 – BRIGHTNESS Control Register (BRIGHT) ........79
0x244 – CONTRAST Control Register (CONTRAST) .....79
0x248 – SHARPNESS Control Register I (SHARPNESS)79
0x24C – Chroma (U) Gain Register (SAT_U)...................79
0x250 – Chroma (V) Gain Register (SAT_V) ....................80
0x254 – Hue Control Register (HUE) ................................80
0x25C – Vertical Sharpness (VSHARP) ...........................80
0x260 – Coring Control Register (CORING) .....................81
0x268 – Analog Control II...................................................81
0x270 – Standard Selection (SDT) ....................................82
0x274 – Standard Recognition (SDTR).............................83
0x278 – NT50 .....................................................................83
0x280 – Clamping Gain (CLMPG).....................................83
0x284 – Individual AGC Gain (IAGC) ................................84
0x288 – AGC Gain (AGCGAIN) ........................................84
0x28C – White Peak Threshold (PEAKWT)......................84
0x290– Clamp level (CLMPL) ............................................84
0x294– Sync Amplitude (SYNCT) .....................................84
0x298 – Sync Miss Count Register (MISSCNT) ...............85
0x29C – Clamp Position Register (PCLAMP) ...................85
0x2A0 – Vertical Control I (VCNTL1).................................85
0x2A4 – Vertical Control II (VCNTL2)................................85
0x2A8 – Color Killer Level Control (CKILL) .......................86
0x2AC – Comb Filter Control (COMB) ..............................86
0x2B0 – Luma Delay and H Filter Control (LDLY) ............86
0x2B4 – Miscellaneous Control I (MISC1) ........................87
0x2B8 – LOOP Control Register (LOOP)..........................87
0x2BC – Miscellaneous Control II (MISC2).......................87
0x2C0 – Macrovision Detection (MVSN)...........................88
0x2C4 – Decoder Chip STATUS II (STATUS2) ..............89
0x2C8 – H Monitor (HFREF) .............................................89
0x2CC – CLAMP MODE (CLMD) .....................................89
0x2D0 – ID Detection Control (IDCNTL) ...........................90
0x2D4 – Clamp Control I (CLCNTL1)................................90
0x3DC – Field2 Cropping High (F2CROP_HI) .................90
0x3E0 – Field2 Vertical Delay Low (F2VDELAY_LO) ......91
0x3E4 – Field2 Vertical Active Low (F2VACTIVE_LO) ....91
0x3E8 – Field2 Horizontal Delay Low (F2HDELAY_LO)..91
0x3EC – Field2 Horizontal Active Low (F2HACTIVE_LO)91
0x3F0 – Field2 Control (F2CNT) .......................................92
0x3F4 – Field2 Vertical Scaling Low (F2VSCALE_LO)....92
0x3F8 – Field2 Scaling High (F2SCALE_HI) ...................92
0x3FC – Field2 Horizontal Scaling Low (F2HSCALE_LO)92
PCI Configuration Space Registers for Audio.......................93
0x00 – Vendor ID and Device ID .......................................93
0x04 – Command and Status Register .............................93
0x08 – Revision ID and Class Code ................................. 94
0x0C – Cache Line Size .................................................... 94
0x0D – Latency Timer ....................................................... 94
0x0E – Header Type.......................................................... 94
0x10 – Base Address 0 ..................................................... 94
0x2C – Subsystem ID and Subsystem Vendor ID ........... 95
0x34 – Capabilities Pointer ................................................ 95
0x3C – Interrupt Line, Interrupt Pin, Min_Gnt, Max_Lat ... 95
0x44 – Power Management Capabilities .......................... 96
0x48 – Power Management Control/Status...................... 96
PCI Memory Space Registers for Audio............................... 97
Function 4 Audio 1 Memory Register Summary .............. 97
Function 4 Audio 1 Memory Register Description .......... 100
0x000 – ADMAC .............................................................. 100
0x004– ADMAP_SA ........................................................ 100
0x008 – ADMAP_EXE..................................................... 100
0x00C – ADMAP_PP ...................................................... 100
0x010 – Audio Control1 (ACTL1) .................................... 101
0x014 – AUDIO PACKET (APACKET)........................... 101
0x018 – Audio Control2 (ACTL2) .................................... 102
0x01C – Audio Interrupt Status (AINTSTAT).................. 102
0x020 – Audio Interrupt Mask (AINTMASK)................... 103
0x024 – AIGAIN ............................................................... 103
0x024 – Audio ADC Digital Input Offset control .............. 103
0x02C – Adjusted Audio ADC data value ....................... 103
0x030 – Audio Reset (ARSTN) ....................................... 104
0x034 – PALKREF6816 .................................................. 104
0x03C – VACLKREF6816............................................... 104
0x040 – Audio Clock Selection........................................ 104
0x044 – Video Decoder Status(VIN4 input video) .......... 105
0x044 – Video Decoder Status(VIN3 input video) .......... 106
0x044 –Video Decoder Status(VIN2 input video) ........... 107
0x044 – Video Decoder Status(VIN1 input video) .......... 108
0x04C – Audio Detection Status ..................................... 108
0x058 – DEVICE ID ......................................................... 109
0x05C – SUBSYSTEM.................................................... 109
0x060 – ADMAERRPASS............................................... 109
0x064 – ADROPVALUE .................................................. 110
0x068 – Audio Clock Increment (ACKI) .......................... 110
0x06C – Audio Clock Number (ACKN) ........................... 110
0x070 – Audio ACKG Control ......................................... 111
0x074 – Audio Detection ................................................. 111
0x078 – Audio Detection Threshold ................................ 112
0x07C – Audio ADC control ............................................ 112
Function 5/6/7 Audio 2/3/4 Memory Register Summary 113
Function 5/6/7 Audio 2/3/4 Memory Register Description116
0x000 – ADMAC .............................................................. 116
0x004– ADMAP_SA ........................................................ 116
0x008 – ADMAP_EXE..................................................... 116
0x00C – ADMAP_PP ...................................................... 116
0x010 – Audio Control1 (ACTL1) .................................... 117
0x014 – AUDIO PACKET (APACKET)........................... 117
0x018 – Audio Control2 (ACTL2) .................................... 117
0x01C – Audio Interrupt Status (AINTSTAT).................. 118
0x020 – Audio Interrupt Mask (AINTMASK)................... 118
0x024 – AIGAIN ............................................................... 119
0x024 – Audio ADC Digital Input Offset control .............. 119
0x02C – Adjusted Audio ADC data value ....................... 119
0x030 – Audio Reset (ARSTN) ....................................... 119
0x044 – Video Decoder Status (VIN4 Input Video) ........ 120
0x044 – Video Decoder Status (VIN3 Input Video) ........ 121
0x044 –Video Decoder Status (VIN2 Input Video) ......... 122
0x044 – Video Decoder Status (VIN1 Input Video) ........ 123
0x04C – Audio Detection Status ..................................... 123
0x058 – DEVICE ID ......................................................... 124
0x05C – SUBSYSTEM.................................................... 124
0x060 – ADMAERRPASS............................................... 124
0x064 – ADROPVAL ....................................................... 125
0x078 – M66EN ............................................................... 125
Application Information ......................................................... 126
FN7753 Rev. 0.00
July 7, 2011
Page 5 of 140