
TW9903
TECHWELL, INC.
2
REV. 0.92 ( B )
06/02/2002
Introduction and Features....................................................3
Functional Description.........................................................4
Overview...........................................................................5
Analog Front-end...............................................................5
Video Source Selection...................................................5
Clamping and Automatic Gain Control.............................6
Analog to Digital Converter..............................................6
Sync Processing................................................................6
Horizontal sync processing.............................................6
Vertical sync processing.................................................7
Color Decoding..................................................................7
Y/C separation...............................................................7
Color demodulation........................................................7
Automatic Chroma Gain Control......................................8
Low Color Detection and Removal..................................8
Automatic standard detection..........................................8
Video Format support.....................................................9
Component Processing......................................................9
Luminance Processing...................................................9
Gamma .........................................................................9
Sharpness.....................................................................9
The Hue and Saturation................................................10
Closed Caption Decoding.................................................10
Power Management.........................................................10
Control Interface..............................................................10
Output Interface...............................................................11
Clock and Control Signal Output....................................12
HSYNC, VSYNC and FIELD.........................................13
HACTIVE.....................................................................15
VACTIVE.....................................................................16
LVALID........................................................................16
DVALID and VCLK.......................................................17
CbCr data and CBFLAG...............................................19
CLKX2 and CLKX1.......................................................20
ITU-R BT.656...............................................................20
Down-scaling and Cropping..........................................21
TW9903 Down-Scaling.................................................21
TW9903 Cropping........................................................22
VBI Data Processing........................................................24
TW9903 VBI Overview .................................................24
VBI Frame Output Mode...............................................25
VBI Byte Order.............................................................25
Closed Captioning and Extended Data Services ................25
Two Wire Serial Bus Interface..........................................27
Test Modes .....................................................................30
Filter Curves ....................................................................31
Decimation filter............................................................31
Chroma Band Pass Filter Curves..................................31
Luma Notch Filter Curve for NTSC and PAL/SECAM.....32
Chrominance Low-Pass Filter Curve.............................32
Horizontal Scaler Pre- Filter curves................................33
Vertical Interpolation Filter curves..................................33
Peaking Filter Curves....................................................34
Control Register.................................................................35
TW9903 Register SUMMARY .......................................35
0x00 – Product ID Code Register (ID)...........................36
0x01 – Chip Status Register (CSTATUS).......................37
0x02 – Input Format (INFORM).....................................38
0x03 – Output Format Control Register (OPFORM) .......39
0x04 – GAMMA and HSYNC Delay Control...................39
0x05 – Output Polarity Register (POLARITY).................40
0x06 – Analog Control Register (ACNTL).......................41
0x07 – Cropping Register, High (CROP_HI) ..................41
0x08 – Vertical Delay Register, Low (VDELAY_LO) .......42
0x09 – Vertical Active Register, Low (VACTIVE_LO)......42
0x0A – Horizontal Delay Register, Low (HDELAY_LO)...42
0x0B – Horizontal Active Register, Low (HACTIVE_LO).42
0x0C – Control Register I (CNTRL1)..............................43
0x0D – Vertical Scaling Register, Low (VSCALE_LO)....43
0x0E – Scaling Register, High (SCALE_HI)...................44
0x0F – Horizontal Scaling Register, Low (HSCALE_LO) 44
0x10 – BRIGHTNESS Control Register (BRIGHT).........44
0x11 – CONTRAST Control Register (CONTRAST)......44
0x12 – SHARPNESS Control Register I (SHARPNESS)45
0x13 – Chroma (U) Gain Register (SAT_U)...................45
0x14 – Chroma (V) Gain Register (SAT_V)...................45
0x15 – Hue Control Register (HUE)...............................46
0x16 – Sharpness Control Register II............................46
0x17 – Reserved..........................................................46
0x18 – Coring Control Register (CORING) ....................46
0x19 – VBI Control Register (VBICNTL)........................47
0x1A – CC/EDS Status Register (CC_STATUS)............48
0x1B – CC/EDS Data Register (CC_DATA)..................48
0x1C – Standard Selection (SDT) .................................49
0x1D – Standard Recognition (SDTR)...........................50
0x1E – General Programmable I/O Register (GPIO) ......50
0x1F – Test Control Register (TEST).............................51
0x20 – Clamping Gain (CLMPG)...................................51
0x21 – Individual AGC Gain (IAGC)..............................52
0x22 – AGC Gain (AGCGAIN)......................................52
0x23 – White Peak Threshold (PEAKWT).....................52
0x24– Clamp level (CLMPL).........................................52
0x25– Sync Amplitude (SYNCT)...................................52
0x26 – Sync Miss Count Register (MISSCNT)...............53
0x27 – Clamp Position Register (PCLAMP) ...................53
0x28 – Vertical Control Register....................................53
0x29 – Vertical Control II...............................................54
0x2A – Color Killer Level Control...................................54
0x2B – Comb Filter Control...........................................54
0x2C – Luma Delay and HSYNC Control......................54
0x2D – Miscellaneous Control Register I (MISC1)..........55
0x2E – Miscellaneous Control Register II (MISC2).........55
0x2F – Miscellaneous Control III (MISC3)......................56
0x30 – Macrovision Detection.......................................57
0x31 – Clamp Cntl2......................................................57
0x32 – FILL DATA.......................................................58
0x33 – VBI CNTL1.......................................................58
0x34 – VBI CNTL2.......................................................58
0x35 – MISC 4.............................................................58
0x36 – Slice Level........................................................59
0x37 – WSS1...............................................................59
0x38 – WSS2...............................................................59
0x39 – CSTATUS III....................................................59
0x3A – HFREF............................................................60
0x3B – CLAMP MODE.................................................60
Pin Diagram........................................................................61
Pin Description................................................................62
Analog Interface Pins...................................................62
Two Wire Interface Pins................................................63
Video Timing Unit Pins.................................................63
Clock Interface Pins .....................................................65
Test Pins.....................................................................65
Power and Ground Pins...............................................66
Parametric Information......................................................67
AC/DC Electrical Parameters...........................................67
Clock Timing Diagram..................................................69
Application Information.....................................................70
Video Input Interface....................................................70
A/D Converter..............................................................70
Clamping/AGC.............................................................70
Clock Generation.........................................................70
Power-Up....................................................................70
Application Schematics....................................................71
PCB Layout Considerations..........................................72
100-pin PQFP Package Mechanical Drawing...................73
100-pin LQFP Package Mechanical Drawing....................74