TW8836
Table of Contents
Analog Video Decoder ........................................................................... 1
Analog RGB Inputs................................................................................. 1
Digital Inputs Support ............................................................................ 1
TFT Panel Support .................................................................................. 1
Font Based On Screen Display ............................................................ 1
SPI Flash Based On Screen Display ................................................... 1
Image Processing ................................................................................... 2
Clock Generation .................................................................................... 2
Timing Controller (TCON) ..................................................................... 2
MCU ........................................................................................................... 2
BT.656 Output .......................................................................................... 2
Touch Screen Controller ....................................................................... 2
Miscellaneous .......................................................................................... 2
Table of Contents ............................................................................... 3
Ordering Information ........................................................................ 11
TW8836 Functional Block Diagram................................................. 11
Functional Description ..................................................................... 11
Overview ................................................................................................. 11
Analog Front-end .................................................................................. 12
Video Decoder ....................................................................................... 12
Sync Processor .................................................................................. 12
Horizontal Sync Processing .............................................................. 12
Vertical Sync Processing ................................................................... 12
Color Decoding ................................................................................... 12
Y/C Separation ................................................................................... 12
Color Demodulation ........................................................................... 12
Automatic Chroma Gain Control ....................................................... 13
Low Color Detection and Removal ................................................... 13
Automatic Standard Detection .......................................................... 13
Video Format Support ........................................................................ 13
Component Processing ..................................................................... 14
Luminance Processing ...................................................................... 14
The Hue and Saturation .................................................................... 14
Touch Screen Controller ..................................................................... 14
Digital Input Support ............................................................................ 14
LVDS Video Input Interface ............................................................... 14
Input Image Control .............................................................................. 17
Image Scaling ........................................................................................ 17
Image Enhancement Processing ...................................................... 17
Black/White Stretch ............................................................................ 17
TFT Panel Support ................................................................................ 17
Dithering .............................................................................................. 17
Gamma Table .................................................................................... 17
TCON .................................................................................................. 17
LVDS out put format........................................................................... 17
LVDS Color Mapping ......................................................................... 18
Font Based On Screen Display .......................................................... 18
On Chip OSD functions ..................................................................... 18
Basic Register Setting Flow Example for Built-in OSD Controller.. 20
OSD Window Start Location: Built-in OSD Controller ..................... 22
OSD_RAM Configuration .................................................................... 22
Alpha Blending for OSD Window ..................................................... 23
Alpha Blending Concept .................................................................... 24
SPI Flash On Screen Display.............................................................. 24
Pixel Order .......................................................................................... 28
RLC Data Format ............................................................................... 30
OSD Display Path .............................................................................. 32
Built-in Microcontroller ........................................................................ 33
TW8836 MCU Block Diagram ............................................................. 34
Microcontroller Interface ..................................................................... 34
Two Wire Serial Bus Interface ........................................................... 35
Pin Diagram ...................................................................................... 38
TW8836 128 pin LQFP (Top-View) ................................................ 39
Pin Descriptions ............................................................................... 40
Parametric Information..................................................................... 47
AC/DC Electrical Parameters.............................................................. 47
Package Outline Drawing ................................................................ 53
Q128.14x14: 128 Lead Low Plastic Quad Flatpack Package
(LQFP) 0.4mm pitch.............................................................................. 53
172-pin TFBGA ...................................................................................... 53
Filter Curves ..................................................................................... 55
Anti-alias Filter ..................................................................................... 57
Decimation Filter ................................................................................. 57
Chroma Band Pass Filter Curves ..................................................... 57
Luma Notch Filter Curve for NTSC and PAL .................................. 58
Chrominance Low-Pass Filter Curve ............................................... 60
TW8836 Register Summary ............................................................ 60
General ................................................................................................ 60
General ................................................................................................ 60
Input Control ........................................................................................ 60
DTV ..................................................................................................... 61
BT656 Encoder .................................................................................. 61
GPIO.................................................................................................... 61
MBIST (Memory Built-In Test)........................................................... 62
TSC (Touch Screen Control) ............................................................ 62
LOPOR ............................................................................................... 64
SSPLL2 ............................................................................................... 64
SSPLL ................................................................................................. 64
Decoder ............................................................................................... 65
ADC/LLPLL......................................................................................... 67
SCALER / TCON ............................................................................... 69
Image Adjustment .............................................................................. 70
Gamma & Dither ................................................................................ 70
FOSD .................................................................................................. 72
SPI OSD ............................................................................................. 76
SPI & MCU ......................................................................................... 80
MEASUREMENT .............................................................................. 81
LCDC : LVDS .................................................................................... 83
LVDS RX Configuration ..................................................................... 83
MCU Special Function Register ........................................................ 83
TW8836 Register Descriptions ........................................................ 86
0x000 – Product ID Code Register (ID)........................................... 86
0x001 – Product REVISON NUMBER Register ............................ 86
0x002 – IRQ ........................................................................................ 86
0x003 – IMASK .................................................................................. 86
0x004 – Status .................................................................................... 86
0x005 – IRQ & MASK........................................................................ 87
0x006 – SRST .................................................................................... 88
0x007 – OUTPUT CTRL I ................................................................. 88
0x008 – OUTPUT CTRL II ................................................................ 89
0x00F – INT0 WRITE PORT ............................................................ 89
0x01F – TEST .................................................................................... 89
INPUT CONTROL ............................................................................. 90
0x040 – INPUT Control I.................................................................... 90
0x041 – INPUT Control II................................................................... 90
0x042 – INPUT CROP_HI ................................................................ 90
0x043 – INPUT V CROP Position .................................................... 91
0x044 – INPUT V CROP Length LO ............................................... 91
0x045 – IINPUT H CROP Position LO ............................................ 91
0x046 – INPUT H CROP Length LO ............................................... 91
0x047 – BT656 Decoder Control I .................................................... 91
0x048 – BT656 Decoder Control II ................................................... 91
0x04B – VSYNC INPUT CONTROL ............................................... 92
0x050 – DTV Input Control ................................................................ 93
0x051 – DTV Input Control ................................................................ 93
0x052 – DTV Input Control ................................................................ 94
0x053 – DTV Input Format ................................................................ 94
0x054 – DTV Field Detection Region ............................................... 95
0x056 – DTV Vsync Delay ................................................................ 95
0x057 – Sequential RGB ................................................................... 95
0x05F – Test Pattern Generator Control Register.......................... 96
0x060 – ENFP2 .................................................................................. 96
0x061 – MISC Control ....................................................................... 96
0x062 – BT656 ENCODE CONTROL ............................................ 97
0x063 – BT656 ENCODE CONTROL ............................................ 97
0x064 – BT656 HORIZONTAL / VERTICAL SCALE .................... 97
0x065 – BT656 HORIZONTAL DOWN SCALE ............................ 97
0x066 – BT656 Encode Control ....................................................... 97
0x067 – BT656 Encode Control ....................................................... 98
0x068 – BT656 Encode Position_HI ................................................ 98
0x069 – BT656 Encode CROP Length_HI ..................................... 98
0x06A – BT656 ENCODE V CROP Position ................................. 98
0x06B – BT656 ENCODE V CROP Length LO ............................. 99