This document provides technical information for the user. Techwell, Inc. reserves the right to modify the
information in this document as necessary. The customer should make sure that they have the most recent data
sheet version. Techwell Inc. holds no responsibility for any errors that may appear in this document. Customers
should take appropriate action to ensure their use of the products does not infringe upon any patents. Techwell
Inc. respects valid patent rights of third parties and does not infringe upon or assist others to infringe upon such
rights.
TW8816 incorporates all the features in a single package for multi-purpose PC display and
LCD/TV systems. With a NTSC/PAL/SECAM TV decoder, it contains all the logics required to
convert standard TV, DTV, and PC monitor signals to the digital control and data signals to drive
various TFT panel types, and it supports resolution up to WXGA. CVBS, Analog YPbPr, and Svideo input allow direct connection to DVD and HDTV sources. Digital TTL YCbCr and RGB inputs
allow digital TV or digital VGA monitor signals to be input for display on the same LCD display
panel.
Techwell's TW8816 is an enhanced version of the TW88, TW8800, TW8801, TW8802, TW8803,
TW8804, and TW8806 flat panel TV/monitor controller. Primary enhancements include: Built-in
Microcontroller, CCFL controller, Digital Video interface, Power sequence control, Multi-window
programmable On Screen Display, 4H Comb Filter, charge pump booster, downscaling to QVGA
output resolution, internal de-interlacing engine, 3 ADCs with clamping engine. TW8816 can also
generate the control-timing signal, TCON, on-chip for non-TCON panel support.
The evaluation board is provided with a DC power adapter. Typically, a 9V 1.6A power supply is
provided in the kit, but depending on the LCD module, a higher voltage and higher current DC
adapter such as a 12V 4A power supply may be used.
After properly plugging in the power adapter, the evaluation board may be switched “ON” by using
the red SPDT Toggle switch (S1) on the board. At this time, LED1 should turn on.
There are jumpers on the board that connects the power to TW8816. They should be set as
follow:
A video source is required to observe video output on the LCD screen controlled by TW8816.
There are various video sources that could be used with the connectors and interfaces that are
available. Selection of the input may be done by a software application or by pressing the “mode”
button of the operation keys on the main board or “Embed microcontroller board.” If there are no
PC input signals, the input selection will default to CVBS. Details of the operation of the video
input interface may vary depending on the firmware.
a. Analog Video Input Connectors
- S-Video
- CVBS
b. Digital Video Input Interface
- Digital video input to the TW8816 are available via the “DTV/MCU Daughter Card I/F” interface
connector CN14. It allows connection to 24-bit RGB or 8/16/24-bit YCbCr up to 108MHz, and
both interlaced and progressive ITU-656 sources are supported. On the daughter card, CVBS
input to the TW9910 is output as digital video connected to TW8816.
The LCD panel power supply voltage can be selected with jumper J7. Please do not install more
than one jumper at once as this would damage the power supply on the evaluation board.
Voltage Jumper Position
3.3V 5:6
5V 3:4
12V 1:2 (FB17 is not installed and 12V is not available by default)
b. Inverter power Selection (J8)
The Inverter power supply voltage can be selected with jumper J8. Please do not install more
than one jumper at once as this would damage the power supply on the evaluation board.
Voltage Jumper Position
5V 3:4
12V 1:2
c. Inverter Interface (J9)
The J9 headers are used to provide power to an inverter for the LCD back light.
Pin Description Pin Description
1 GND 4 Brightness
2 VCC ( set by J8) 5 NC
3 On/Off
d. CCFL Controller Interface (CN16)
CN16 is available for the “Embed backlight controller board” connection to use the built-in CCFL
controller. This reduces the need of an external inverter used with J9. Note that if the CCFL
controller is used, the charge pump CP0 may not be used; thus, Part A of “TW8806B A070VW01
Daughter Card” cannot be connected. Also, please make sure that the firmware support CCFL
and that the CCFL interface is properly configured before using it. Incorrect configuration may
cause damage to the backlight controller board.
Different kinds of LCD panels usually require their specific connectors. Since there are no
standard connectors, the evaluation board has generic interfaces which are 8bits per color single
pixel LVDS, 6bit per colors single pixel TTL, and 8bits per color single pixel output pins for the
daughter boards. If the board was not provided with a proper cable for your panel, you need to
build a cable yourself.
LCD panel interfaces
- Interface for Custom Made Panel Card
Reference : CN9/CN10
Part number : PPPN202FJFN
Matching socket :PRPN202PARN
The evaluation board has connectors on the left side of the board with reference CN14 and CN15.
These connectors may be used with the “Embed MCU with TW9910 daughter card” to utilize the
built-in microcontroller and the shared digital video interface available on the TW8816.
The built-in microcontroller may be used with the daughter card and the appropriate firmware.
Some of the features are:
- SPI ( SPI EEPROM available for internal microcontroller firmware )
- TW8816 as I2C Master
- Internal microcontroller will not be initialized by “RESET while pressing MENU KEY”
8. Operation Keys
There are 8 operation keys. Keys are shown with the Built-in and External microcontrollers.
Button Function
POWER Power On/Off
MENU Display OSD Menu On/Off
UP Menu Up
DOWN Menu Down
LEFT Move to Up Menu / Decrease Menu Item Value / Volume Down
RIGHT Select / Increase Menu Item Value / Volume Up
MODE Change Input Mode
RESET Reset the system
9. Controlling the TW8816
There are various ways to control the operation of TW8816 on the evaluation board. An RS-232
Null modem cable can be used directly from a PC to the RS-232 connector or a USB connection to
the USB Interface board for RS-232, I2C, and SPI communication. The USB Interface board is
an adapter that can be used with the evaluation board, and it also has an I2C interface ( USB-toI2C ) that may be used with customer’s board. Using the USB Interface board is recommended.
Via the USB or the RS-232 of the PC, basic commands can be used in the HyperTerminal or the
recommended sample application called TW_terminal2 provided with the evaluation kit.
The Hyperterminal can only be used to access I2C registers of the TW8816 using basic
commands, send text file, and upgrade firmware of the external microcontroller.
Special commands. Some of these commands are not available.
E E Level Set debugging message level
0: Only error message
3: Information message
* 2 Call loader
P On/Off flat panel
11. Using TW-Terminal2
TW_Terminal2.exe is a Microsoft Windows based program provided with the evaluation board for
testing, debugging, and updating firmware. Updating the firmware of the built-in microcontroller of
the TW8816 will require the use of the USB Interface Board and a special cable. Any other
features that require the I2C or SPI control will require the use of the USB Interface Board. The
TW_Terminal2 application has terminal emulation capabilities and has all the functionalities of the
HyperTerminal with the RS-232 connection. It also provides a friendly graphical user interface to
access and control the TW8816 registers. With this application, changing and monitoring
registers are made simpler and the user has better visibility. It allows faster firmware upgrade
without the need of an external eeprom programmer and a simple window interface for settings
such as gamma, decoder, ADC, scaler, and much more. Also, the flexible user interface can be
custom designed to the customer’s need by the use of TW_VEditor application.
a. Connection Setup
The connection must be setup appropriately for each project.
Special commands. Some of these commands are not available.
E E Level Set debugging message level
0: Only error message
3: Information message
* 2 Call loader
P On/Off flat panel
d. Using Text Files
Menu Bar and go to Transfer > Send Text files or click on the
text file downloading. This function is useful when multiple commands need to be executed. It
works same as typing every character in the text file. Also, this can be used with the files
created by the “Save Register” feature.
When text file is downloaded, the delay time between characters and between lines can be
adjusted by setting ‘Delay for Text Sending’. If the downloading is not working well, the delay
values need to be increased.
e. Firmware Up-grade
The USB Interface Board must be connected to the respective DB9 connector. For
Winbond firmware upgrade, it must be connected to CN13 of the TW8816 Main Board.
For internal microcontroller upgrade, we recommend to connect the USB Interface
Board to the “Embed MCU with TW9910 Board.”
i. Connect the SPI cable, which is a cable from the USB Interface Board (JP3 and
JP2) that is required to be connected to the SPI headers (J3) on the “Embed
MCU with TW9910 Board.” Also, make sure the firmware of the USB Interface
Board has supports SPI. Please refer to the USB Interface Board User’s
Manual for more instructions.
ii. Click on the Button and a “Firmware Upload” window will appear.
iii. Choose “SPI Flash” to update the firmware for the built-in microcontroller
iv. Click on
v. In “Hex Merge” window, click on
vi. Click on “Open” in the browser window, and then “OK” in the “Hex Merge”
window.
vii. Click on “Auto” and wait for completion.
viii. After completion, the microcontroller will reboot and some boot up messages
similar to the following should appear in the respective TW_Terminal window.
Also, some LEDs should on the daughter board should be turned on by the
firmware.
after Filename to choose the selected firmware hex file.
This control reads out the page of register data based on the “Assigned Valid Register Table.”
The values are editable via this table format and the entire data page(s) can be read or written
individually or as a whole. Get the register table to read or write by clicking on
this page, the register data read may also be saved as a table text file or as a downloadable
text file. Table text files may be viewed easily, and downloadable text files may be used with
the “Send Text File…” function. Please refer to the TW_Terminal2 User’s Manual for more
detailed information.
There are also other features that are made simple by Techwell’s sample application. You
may use the GUI to apply settings that you would normally have to manually apply by writing
directly to the registers. These GUIs are for Gamma, Decoder, ADC, TCON, SCALER,
CCFL, IMAGE ADJUSTMENT, OSD, SPI, SCALER, etc.
I. These Button
registers function, and both of them are displayed at the top of the window for each
feature.
II. When you open any of these windows, you may click on
III. When changing any of the setting, you will also be able to see the registers and data that
are being set in the main terminal.
IV. As an option, a customized “control” page may also be added. This customized
“control” page may be created using the TW_VEditor application. Please refer to
TW_Terminal2 User’s Manual for more detailed information on how to create control
pages that fits your application needs.
Example
provides read-all-registers function and button provides write-all-