RTD2523 Realtek
RTD2523 Realtek
RTD2523/2513
Flat Panel Display Controller
www.DataSheet4U.com
Confidential
Revision 0.18
www.DataSheet4U.com
2
Realtek RTD2523/2513
1. Features
General Color Processor
l Embedded dual DDC support DDC1, DDC2B, l Digital brightness and contrast adjustments
DDC/CI l sRGB compliance
l Zoom scaling up and down l Gamma correction
l Embedded Pattern Generator l Dithering logic for 18-bit panel color depth
l No external memory required. enhancement
l Require only one crystal to generate all timing
l Embedded reset control output Output Interface
l Embedded crystal output to MICROP l Built-in display timing generator and fully
l 3 channels 8 bits PWM output, and selectable programmable
PWM clock frequency. l (RTD2523) 1 and 2-pixel/clock panel support and
up to 140MHz
Analog RGB Input Interface l (RTD2513) 1 and 2-pixel/clock panel support and
l Integrated 8-bit triple-channel 140MHz up to 95MHz
ADC/PLL l Scaler internal LSB/MSB swap, odd/even swap
l Support up to 140MHz (SXGA@ 75Hz) and red/blue group swap.
l Embedded programmable Schmitt trigger of l Programmable TCON function support
HSYNC l RSDS (Reduced Swing Differential Signaling)
l Support Sync On Green (SOG) and de-composite data bus type 1~3.
sync modes l Dual/Single LVDS interface output
l On-chip high-performance PLLs l Reduced EMI and power saving feature
l 32 phase APLL l Integrated Spread-Spectrum DCLK PLL.
3
Realtek RTD2523/2513
2. RTD2523/2513 Pin-Out Diagram
TCON[12]/COUT/PWM2
TCON[0] / VCLK / DCLK
TCON[1] / V[7] /DENA
DDCSDA2 / TCON[7]
DDCSCL2 / TCON[5]
REFCLK / PWM0
TCON[10] / V[1]
TCON[11] / V[0]
TCON[7] / V[4]
TCON[8] / V[3]
TCON[9] / V[2]
GNDIO
VCCIO
GNDK
PGND
VCCK
PVCC
SCSB
AR1N
AR2N
AR3N
AR1P
AR2P
AR3P
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
110
109
108
107
106
105
104
103
XO 1 102 AG1N
XI 2 101 AG1P
DPLL_GND 3 100 AG2N
DPLL_VDD 4 99 AG2P
APLL_VDD 5 98 VCCK
PLL_TST1 6 97 GNDK
PLL_TST2 7 96 PGND
APLL_GND 8 95 PVCC
TMDS_TST/PWM1 9 94 AG3N
TMDS_GND 10 93 AG3P
TMDS_VDD 11 92 ACLKN
REXT 12 91 ACLKP
TMDS_VDD 13 90 AB1N
RX2P 14 89 AB1P
RX2N 15 88 AB2N
TMDS_GND 16 87 AB2P
RX1P 17 86 AB3N
RX1N 18 85 AB3P
TMDS_VDD 19 84 PGND
RX0P 20 83 PVCC
RX0N 21 82 BR1N
TMDS_GND 22 81 BR1P
www.DataSheet4U.com RXCP
RXCN
TMDS_GND
TMDS_VDD
ADC_GND
23
24
25
26
27
RTD2523 80
79
78
77
76
BR2N
BR2P
BR3N
BR3P
BG1N
ADC_REFIO 28 75 BG1P
ADC_VDD 29 74 BG2N
B+ 30 73 BG2P
B- 31 72 PGND
ADC_GND 32 71 PVCC
SOG 33 70 GNDK
G+ 34 69 VCCK
G- 35 68 BG3N
ADC_VDD 36 67 BG3P
R+ 37 66 BCLKN
R- 38 65 BCLKP
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
DDCSDA/TCON[1]/PWM1
RESET
ADC_GND
ADC_GND
PVCC
AHS
AVS
SCLK
BB3P
BB2P
BB1P
VCCIO
BB3N
BB2N
BB1N
GNDK
GNDIO
PGND
TCON[3] / SDIO[2]
TCON[4] / SDIO[1]
SDIO[0]
4
Realtek RTD2523/2513
(I/O Legend: A = Analog, I = Input, O = Output, P = Power, G = Ground)
n ADC: 15 pins
Name I/O Pin No Description Note
ADC_GND AG 27 ADC ground
ADC_REFIO AP 28 ADC band-gap voltage de-coupling 1.20V
ADC_VDD AP 29 Analog power (3.3V)
BLUE+ AI 30 Analog input from BLUE channel
BLUE- AI 31 Analog input ground from BLUE channel
ADC_GND AG 32 ADC ground
SOG/ADC_TEST AIO 33 SOG in/ADC test pin
GREEN+ AI 34 Analog input from GREEN channel
GREEN- AI 35 Analog input ground from GREEN
channel
ADCB_VDD AP 36 Analog power (3.3V)
RED+ AI 37 Analog input from RED channel
RED- AI 38 Analog input ground from RED channel
ADC_GND AG 39 Analog ground
ADC_GND AG 40 Analog ground
ADC_VDD AP 41 Analog power (3.3V)
AHS AI 42 Analog HS input (10), (4), (5)
AVS AI 43 Analog VS input (2), (4), (5)
n PLL: 8 pins
Name I/O Pin No Description Note
www.DataSheet4U.com
XO AI 1 Reference clock output
XI AO 2 Reference clock input
DPLL_GND AG 3 Ground for digital PLL
DPLL_VDD AP 4 Power for digital PLL (3.3V)
APLL_VDD AP 5 Power for multi-phase PLL (3.3V)
PLL_TEST1 AIO 6 Test Pin 1 / IRQ# 3.3V tolerance
PLL_TEST2 AIO 7 Test Pin 2/Power-on-latch for crystal out
Frequency
APLL_GND AG 8 Ground for multi-phase PLL
5
Realtek RTD2523/2513
n Display & TCON/VIDEO-8 Port: 54 pins
■ :LVDS+RSDS+TTLO ■:RSDS+TTLO ■:RSDS+TTLIO■:TTLO ■:TTLIO
Pin 6-bits 6 bits 8/6 bits 8 bits 6 bits Dual 6 bits Single Note
NO Dual RSDS Single RSDS Dual/Single Dual/Single TTL TTL
. LVDS TTL
51 S[3] / S[3] / S[3] / S[3] / S[3] / S[3] / (1), (2), (3)/
TCON[2] / TCON[2] / TCON[2] / TCON[2] / TCON[2] / TCON[2] / 2mA
PWM2 PWM2 PWM2 PWM2 PWM2 PWM2
52 S[2] / S[2] / S[2] / S[2] S[2] / S[2] / (1), (2), (3)/
TCON[3] TCON[3] TCON[3] /BBLU[1] / TCON[3] TCON[3] 2mA
TCON[3]
53 S[1] / S[1] / S[1] / S[1]/ S[1] / S[1] / (1), (2), (3)/
TCON[4] TCON[4] TCON[4] BBLU[0] / TCON[4] TCON[4] 2mA
TCON[4]
55 PWM2 / PWM2 / PWM2 / PWM2 / PWM2 / PWM2 / (1), (2), (3)/
COUT / COUT / COUT / COUT / COUT / COUT / 2mA
TCON[13] TCON[13] TCON[13] TCON[13] TCON[13] TCON[13]
59 BB3P BB3P NC BBLU [7] BBLU [7] BBLU [7]
60 BB3N BB3N NC BBLU [6] BBLU [6] BBLU [6]
61 BB2P BB2P NC BBLU [5] BBLU [5] BBLU [5]
62 BB2N BB2N NC BBLU [4] BBLU [4] BBLU [4]
63 BB1P BB1P NC BBLU BBLU [3] BBLU [3]
[3]/T0
64 BB1N BB1N NC BBLU [2] / BBLU [2] BBLU [2]
T1
65 BCLKP BCLKP NC BGRN [1] / TCON [6] TCON [6]
T2
66 BCLKN BCLKN NC BGRN [0] / TCON [5] TCON [5]
www.DataSheet4U.com
T3
67 BG3P BG3P NC BGRN[7] BGRN [7] BGRN [7]
68 BG3N BG3N NC BGRN[6] BGRN [6] BGRN [6]
73 BG2P BG2P TODP BGRN [5] / BGRN [5] BGRN [5]
T4
74 BG2N BG2N TODN BGRN [4] / BGRN [4] BGRN [4]
T5
75 BG1P BG1P TOCLKP BGRN [3] / BGRN [3] BGRN [3]
T6
76 BG1N BG1N TOCLKN BGRN [2] / BGRN [2] BGRN [2]
T7
77 BR3P BR3P TOCP BRED [7] / BRED [7] BRED [7]
T8
78 BR3N BR3N TOCN BRED [6] / BRED [6] BRED [6]
T9
79 BR2P BR2P TOBP BRED [5] / BRED [5] BRED [5]
T10
80 BR2N BR2N TOBP BRED [4] / BRED [4] BRED [4]
T11
81 BR1P BR1P TOAP BRED [3] / BRED [3] BRED [3]
T12
82 BR1N BR1N TOAP BRED [2] / BRED [2] BRED [2]
T13
85 AB3P NC TEDP ABLU [7] / ABLU [7] ABLU [7]
T14
86 AB3N NC TEDN ABLU [6] / ABLU [6] ABLU [6]
T15
6
Realtek RTD2523/2513
87 AB2P NC TECLKP ABLU [5] / ABLU [5] ABLU [5]
T16
88 AB2N NC TECLKN ABLU [4] / ABLU [4] ABLU [4]
T17
89 AB1P NC TECP ABLU [3] / ABLU [3] ABLU [3]
T18
90 AB1N NC TECN ABLU [2] / ABLU [2] ABLU [2]
T19
91 ACLKP NC TEBP ABLU [1] / TCON [1] TCON [1]
T20
92 ACLKN NC TEBN ABLU [0] / TCON [0] TCON [0]
T21
93 AG3P NC TEAP AGRN [7] / AGRN [7] AGRN [7]
T22
94 AG3N NC TEAN AGRN [6] / AGRN [6] AGRN [6]
T23
99 AG2P TCON [11] NC AGRN [5] / AGRN [5] AGRN [5]
T24
100 AG2N TCON [10] NC AGRN [4] / AGRN [4] AGRN [4]
T25
101 AG1P TCON [9] NC AGRN [3] / AGRN [3] AGRN [3]
T26
102 AG1N TCON [8] NC AGRN [2] / AGRN [2] AGRN [2]
T27
103 AR3P TCON [7] NC ARED [7] / ARED [7] ARED [7]
T28
104 AR3N TCON [6] NC ARED [6] / ARED [6] ARED [6]
T29
www.DataSheet4U.com 105 AR2P TCON [5] NC ARED [5] / ARED [5] ARED [5]
TH
106 AR2N TCON [1] NC ARED [4] / ARED [4] ARED [4]
TV
107 AR1P TCON [0] NC ARED [3] / ARED [3] ARED [3]
TE
108 AR1N NC NC ARED [2] / ARED [2] ARED [2]
TK
113 PWM2 / PWM2 / PWM2 / ARED [1] COUT PWM2 / (9)
COUT / COUT / COUT / COUT /
TCON[12] TCON[12] TCON[12] TCON[12]
114 TCON [11] V [0] V [0] ARED [0] TCON [11] (1), (7), (8)
/V[0]
115 TCON [10] V [1] V [1] BRED [1] TCON [10] (1), (7), (8)
/V[1]
116 TCON [9] / V [2] V [2] BRED [0] TCON [9] (1), (7), (8)
V[2]
117 TCON [8] / V [3] V [3] AGRN [1] TCON [8] (1), (7), (8)
V[3]
118 TCON [7] / V [4] V [4] AGRN [0] TCON [7] (1), (7), (8)
V[4]
119 TCON [6] / V [5] V [5] DHS DHS DHS (1), (7), (8)
V[5]
122 TCON [5] / V [6] V [6] DVS DVS DVS (1), (7), (8)
V[6]
123 TCON [1] / V [7] V [7] DENA DENA DENA (1), (7), (8)
V[7]
124 TCON [0] / VCLK VCLK DCLK DCLK DCLK (1), (7), (8)
VCLK
7
Realtek RTD2523/2513
* Single RSDS, even/odd swap, data(59~82) output to pin85~108, TCON(99~108) output to pin59~68.
* In 6-bit dual TTL output mode, Video8 cannot output TCON7~TCON11; while video8 can output TCON in 6-bit single
TTL mode.
n TMDS: 18 pins
Name I/O Pin No Description Note
TMDS_TST/ PWM1 AIO 9 TMDS_TEST Pin / PWM1 /
Power-on-latch for serial / parallel port
TMDS_GND G 10
TMDS_VDD P 11 (3.3V)
EXT_RES A 12 Impedance Match Reference.
TMDS_VDD P 13 (3.3V)
RX2P I 14 Differential Data Input
RX2N I 15 Differential Data Input
TMDS_GND G 16
RX1P I 17 Differential Data Input
RX1N I 18 Differential Data Input
TMDS_VDD P 19 (3.3V)
RX0P I 20 Differential Data Input
RX0N I 21 Differential Data Input
TMDS_GND G 22
RXCP I 23 Differential Data Input
RXCN I 24 Differential Data Input
TMDS_GND G 25
TMDS_VDD P 26 (3.3V)
www.DataSheet4U.com n PWM Interface: (PWM1, PWM2 can be selected from 1 of 3 possible pins.)
Name I/O Pin No Description Note
PWM2 / TCON [2] / S O 51 PWM2 / TCON [2] / SDIO [3] (1), (2), (3), (5), (8),
[3]
PWM2 / TCON [13] / O 55 PWM2 / TCON [13] / Crystal out (2), (8), (9)
COUT
PWM2 / TCON [12] / O 113 PWM2 / TCON [12] / Crystal out (2), (8), (9)
COUT 6bit dual TTL cannot
support
PWM1 / TMDS_TST AIO 9 PWM1/ TMDS_TEST Pin / (2), (7), (8)
Power-on-latch for serial / parallel port
PWM1 / DDCSDA / IO 47 PWM1 / DDC serial control I/F data input (1), (2), (3), (5), (8),
TCON [1] / BBLU [0] / output / TCON [4]
PWM1 / DDCSDA2 / IO 125 PWM1 / DDC serial control I/F data input (1), (2), (3), (5), (8),
TCON [7] / output / TCON [7]
PWM0 / REFCLK IO 112 PWM0 / (In / out) test pin for DCLK / (2), (9)
Video8 even-odd signal
8
Realtek RTD2523/2513
www.DataSheet4U.com
9
Realtek RTD2523/2513
3. General Description
DDC
RTD2523
Rx0~2 Flat Panel Display
RxC 5C TTL Signal
48D LCD Panel
1C
Video 8D
Decoder RSDS Signal
48D
24.576MHz 5C LCD Panel
Parallel Port
Reset
24.576MHz
IIC 20
LVDS Signal
MCU LCD Panel
Analog
RGB Panel
Triple-ADC
Color Timing Driver
Digital FIFO
DVI Conversion Control
TMDS/
HDCP
ITU-656
24.576MHz
MCU
10
Realtek RTD2523/2513
4. Functional Description
4.1 Input
There are not H sync、V sync signals provided by the video decoder with ITU BT.656, these
synchronal signals have to be generated by decoding the EAV & SAV timing reference signals.
VGBCLK
VGB_R(Byte) xxx U0 Y0 V0 Y1 U2
Only 254 of possible 256 8-bit words may be used to express a signal value, 0 and 255 are reserved for
data identification purposes. Video 8 data stream is as below:
Blanking Timing reference 720 pixels YUV 422 DATA Timing reference Blanking
period code code period
www.DataSheet4U.com … 80 10 FF 00 00 SAV Cb0 Y0 Cr0 Y1 Cb2 Y2 … Cr718 Y719 FF 00 00 EAV 80 10 …
Cbn: U(B-Y) colour difference component
Yn : luminance component
Crn: V(R-Y) colour difference component
SAV/EAV format
Bit 7 Bit 6(F) Bit 5(V) Bit 4(H) Bit 3(P3) Bit 2(P2) Bit 1(P1) Bit 0(P0)
1 Field bit Vertical blanking bit V=1 H=0 in SAV Protection bits
1st field F=0 Active video V=0 H=1 in EAV
2nd field F=1
Hardware can recognize the occurrence of EAV & SAV by detecting the 0xff , 0x00 , 0x00 data
sequence, and then generate the Hsync、Vsync、Field signals internally by decoding the fourth word
of the timing reference signal(EAV、SAV). F & V change state synchronously with the EAV(End of
active video) reference code at the beginning of the digital line.
Bits P0, P1, P2, P3, have states dependent on the states of the bits F, V and H as shown below. At the
receiver this permits one-bit errors to be corrected and two-bits errors to be detected.
11
Realtek RTD2523/2513
Error correction
A = P1 xor F xor V
B = P2 xor F xor H
C = P3 xor V xor H
D = F xor V xor H xor P3 xor P2 xor P1 xor P0
Analog Input
RTD integrates three ADC’s (analog-to-digital converters), one for each color (red, green, and blue).
The sync-processor can deal with Separate-Sync, Composite-Sync, and Sync-On-Green. And the PLL
can generate very low jitter clock from HS to sample the analog signal to digital data. Input data is
latched within a capture window defined in registers refer to VS and HS leading edge.
TMDS Input
RTD integrates high-speed single link receiver. It can operate up to 165Mhz.
12
Realtek RTD2523/2513
IHS
IVS
IPV_ACT_STA
IPV_ACT_LEN
Input Capture Window
www.DataSheet4U.com
IPH_ACT_STA
IPH_ACT_WID
13
Realtek RTD2523/2513
In single pixel output mode, single pixel data (24-bit RGB) is transferred to display port A on each
active edge of DCLK, the rate of DCLK is also equal to display pixel clock. The sync & enable signals
are also sent to display port on each active edge of DCLK.
Seeing figure13 as below
In double pixel output mode, double pixel data (48-bit RGB) is transferred to display port A & B on
each active edge of DCLK and the rate of DCLK is equal to half display pixel clock at this moment.
The sync & enable signals are also sent to display port on each active edge of DCLK. Seeing figure14
as below.
DCLK
DEN
www.DataSheet4U.com
DB/RGB xxx
DHCLK
DEN
14
Realtek RTD2523/2513
DHS
DEN
DVS
DV_VS_END
Background Region
DV_ACT_STA
www.DataSheet4U.com
Display Active Window
DV_ACT_END
DV_BKGD_END
DV_TOTAL
DH_HS_END
DH_BKGD_STA
DH_ACT_STA
DH_ACT_END
DH_BKGD_END
DH_TOTAL
15
Realtek RTD2523/2513
Scaled RGB
X + Gamma
Correction
To Dithering
Contrast (0~2)
Brightness (-128~127)
Gamma
24 24 Dithering 24
Correction
Output
Format 24/48
Conversion
Internal OSD 4
16x24 color
MUX 4 24
look-up table
Background Color 4
CR38
16
Realtek RTD2523/2513
4.5 Auto-Adjustment
There are two main independent auto-adjustment functions supported by RTD, including
auto-position & auto-tracking. The operation procedure is as following;
Auto-Position
1. Define the RGB color noise margin (7B,7C,7D): When the value of color channel R or G or B is
greater than these noise margins, a valid pixel is found.
2. Define the threshold-pixel for vertical boundary search (7C[1:0]).
3. Define the boundary window of searching (75 ~ 7A) for horizontal boundary search.
4. Start auto-function (7F[0]) .
5. The result can be read from register (80 ~ 87).
Auto-Tracking
1. Setting the control-registers (7F) for the function (auto-phase, auto-balance) according to the
Control-Table.
2. Define the Diff-Threshold (7E).
3. Define the boundary window of searching (75 ~ 7A) for tracking window.
4. Start auto-function (7F[0]) .
5. The result can be read from register (88 ~ 8B).
Of course, you can force this clock from external oscillators through pins REFCLK for your own
applications.
Control Bit1
REFCLK1
Internal CLK
CLK PLL
Control Bit0
Spread-Spectrum function is also build in DCLK to reduce EMI while using TCON. You can control
the SSP_I, SSP_W, and FMDIV to fine-tune the EMI.
17
Realtek RTD2523/2513
Serial Port:
Any transaction should start from asserted the SCS# and stop after de-asserted the SCS#.
Within this period, any data are driving by clock rising edge and latched by clock falling edge. The
detailed timing diagrams are as following;
R/W : 0 - Write
INC : 0 - Address Auto-Inc
STOP
A0 ~ A7 D0 ~ D7
SCLK
SCSB
SDIO
A A A A A A A A R IN D D D D D D D D D D D D D D D D D D D D D D D D
0 1 2 3 4 5 6 7 W C 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7
R/W : 1 - Read
INC : 1 - Non-Address Auto-Inc
STOP
A0 ~
D0 ~ D7
A7
SCLK
SCSB
SDIO
18
Realtek RTD2523/2513
Parallel Port:
After RESET end, the status of pin 9 (TMDS_TST) can be sensed to determine the interface
mode: highà parallel port, lowà serial port.
Reset end 3.3V
TMDS_TST
0V
The 4-bit parallel port works just like our serial port. The biggest difference is that the address
part needs 3 clocks but data 2. All the other definitions like “R/W”, “INC” and “STOP” are the same
with the serial port. The detailed timing diagrams are as following;
SCLK
SCSB
SDIO
[3:0]
SDIO [0] A [0] A [4] R/W D0 [0] D0 [4] D1 [0] D1 [4] D2 [0] D2 [4] 1
SDIO [1] A [1] A [5] INC D0 [1] D0 [5] D1 [1] D1 [5] D2 [1] D2 [5] 1
SDIO [2] A [2] A [6] X D0 [2] D0 [6] D1 [2] D1 [6] D2 [2] D2 [6] 1
SDIO [3] A [3] A [7] X D0 [3] D0 [7] D1 [3] D1 [7] D2 [3] D2 [7] 1
19
Realtek RTD2523/2513
We have the RESET_OUT function, and also reserve the RESET_IN function. By the
bounding of internal pins we can select three kinds of reset function. First of all is only reset-out, we
can output the reset signal to microns, and the micron can reset the RTD by firmware. The second
choice is only reset-in, the RTD can be reset by input signal or also firmware. The last is RTD output
reset and also reset itself. Noticed that the reset output is positive polarity, the reset in is negative
polarity. Besides, the reset output is open-drain pin.
The reset function operating voltage is determined by ADC_VDD voltage. The negative
threshold voltage is 1.8V at power-on status, but it can be programmed by registers to be 1.8V, 2.0V,
2.2V and 2.4V after power on. The registers are 0xEB [7:6]
+3.3V
+Vdet
-Vdet
+5V td
RESET_OUT
20
Realtek RTD2523/2513
To get better waveform of the input HSYNC, we have a programmable Schmitt Trigger circuit.
For different HSYNC amplitude and polarity, we can select different setting of the threshold voltage.
The Vt+ and the Vt- can be selected by register 0xED.
We can select the old mode or the new mode. When using the new mode we can directly
determine the positive threshold voltage (1.4V, 1.6V… 2.6V), and we can choose the distance from
the Vt+ to determine the Vt- (0.6V, 0.8V, 1.0V, 1.2V). We also can finely tune the voltage by minus
0.1V. For application, we can select different threshold voltage by the polarity of the HSYNC. The
control register is 0xED.
Input HSYNC
+
Vt
Vt-
Output HSYNC
www.DataSheet4U.com
RTD can output crystal frequency or half crystal frequency to external MCU to save a crystal
device. After power on, RTD latch the state of PLL_TEST2 pin to determine which frequency to
output, and the result shows in TCON register address 0x00[0]. 0 is for half of crystal frequency and
1 is for crystal frequency. When power on, crystal frequency output to TCON12 and TCON13.
Hence, crystal-in pin of external MCU can connect to TCON12 or TCON13. Firmware can turn off
the signal output of other pin, and the control register is in TCON register 0x00[1] and 0x00[2].
21
Realtek RTD2523/2513
For dual RSDS output interface, set 2’b11 to “Display Port Configuration” in TCON 0x03[7:6],
1’b1 to “Display 18 bit RGB Mode Enable” in 0x20[4], and 1’b1 to “Display Output Double-Width
Pixel Enable” in 0x20[2].
“Display Even/Odd Data Swap” in 0x21[7] can swap even pixel and odd pixel output to RSDS
A Port and RSDS B Port. “Display Red/Blue Data Swap” in 0x21[6] can swap red-channel data and
blue-channel data. “Display MSB/LSB Data Swap” in 0x21[5] can swap bit order between “bit7, 6, 5,
4, 3, 2” and “bit2, 3, 4, 5, 6, 7”. “RSDS Green / Clock Pair Swap” in TCON 0x03[5] can swap three
green pair and clock pair order between “G1, G2, G3, CLOCK” and “CLOCK, G1, G2, G3”. “RSDS
High/Low Bit Swap (data)” in TCON 0x03[1] can swap bit order in one data pair. “RSDS
Differential pair PN swap (data)” in TCON 0x03[0] can swap differential positive and negative pin.
TCON signal shares pin with parallel access port, PWM, crystal frequency output, video port
and DDC channel.
For single RSDS output interface, set 2’b11 to “Display Port Configuration” in TCON 0x03[7:6],
1’b1 to “Display 18 bit RGB Mode Enable” in 0x20[4], and 1’b0 to “Display Output Double-Width
Pixel Enable” in 0x20[2].
“Display Red/Blue Data Swap” in 0x21[6] can swap red-channel data and blue-channel data.
“Display MSB/LSB Data Swap” in 0x21[5] can swap bit order between “bit7, 6, 5, 4, 3, 2” and “bit2,
3, 4, 5, 6, 7”. “RSDS Green / Clock Pair Swap” in TCON 0x03[5] can swap three green pair and
clock pair order between “G1, G2, G3, CLOCK” and “CLOCK, G1, G2, G3”. “RSDS High/Low Bit
Swap (data)” in TCON 0x03[1] can swap bit order in one data pair. “RSDS Differential pair PN swap
(data)” in TCON 0x03[0] can swap differential positive and negative pin.
TCON11, 10, 9, 8, 7, 6, 5, 1, 0 use dedicated pin and output to pin 99~107. Video input port also
www.DataSheet4U.com has dedicated pin.
LVDS interface
For single/dual LVDS output interface, set 2’b10 to “Display Port Configuration” in TCON
0x03[7:6]. “Display 18 bit RGB Mode Enable” in 0x20[4] determines 6bits or 8bits data output per
channel. “Display Output Double-Width Pixel Enable” in 0x20[2] determines one pixel or two
pixels output per display clock. “Display Even/Odd Data Swap” in 0x21[7] swap Even port and Odd
port data when output double-width pixel enable, and determine output to Even port or Odd port in
output single-width pixel mode.
“Display Red/Blue Data Swap” in 0x21[6] can swap red-channel data and blue-channel data. Set
“Bit-Mapping Table Select” in 0xC2[0] 0 for 8bit LVDS output interface and 1 for 6bit LVDS output
interface.
TTL interface
For 8bit TTL output interface, set 2’b10 to “Display Port Configuration” in TCON 0x03[7:6],
1’b0 to “Display 18 bit RGB Mode Enable” in 0x20[4]. “Display Output Double-Width Pixel
Enable” in 0x20[2] determines one pixel or two pixels output per display clock. “Display Even/Odd
Data Swap” in 0x21[7] swaps A port and B port data when output double-width pixel enable, and
determine output to A port or B port in output single-width pixel mode. “Display Red/Blue Data
Swap” in 0x21[6] can swap red-channel data and blue-channel data. “Display MSB/LSB Data
Swap” in 0x21[5] can swap bit order between “bit7, 6, 5, 4, 3, 2, 1, 0” and “bit0, 1, 2, 3, 4, 5, 6, 7”.
“TTL Display B port Blue [1:0] Location” in TCON register 0x04[4] select where B port
22
Realtek RTD2523/2513
Blue[1:0] output to. If Blue[1:0] output to pin 52&53, RTD must work on serial port access mode. If
Blue[1:0] output to pin 46&47, ADC_DDC must be disabled.
For 6bit TTL output interface, LSB 2bit of TTL 8bit output is not necessary, and it is used as
TCON signal.
TCON
Due to the limitation of pin count, TCON shares pins with other signals. Refer to “Display &
TCON / Video-8 Port” in the pin definition for TCON configuration. The configuration is in TCON
Control Register.
According to parameter DPN, you must set LPF Mode in 0xD3[2]. If LPF Mode is 1, the charge
pump current, Ich, must be DPM/17.6, while Ich must be DPM/1.67 if LPF Mode is 0. The charge
pump current Ich is in 0xD0[0,7:3].
www.DataSheet4U.com
Offset Frequency
The resolution of DPLL frequency from DPM and DPN factor might be not fine enough. Setting
DCLK Offset[11:0] can fine tune DPLL close to target frequency.
Employing spread spectrum can fine tune DPLL frequency. “Enable DDS Spread Spectrum
Output Enable” in register 0x5A[3] allows DDS to output spread spectrum control signal, and “DPLL
Spread Spectrum Enable” in 0xD2[5] allows DPLL to receive control signal. “Offset Frequency
Direction Induced by Spread Spectrum” in 0xD2[4] controls the direction of offset frequency. “DCLK
Offset[11:0]” in 0x9A and 0x9B[3:0] determines the magnitude of offset frequency. Every step of
offset frequency is DCLK*2^(-15).
In interlaced mode, odd field and even field have different period. Setting 0x9B[6] and 0x9B[4]
can enable offset frequency function only in even filed or odd field.
Spread Spectrum
Spread spectrum can distribute the radiation energy to a band and reduce EMI. “DCLK
Spreading Range” in 0x99[7:4] control spread spectrum range of 0~7.5% (peak-to-peak). “Spread
Spectrum FMDIV” in 0x99[3] control spreading frequency 33k or 66kHz.
23
Realtek RTD2523/2513
0x5A[2:0], and DVTOTAL[10:0] is in register 0x97 and 0x98[2:0]. Output frame is synchronized
with input frame by selecting higher-frequency DCLK and lower-frequency DCLK – N*dF according
to the position of Display VS leading edge. N is controlled in register 0x99[1:0] and dF is
DCLK*2^(-15).
www.DataSheet4U.com
24
Realtek RTD2523/2513
Registers Description
Reading unimplemented registers will return 0.
Address: 00 ID_REG Default: 81h
Bit Mode Function
7:0 R MSB 4 bits: 1000 product code
LSB 4 bits: 0001 rev. code
25
Realtek RTD2523/2513
Address: 02 HOSTCTRL Default: 02h
Bit Mode Function
7 R Display Support
0: XGA (RTD2513/2013)
1: SXGA (RTD2523/2023)
6:5 --- Reserved
4 R/W SOG_Mode
0: DC-offset, using POLY R
1: DC-offset, using MOS R
3 --- Reserved
2 R/W Power Down Mode Enable
0: Normal
1: Enable power down mode
1 R/W Power Saving Mode Enable (except sync processor & serial port):
0: Normal
1: Enable power saving mode
0 R/W Reset Whole Chip (Low pulse at least 8ms):
0: Normal
1: Enable reset
26
Realtek RTD2523/2513
27
Realtek RTD2523/2513
28
Realtek RTD2523/2513
Address: 12 PTNGD
Bit Mode Function
7:0 R Green Channel Test Pattern Digitized Result.
Address: 13 PTNBD
Bit Mode Function
7:0 R Blue Channel Test Pattern Digitized Result.
29
Realtek RTD2523/2513
www.DataSheet4U.com
30
Realtek RTD2523/2513
Scaling Up Function
Address: 15 SCALE_CTRL (Scale Control Register) Default: 00h
Bit Mode Function
7:6 R/W Fine Tune Delay of coefficient SRAM Access
5:4 R/W Vertical Filter Effect:
00: Filter 1
01: Filter 2
10: Filter 3
11: Filter 4
3:2 R/W Horizontal Filter Effect:
00: Filter 1
01: Filter 2
10: Filter 3
11: Filter 4
1 R/W Enable the Vertical Filter Function:
0: By pass the vertical filter function block
1: Enable the vertical filter function block
0 R/W Enable the Horizontal Filter Function:
0: By pass the horizontal filter function block
1: Enable the horizontal filter function block
31
Realtek RTD2523/2513
32
Realtek RTD2523/2513
Display Format
Address: 20 VDIS_CTRL (Video Display Control Register) Default: 00h
Bit Mode Function
7 R/W DHS Output Format Select (only available in Frame Sync #1)
0: The first DHS after DVS is active
1: The first DHS after DVS is inactive
6 R/W Display Data Output Inverse Enable
0: Disable
1: Enable (only when data bus clamp to 0)
5 R/W Display Output Force to Background Color
0: Display output operates normally
1: Zoom Filter output is forced to the color as selected by background color
4 R/W Display 18 bit RGB Mode Enable
0: All individual output pixels are full 24-bit RGB
1: All individual output pixels are rounded to 18-bit RGB
3 R/W Frame Sync Mode Enable
0: Free running mode
1: Frame sync mode
2 R/W Display Output Double-Width Pixel Enable
0: Single width pixels are output to the display with every DCLK cycle
1: Double width pixels are output to the display with every DCLK cycle
1 R/W Display Output Run Enable
0: DHS, DVS, DEN & data bus are clamped to “0”
1: Display output normal operation.
0 R/W Display Video Timing Run Enable
0: Display Timing Generator is halted, Zoom Filter halted
1: Display Timing Generator and Zoom Filter enabled to run normally
www.DataSheet4U.com
Step to disable output: First set CR20_1=0, set CR20_6 & inverse control, then set CR20_0=0 to disable output.
33
Realtek RTD2523/2513
34
Realtek RTD2523/2513
Address: 2D DV_TOTAL (Display Vertical Total Lines)
Bit Mode Function
7:0 R/W Display Vertical Total: Low Byte [7:0]
Address: 2E DV_TOTAL (Display Vertical Total Lines)
Bit Mode Function
7:3 R/W Reserved
2:0 R/W Display Vertical Total: High Byte [10:8]
In framesync mode, when the line number of Display HS is equal to Display Vertical Total, a status CR3D_7 is set.
In FreeRun mode, Display Vertical Total is assigned in {0x98[2:0], 0x97[7:0]}.
35
Realtek RTD2523/2513
www.DataSheet4U.com
36
Realtek RTD2523/2513
YUV-to-RGB Control
Address: 39 YUV2RGB (YUV to RGB Control Register) Default: 00h
Bit Mode Function
7 R/W SRGB Enable
6 R/W YUV-to-RGB Conversion Mode Selection:
0: YUV422
1: YUV444
5 R/W Enable YUV to RGB Conversion:
0: Disable YVB-to-RGB conversion
1: Enable YUV-to-RGB conversion
4 R/W SRGB SRAM Control
3:2 R/W SRGB Coefficient Write Enable
00: Disable
01: R port
10: G port
11: B port
1:0 R/W U/VROM data latch clock fine tune
01=>10=>00=>11(from fastest to slowest)
00: defalut, each stage=>~0.25ns
Address: 3A DIS_TIMING (Display Clock Fine Tuning Register) Default: 00h
Bit Mode Function
7 R/W YUV-to-RGB Color Space Conversion Test Mode:
0: Normal
1: Direct output conversion result to display port
6 R/W Internal OSD Port Latch Clock Delay
0: normal
1: 1ns delay
www.DataSheet4U.com
5 R/W Force Display Timing Generator Enable:
0: wait for input VS trigger
1: force enable
4 --- Reserved
3 R/W Display Output Clock Coarse Tuning Control:
0: Disable
1: 8ns delay
2:0 R/W Display Output Clock Fine Tuning Control:
000: DCLK rising edge correspondents with output display data
001: 1ns delay
010: 2ns delay
011: 3ns delay
100: 4ns delay
101: 5ns delay
110: 6ns delay
111: 7ns delay
37
Realtek RTD2523/2513
REFCLK)
3 R/W DCLK Polarity Inverted
0: Non-Inverted
1: Inverted
2 R/W DCLK Output Enable
0: Disable
1: Enable
1 R/W DCLK (on REFCLK pin) Polarity Inverted
0: Non-Inverted
1: Inverted
0 R/W DCLK (on REFCLK pin) Enable
0: Disable
1: Enable
38
Realtek RTD2523/2513
Address: 3E DUTY_FINE_TUNE
Bit Mode Function
7:4 R/W Internal Display Clock (IDCLK) Duty Fine-tune: (3F_bit1 to enable)
1111 (min fine-tune) à 1110 à 1100 à 1000 à 0000 (max fine-tune)
3:0 R/W Color Processing Clock (CPCLK) Duty Fine-tune: (3F_bit2 to enable)
1111 (min fine-tune) à 1110 à 1100 à1000 à0000 (max fine-tune)
39
Realtek RTD2523/2513
Address: 44 sRGB
Bit Mode Function
7:0 W When R-port coefficient: RG0, RB0, RG1, RB1, … RG31, RB31,
When G-port coefficient: GR0, GB0, GR1, GB1, … GR31, GB31,
When B-port coefficient: BR0, BG0, BR1, BG1, … BR31, BG31
total 64 bytes (2’s complement : -128~127)
www.DataSheet4U.com
Address: 46 sRGB G-Offset
Bit Mode Function
5:0 R/W (2’s complement : -32~31)
R’ = Rin[7:0] + R-Offset
G’ = Gin[7:0] + G-Offset
B’ = Bin[7:0] + B-Offset
40
Realtek RTD2523/2513
2:0 R/W Select Vertical Line –Low Byte [2:0]
www.DataSheet4U.com
41
Realtek RTD2523/2513
SYNC Processor
Address: 4A SYNC_CTRL Default: 00h
Bit Mode Function
7 R/W IRQ Enable
0: Disable input sync signal edge occurs as an interrupt source
1: Enable input sync signal edge occurs as an interrupt source
6 R SOG Edge Occurs
If the SOG edge occurs, this bit is set to “1”.
5 R ADC Input Horizontal Sync Occurs (HS_RAW)
If the ADC input horizontal sync edge occurs, this bit is set to “1”.
4 R Video-8 Input Horizontal Sync Occurs
If the Video-8 input horizontal sync edge occurs, this bit is set to “1”.
3 R/W Reserved to 0
Measure VSYNC select
0: The VSYNC chosen by 0x4A [1:0]
1: The VSYNC from de-composite
2 R/W Measure VSYNC Timing Delay 2 clock
0: disable
1: enable
1:0 R/W Measure HSYNC/VSYNC Source Select:
00: RTD300x/RTD20xx original configuration
01: HS_RAW / AVS
10: Video-8 HSYNC / Video-8 VSYNC
11: TMDS HSYNC / TMDS VSYNC
Write to clear status.
42
Realtek RTD2523/2513
7 R/W Safe Mode
0: Normal
1: Safe Mode Enable, mask 1 of 2 IVS.
6 R/W Sync Processor Test Mode
0: Normal
1: Enable Test Mode; (switch 70ns-ck to the time-out & polarity counters)
5 R/W Select HS_OUT Source Signal
0: Bypass HS_RAW
1: Select De-Composite HS out (In Composite mode)
3 R Input VSYNC Polarity Indicator
0: negative polarity (high period is longer than low one)
1: positive polarity (low period is longer than high one)
2 R Input HSYNC Polarity Indicator
0: negative polarity (high period is longer than low one)
1: positive polarity (low period is longer than high one)
1 R/W Start a HS & VS period / H & V resolution & polarity measurement
0: disable to start a measurement
1: enable to start a measurement, cleared after finished
0 R/W HSYNC & VSYNC Measured Mode
0: HS period counted by crystal clock & VS period counted by HS
1: H resolution counted by input clock & V resolution counted by ENA
(Get the correct resolution which is triggered by enable signal, ENA)
www.DataSheet4U.com
43
Realtek RTD2523/2513
Address: 4D MEAS_HS_PER (HSYNC Period Measured Result)
Bit Mode Function
7:0 R Input HSYNC Period Measurement Result: Low Byte[7:0]
Address: 4E MEAS_HS_PER (HSYNC Period Measured Result) Default: 8’bx000xxxx
Bit Mode Function
7 R Input HSYNC Period Measurement Result: Over-flow bit
1: Over-flow occurred
6 R/W ODD invert for ODD-Controlled-IVS_delay.
0: Disable
1: Invert
5 R/W ODD-Controlled-IVS_delay Enable
0: Disable
1: Enable
4 R/W Input HSYNC Synchronize Edge
0: Input HSYNC is synchronized by the positive edge of the input clock
1: Input HSYNC is synchronized by the negative edge of the input clock
3:0 R Input HSYNC Period Measurement Result: High Byte[11:8]
This result is expressed in terms of crystal clocks. When measured digitally, the result is expressed as the number of input
clocks between 2 input HS signals divided by 2.
44
Realtek RTD2523/2513
6 R HS level latched by VS rising edge
5 R HS level latched by 6-iclk-delay VS rising edge
4 R/W Feedback HSYNC Synchronize Edge
0: Feedback HSYNC is synchronized by the positive edge of the input clock
1: Feedback HSYNC is synchronized by the negative edge of the input clock
3 R/W VSYNC Synchronize Edge
0: latch VS by the positive edge of input HSYNC
1: latch VS by the negative edge of input HSYNC
2:0 R Input VSYNC Period Measurement Result: High Byte[10:8]
This result is expressed in terms of input HS pulses
www.DataSheet4U.com
45
Realtek RTD2523/2513
www.DataSheet4U.com
46
Realtek RTD2523/2513
www.DataSheet4U.com
47
Realtek RTD2523/2513
Anti-Flicker Control
Address: 5B Pixel Threshold Value for Smart Polarity (TH1) Default: 00h
Bit Mode Function
7:0 R/W 2 line Sum of Difference Threshold Value: bit [7:0]
Address: 5C Line Threshold Value for Smart Polarity (TH2) Default: 0x000000b
Bit Mode Function
7 R/W Measure Dot Pattern over Threshold (depend on 0x00[1])
1: run.
/* Auto: always measure
Manual: start to measure, clear after finish */
0: stop
6 R Dot Pattern Sum of Difference Measure Result
1: over threshold
0: under threshold
5 R/W TCON [7] Polarity one / two Line Toggle Control
1: Auto
/* If sum of difference under threshold, TCON [7] will auto switch to “normal ” output.
If sum of difference over threshold, TCON [7] will auto switch to “original setting” output */.
0: Manual
4:0 R/W Over Difference Line Threshold Value: bit [4:0]
動作說明
0x5C[7] & 0x5C[5]
‘1’ & ‘1’ 自動 anti-flicker
‘1’ & ‘0’ 透過 manual 方式,當 0x5C[7]設為’1’,便會自動執行㆒個 frame,做完後 0x5C[7] clear 成’0’
‘0’ & ‘x’ 沒動作
www.DataSheet4U.com
48
Realtek RTD2523/2513
1: enable the coefficient
Brightness Coefficient:
Address: 5E BRI_R_COE (Brightness Red Coefficient)
Bit Mode Function
7:0 W Brightness Red Coefficient:
Valid range: -128(00h) ~ 0(80h) ~ +127(FFh)
Address: 5F BRI_G_COE (Brightness Green Coefficient)
Bit Mode Function
7:0 W Brightness Green Coefficient: Valid range:
-128(00h) ~ 0(80h) ~ +127(FFh)
Address: 60 BRI_B_COE (Brightness Blue Coefficient)
Bit Mode Function
7:0 W Brightness Blue Coefficient:
Valid range: -128(00h) ~ 0(80h) ~ +127(FFh)
Contrast Coefficient:
Address: 61 CTS_R_COE (Contrast Red Coefficient)
Bit Mode Function
7:0 W Contrast Red Coefficient:
Valid range: 0(00h) ~ 1(80h) ~ 2(FFh)
Address: 62 CTS_G_COE (Contrast Green Coefficient)
Bit Mode Function
7:0 W Contrast Green Coefficient:
Valid range: 0(00h) ~ 1(80h) ~ 2(FFh)
Address: 63 CTS_B_COE (Contrast Blue Coefficient)
Bit Mode Function
www.DataSheet4U.com
7:0 W Contrast Blue Coefficient:
Valid range: 0(00h) ~ 1(80h) ~ 2(FFh)
Gamma Correction :
Address: 64 RED_GAMMA_PORT (Red Gamma Table Access Port)
Bit Mode Function
7:0 W Access port for red gamma correction table
Address: 65 GRN_GAMMA_PORT (Green Gamma Table Access Port)
Bit Mode Function
7:0 W Access port for green gamma correction table
Address: 66 BLU_GAMMA_PORT (Blue Gamma Table Access Port)
Bit Mode Function
7:0 W Access port for blue gamma correction table
When enable gamma correction table accessing, total size of coefficient table is 256 bytes for each color respectively. And
the input data sequence is c0, c1, c2, … c255.
Dithering Coefficient:
Address: 67 DITHER_PORT (Dithering Table Access Port)
Bit Mode Function
7:0 W Access port for dithering table
Old dithering(0x5A[7] = 0): When enable dithering table accessing, total size of coefficient table is 16 * 4 bits for RGB
color. And the input data sequence is {c1, c0}, {c3, c2}, … {c15, c14}.
C0 C1 C2 C3
C4 C5 C6 C7
C8 C9 C10 C11
C12 C13 C14 C15
49
Realtek RTD2523/2513
New dithering(0x5A[7] = 1): One dithering sequence table contains 32element, s0, s1, … , s31. Each element has 2bit to
index one of 4 dithering table. Input data sequence is {s3,s2,s1,s0}, {s7,s6,s5,s4}, … , {s31,s30,s29,s28}. R + (2R+1) * C
choose sequence element, where R is Row Number / 2, and C is Column Number / 2.
4 dithering table, 0,1,2,3, is
C0 C1 C2 C3 C8 C9 C10 C11
C4 C5 C6 C7 C12 C13 C14 C15
www.DataSheet4U.com
50
Realtek RTD2523/2513
Cyclic-Redundant-Check
Address: 68 OP_CRC_CTRL (Output CRC Control Register) Default: FCh
Bit Mode Function
7:2 R/W SRAM Control //111111 (F, I, A, M, G, C)
F (bit 7): four-line SRAM
I (bit 6): input SRAM
A (bit 5): OSD attribute SRAM
M (bit 4): OSD font map SRAM
G (bit 3): Gamma, Dithering table SRAM
C (bit 2): filter coefficient SRAM
1 R/W Enable Full Line buffer:
0: Disable 1: Enable
0 R/W Output CRC Control:
0: Stop or finish (Auto-stop after checked a completed display frame)
1: Start
CRC function = X^24 + X^7 + X^2 + X + 1.
51
Realtek RTD2523/2513
Overlay Control
Address: 6D OVL_CTRL (Overlay Display Control Register) Default: 00h
Bit Mode Function
7:6 R/W Background color select (select the writing and reading byte of 0x6c)
00: Red
01: Green
10: Blue
11: X
5:3 R/W Alpha blending level 00:Disable, 001 ~111: 1/8~ 7/8
2 --- Reserved
1 R/W Overlay Sampling Mode Select:
0: dual pixels per clock
1: single pixel per clock
0 R/W Overlay Port Enable:
0: Disable
1: Enable
52
Realtek RTD2523/2513
53
Realtek RTD2523/2513
Address: 76 H_BOUNDARY_END_L
Bit Mode Function
7:0 R/W Horizontal Boundary End: Low Byte [7:0]
Address: 78 V_BOUNDARY_STA_L
Bit Mode Function
7:0 R/W Vertical Boundary Start: Low Byte [7:0] //(Invalid when Vertical Auto-Boundary)
Address: 79 V_BOUNDARY_END_L
Bit Mode Function
7:0 R/W Vertical Boundary End: Low Byte [7:0] //(Invalid when Vertical Auto-Boundary)
Address: 7E DIFF_THRESHOLD
Bit Mode Function
7:0 R/W Difference Threshold
54
Realtek RTD2523/2513
Current
Pixel
7F.1 Function Selection 7F.5 Max/Min Select 7F.6 Diff/Pixel select 7F.4 Accu/Comp select
7E DifferenceThreshold
0:Balance / 1:Phase 0:Min(inv) / 1:Max 0:Pixel-value / 1:Diff 0:Comp / 1:Accu
Control Table/ Function Sub-Function 7F.6 7F.5 7F.4 7F.3 7F.2 7F.1 7E
Auto-Balance Max pixel X 1 0 0 X 0 X
Min pixel X 0 0 0 X 0 X
Auto-Phase Type1 Mode1 0 1 1 0 1 1 Th
Mode2 0 1 1 1 0 1 Th
Mode3 0 1 1 1 1 1 Th
Auto-Phase Type2 Mode1 1 1 1 0 1 1 Th
Mode2 1 1 1 1 0 1 Th
Mode3 1 1 1 1 1 1 Th
Accumulation All pixel 1 1 1 0 1 0 0
Table 1 Auto-Tracking Control Table
55
Realtek RTD2523/2513
7:0 R Active region vertical start measurement result: bit[7:0]
Address: 81 VER_START_H (Active region vertical start Register)
Bit Mode Function
3:0 R Active region vertical start measurement result: bit[11:8]
Address: 82 VER_END_L (Active region vertical end Register)
Bit Mode Function
7:0 R Active region vertical end measurement result: bit[7:0]
Address: 83 VER_END_H (Active region vertical end Register)
Bit Mode Function
3:0 R Active region vertical end measurement result: bit[11:8]
56
Realtek RTD2523/2513
0: Disable
1: Enable
3 R/W Decode Video-8 when ADC or TMDS active
0: Disable
1: Enable
2 R/W Input Auto Toggle (TEST) Enable:
0: Disable
1: Enable (DCLK feed to ICLK)
(Only works in Video8 port single pixel mode, R & B toggle by ICLK rate, but G toggle by ICLK2
rate)
1 R/W EAV Error Correction Enable in video8
0: Disable
1: Enable
0 R/W 8-bit Random Generator
0: Disable
1: Enable
In video8 input format, the bit1 should be the complement of remainder of SAV location clock count/2.
57
Realtek RTD2523/2513
Embedded OSD
Address: 90 OSD_ADDR_MSB (OSD Address MSB 8-bit)
Bit Mode Function
7:0 R/W OSD MSB 8-bit address
58
Realtek RTD2523/2513
Address: 98 FIXED_LAST_LINE_MODE_DVTOTAL_MSB
Bit Mode Function
2:0 R/W Fixed Last Line Mode DVTOTAL [10:8]
In FreeRun mode, Display Vertical Total is assigned in {0x98[2:0], 0x97[7:0]}.
59
Realtek RTD2523/2513
7 --- Reserved
6 R/W Only Even / Odd Field Mode Enable
0: Disable
1: Enable
5 R/W Spread Spectrum Setting Ready for Writing (Auto Clear)
0: Not ready
1: Ready to write
4 R/W Even / Odd Field Select
0: Even
1: Odd
3:0 R/W DCLK Offset [11:8] in Fixed DVTOTAL & Last Line Length Mode
The “Spread Spectrum Setting Ready for Writing” (0x9B [5]) means 4 kinds of registers will be set after this bit is set: 1.
Spreading range (0x99 [7:4]) 2. Spreading FMDIV (0x99 [3]) 3. DCLK offset setting (0x9A, 0x9B[3:0]) 4. Frequency
synthesis select (0x99 [1:0])
60
Realtek RTD2523/2513
Embedded TMDS
www.DataSheet4U.com
Address A0: Output Port Enable Default: 6Fh
Bit Mode Function
7 R/W Power down TMDS whole function
High: Normal Run
Low: Power Down
6:5 R/W TMDS_TEST 34 Data Output Select (30 bit over-sampled data, DEN, HS, VS, CLK)
00: Blue channel
01: Green channel
10: Red channel
11: Disable
4 R/W TMDS_TEST 3 DE Output Select
0: Disable
1: 3 channel DE output with CLK (HS, VS be replaced by DE1, DE2)
3 R/W Output control by auto function
High: Auto output, Low: Manual.
2:0 R/W Bit 0: Enable Blue output port.
Bit 1: Enable Green output port
Bit 2: Enable Red output port
Address A1: Input Port Enable Default: EFh
Bit Mode Function
7 R/W Mcufirst
High: disable DDC channel and MCU access only
Low: enable DDC channel and MCU access only when DDC is not busy
6 R/W Reserved
5 R/W 1: Original power up sequence, turn on R/G when DE low 128 clocks
0: Turn On R/G channel when DE low 128 clocks and VS rising and falling appears
4 R Chbok: Detect Blue Channel DE low last 128 dclk
High: Active, Low: Non-Active
61
Realtek RTD2523/2513
3 R/W Input control by auto function
High: Auto enable, Low: Manual
2:0 R/W Bit 0: Enable Blue input port.
Bit 1: Enable Green input port
Bit 2: Enable Red input port
Address A2: Analog Performance#1 Default: 8Bh
Bit Mode Function
7 R/W WDmode: Select Watch Dog mode,
Low: Analog, High: Digital.
6:5 R/W 00: Auto
10: Watch Dog Pin=’1’
x1: Watch Dog Pin=’0’
4:3 R/W sr[1:0]: The resistor of LPF in PLL.
2:0 R/W si[2:0]: Charge pump current in PLL,
Icp=si[2:0]*5u+5u.
Address A3: Analog Performance#2 Default: 26h
Bit Mode Function
7 R/W anaWDen: Analog watch dog when ckonctrl =1, control pllckon
High: Analog & Digital
Low: Digital
6 R/W ckon_manual: control pllckon when ckon_ctrl =0,
Low: off, High: on.
5 R/W ckonctrl:
Low: Manual, High: Auto
4 R/W z0pow: MCU must pull it up after power stable
3 R/W down: When down=0, Z0 is auto set 50 ohm.
2:1 R/W selTST[1:0]: Select the TSTout function of clock port & RD port.
www.DataSheet4U.com
0 R/W ENTST: Enable clock port TSTout pin.
0:Analog to TSTPAD (20k ohm to GND)
1:Digital to TSTPAD (50 ohm to VDD)
STSTPAD
62
Realtek RTD2523/2513
000:TMDS bias to TSTPAD
001:TMDS test singal to TSTPAD
010:D2P (PWM1) singal to TSTPAD
011:P2D (Reserved) singal from TSTPAD (power on latch to select parallel/serial port)
1xx:Force high impedance of TSTPAD
2:0 R/W selTST[2:0]: Select the TSTout pin to PAD.
www.DataSheet4U.com
63
Realtek RTD2523/2513
High: Enable, Low: Disable
0 R/W Reserved
Address A7: CRC Output Byte_0 Default: XX
Bit Mode Function
7:0 R CRC output bit 7~0
Cleared when 0x04[2] is set.
Address A8: CRC Output Byte_1 Default: XX
Bit Mode Function
7:0 R CRC output bit 15~8
Address A9: CRC Output Byte_2 Default: XX
Bit Mode Function
7:0 R CRC output bit 23~16
Address AA: DB Test Mode Default: 00h
Bit Mode Function
7 R/W Reserved to 0
6 R Reserved
5 R/W TMDS test output enable (only when ADC test output disable)
High: TMDS test data output to VIDEO8 PAD
Low: Disable
4 R/W Shwp: show write pointer
High: show wp at VIDEO8 [5:0] wp decided by wpsel[1:0]
Low: other bits make decision
3 R/W Shctl:
High: bypass CTL3~0 to VIDEO8 [3:0]
Low: VIDEO8[3:0]=[0000]
2 R/W f25tst:
After the rising edge first full cycle data and hold system when TI,TO,TCK active,
www.DataSheet4U.com data could be shift out by the order R30bit 0~29,R12bit 0~11,G,B; where 12bit and 30bit data
decided by f25sel
Z0TST<0>= VIDEO8 [2]
Z0TST<1>= VIDEO8 [3]
TCK2= AVS, decided by 0xAB[7]
TO = VIDEO8 [5],
TI = DDCSDA,
TCK = DDCSCL,
1 R/W shauth:
High: show authst, authkm, authdone
to VIDEO8[2:0]
Low: VIDEO8[2:0]={000}
0 R/W shclk:
High: show crystal, fbakdiv5, findiv2, dclk (dclk/2) to VIDEO8[3:0]
Low: VIDEO8[3:0]=[0000]
Address AB: DVI_REG_TEST Default: 00h
Bit Mode Function
7 R/W tck_mode:
High: TCK2 mode
Low: Original
6:4 R/W f25sel:
Decision latched data of F2x5FIFOT:
check 12bit 30bit
000 [11:0] lat0 29:0
001 [23:12] lat1 29:0
010 [47:36] lat3 59:30
011 [59:48] lat4 59:30
10x [29:24] lat2 29:0
11x [35:30] lat2 59:30
64
Realtek RTD2523/2513
3 R/W Reserved
2:1 R/W wpsel:
Display selection of write pointer of TMDS,
00: wp=6’h00,
01: wp of blue channel
10: wp of green channel
11: wp of red channel
0 R/W dclkdiv:
Low: out dclk when shwp=0,shck=1 to VIDEO8[0]
High: dclk/2
Address AC: Pattern Comparator Default: 90h
Bit Mode Function
7 R/W Calibration of FIFO write pointer after Vsync
High: Enable calibration, Low: Disable
6 R/W Calibration write pointer Vsync edge select
High: Falling, Low: Rising
5 R/W Hsync edge select after Vsync calibrate write pointer
High: Falling, Low: Rising
4 R/W Clock delay select after Hsync calibrate write pointer
High: Enable delay 5 clock
Low: Disable
3 R/W Calibration of FIFO write pointer and boundary detection after falling DE
High: Enable calibration, Low: Disable
2 R/W pertst:
High: start to do pixel error rate test wait for matched pattern
Low: stop PERT and clear numerr and perten
1 R/W pertmode:
High: PN code PERT
www.DataSheet4U.com Low: Half clock PERT
0 R perten:
High: matched pattern found PERT(Pixel Error Rate Test) enable
Low: clear by pertst reset
Address AD: Pixel Error Rate Low Byte Default: 00h
Bit Mode Function
7:0 R Numerr low byte:
Total count of pixel error
Address AE: Pixel Error Rate High Byte Default: 00h
Bit Mode Function
7:0 R Numerr high byte:
Total count of pixel error
Address AF: DVI_CTRL1 Default: 00h
Bit Mode Function
7 R/W Reserved
6:4 R If Red/Green/Blue FIFO overflow or underflow, These will set ‘1’, clear ‘0’ after read.
3 R/W Reserved
2 R/W OCLK divide 2:
High: Enable
Low: Disable
1:0 R/W Reserved
F25CK Delay:
00 : 2ns
01 : 2.7ns
10 : 3.7ns
11 : 4.7ns
delay clock 1x from analog
Address B0: TMDS CTL0~3 Signal Status Default:30h
65
Realtek RTD2523/2513
Bit Mode Function
7:4 R/W Reserved
3 R TMDS internal CTL3 signal status
2 R TMDS internal CTL2 signal status
1 R TMDS internal CTL1 signal status
0 R TMDS internal CTL0 signal status
66
Realtek RTD2523/2513
(The default DDC channel address MSB 4 Bits is “A”)
4 R DDC Write Status (for external DDC access only)
It is cleared after write.
3 R/W DDC SRAM Write Enable (for external DDC access only)
0: Disable
1: Enable
2 R/W DDC Debounce Enable
0: Disable
1: Enable (with crystal / 4)
1 R/W DDC Channel RAM Size
0: 128 bytes
1: 256 bytes
0 R/W DDC Channel Enable Bit
0: MCU access Enable
1: DDC channel Enable
www.DataSheet4U.com
67
Realtek RTD2523/2513
Control for LVDS
Address: C0 LVDS_CTRL0 Default: 00h
Bit Mode Function
7 R/W Power down PLL
0: Power down
1: Normal
6 R/W Power down even-port
0: Power down
1: Normal
5 R/W Power down odd-port
0: Power down
1: Normal
4 R/W Enable PLL test signal to PLLTST
0: Disable
1: Enable
3 R/W Select PLLtest-pin
0: Fbak
1: Fin
2:1 R/W Watch Dog Model
00: Enable Watch Dog
01: Keep PLL VCO = 1V
1x: Disable Watch Dog
0 R Watch Dog Control Flag
0: Disable watch dog
1: Reset PLL and set VCO = 1V
Address: C1 LVDS_CTRL1 Default: 04h
Bit Mode Function
www.DataSheet4U.com
7 R/W TTL_TST_EN
0: Disable
1: Enable
7:4 --- Reserved
3 R/W Pin connected with capacitors (2.6pF)
0: yes
1: no
2:0 R/W RSDS / LVDS Output Common Mode (100)
For TTL_TST_EN test mode, we use the video port as input, then we could not test the signal output from video port. In
8 bit TTL mode, if set to 1, these signals will be redirect to other pins, and the test fault coverage will be higher....
Address: C2 LVDS_CTRL2 Default: 52h
Bit Mode Function
7:6 R/W SBGL [1:0]: Bandgap Voltage (~1.2V)
5:3 R/W SIL [2:0]: PLL charge pump current (I=5uA+5uA*code)
2:1 R/W SRL [1:0]: PLL resistor
0 R/W BMTS: Bit-Mapping Table Select
High: Table 2
Low: Table 1
TCLK+
LVDS Bit 1 Bit 0 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 6 Bit 5
Even A ER1 ER0 EG0 ER5 ER4 ER3 ER2 ER1 ER0 EG0 ER5
Even B EG2 EG1 EB1 EB0 EG5 EG4 EG3 EG2 EG1 EB1 EB0
Even C EB3 EB2 DEN*6 VS*5 HS*5 EB5 EB4 EB3 EB2 DEN*6 VS*5
Even D ER7 ER6 RSV*7 EB7 EB6 EG7 EG6 ER7 ER6 RSV*7 EB7
Odd A OR1 OR0 OG0 OR5 OR4 OR3 OR2 OR1 OR0 OG0 OR5
68
Realtek RTD2523/2513
Odd B OG2 OG1 OB1 OB0 OG5 OG4 OG3 OG2 OG1 OB1 OB0
Odd C OB3 OB2 DEN*2 VS*1 HS*0 OB5 OB4 OB3 OB2 DEN*2 VS*1
Odd E OR7 OR6 RSV*3 OB7 OB6 OG7 OG6 OR7 OR6 RSV*3 OB7
TABLE 1 Bit-Mapping 6bit(5~0)+2bit(7~6)
TCLK+
LVDS Bit 1 Bit 0 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 6 Bit 5
Even A ER3 ER2 EG2 ER7 ER6 ER5 ER4 ER3 ER2 EG2 ER7
Even B EG4 EG3 EB3 EB2 EG7 EG6 EG5 EG4 EG3 EB3 EB2
Even C EB5 EB4 DEN*6 VS*5 HS*5 EB7 EB6 EB5 EB4 DEN*6 VS*5
Even D ER1 ER0 RSV*7 EB1 EB0 EG1 EG0 ER1 ER0 RSV*7 EB1
Odd A OR3 OR2 OG2 OR7 OR6 OR5 OR4 OR3 OR2 OG2 OR7
Odd B OG4 OG3 OB3 OB2 OG7 OG6 OG5 OG4 OG3 OB3 OB2
Odd C OB5 OB4 DEN*2 VS*1 HS*0 OB7 OB6 OB5 OB4 DEN*2 VS*1
Odd E OR1 OR0 RSV*3 OB1 OB0 OG1 OG0 OR1 OR0 RSV*3 OB1
TABLE 2 Bit-Mapping 6bit(7~2)+2bit(1~0)
Address: C3 LVDS_CTRL3 Default: 80h
Bit Mode Function
7:6 R/W E_RSV_s: even port reserve signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [3]
00: PWM_0
5:4 R/W E_DEN_s: even port data enable signal select
11: Alawys ‘1’
www.DataSheet4U.com 10: Alawys ‘0’
01: TCON [2]
00: E_DEN (DENA)
3:2 R/W E_VS_s: even port VS signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [1]
00: E_VS (DVS)
1:0 R/W E_HS_s: even port HS signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [0]
00: E_HS (DHS)
Address: C4 LVDS_CTRL4 Default: 80h
Bit Mode Function
7:6 R/W O_RSV_s: odd port reserve signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [4]
00: PWM_1
5:4 R/W O_DEN_s: odd port data enable signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [2]
00: O_DEN (DENA)
3:2 R/W O_VS_s: odd port VS signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [1]
69
Realtek RTD2523/2513
00: O_VS (DVS)
1:0 R/W O_HS_s: odd port HS signal select
11: Alawys ‘1’
10: Alawys ‘0’
01: TCON [0]
00: O_HS (DHS)
Address: C5 LVDS_CTRL5 Default: 60h
Bit Mode Function
7:4 R/W Bias Generator Adjust (0110)
3 R/W Bandgap of LVDS/RSDS Power on
0: Off
1: On
2:0 R/W STSTL [2:0]: select test attribute
000: High Impedance
001: VOCME
010: VBG
011: 60uA (20K ohm to GND)
1xx: TSTPLL (50 ohm to VDD)
Power save & power down: set C0[7:5] to 0, C5[3] to 0
www.DataSheet4U.com
70
Realtek RTD2523/2513
Control for PLL DIV
Address: C8 PLL_DIV_CTRL0 Default: 00h
Bit Mode Function
7:6 --- Reserved.
5 R/W DDS Reset Enable
0: Normal function
1: DDS circuit’s reset will be asserted, for test only
4 R/W Test Mode: (for production test)
0: Normal
1: Test Mode
3 R/W HS output synchronized by
0: phase 16
1: phase 0
2:1 R/W Phase error detect mode
00: zero mode (FB is aligned to nedegde of Fav)
01: ±1 mode (FB is aligned to posedge of Fav)
1x: direct mode (FB is direct to PFD)
0 R/W Clock select for DIV
0: phase 0 (phase-0 of PLL2)
1: internal CLK (Fav)
71
Realtek RTD2523/2513
6:5 R/W I_Code[17:16]//00
4:0 R/W P_Code[4:0] //0x18
P_Code=2 * γ ; N is bit number, N=32 ; γ is ratio of phase error correction. Default γ=2-7 , P_Code=225 ;
N
Address: CF Reserved
www.DataSheet4U.com
72
Realtek RTD2523/2513
73
Realtek RTD2523/2513
00: 0.8V
01: 1.3V
10: 1.8V
11: 2.3V
3 R/W Reserved
2 R/W Test-Pin 2 Input/Output Switch
0: Output
1: Input
1 R/W Test-Pin 1 Input/Output Switch
0: Input
1: Output
0 R/W Reserved
Embedded ADC
Address: E0 REDGAIN
Bit Mode Function
7:0 R/W RED Channel Gain Adjust
Address: E1 GRNGAIN
Bit Mode Function
75
Realtek RTD2523/2513
7:0 R/W Green Channel Gain Adjust
Address: E2 BLUGAIN
Bit Mode Function
7:0 R/W Blue Channel Gain Adjust
Adjust the full-scale input range that corresponds to the maximum digital 8-bit binary output. Setting REDGAIN to 0
corresponds to an input full-scale range of 0.5V, and 255 adjust the input full-scale range to 1.0 V. That means the GAIN
setting will change the LSB resolution. Increasing the gain results in larger input range, and less contrast effect is visible.
Address: E3 REDOFST
Bit Mode Function
7:0 R/W Red Channel Clamp Offset
FFh : clamp Vin+128*(Vfs/256) in back porch period as code 00h.
80h : clamp Vin in back porch period as code 00h.
00h : clamp Vin-128*(Vfs/256) in back porch as code 00h.
Address: E4 GRNOFST
Bit Mode Function
7:0 R/W Green Channel Clamp Offset
FFh : clamp Vin+128*(Vfs/256) in back porch period as code 00h.
80h : clamp Vin in back porch period as code 00h.
00h : clamp Vin-128*(Vfs/256) in back porch as code 00h.
Address: E5 BLUOFST
Bit Mode Function
7:0 R/W Blue Channel Clamp Offset
FFh : clamp Vin+128*(Vfs/256) in back porch period as code 00h.
80h : clamp Vin in back porch period as code 00h.
00h : clamp Vin-128*(Vfs/256) in back porch as code 00h.
Vfs: Input full-scale voltage depends on REDGAIN setting, Vin: Input channel signal, Vbp: Vin in back porch period
www.DataSheet4U.com
This register is used to adjust the input clamp level. One LSB offset (=Vfs/256) equals one LSB change in ADC output.
Increasing the offset setting results in less brightness. Be careful that input full-scale voltage depends on GAIN setting, so
the LSB offset step will be increased when increasing the GAIN setting.
76
Realtek RTD2523/2513
3:2 R/W ADC master bias voltage option: vocm voltage
00 1.44V
01 1.56V
10 1.68V
11 1.80V
1:0 R/W ADC master bias current option: ADC op bias
00 45u
01 60u
10 75u
11 90u
77
Realtek RTD2523/2513
0: even
1: odd
5 R/W ADC blue channel select:
0: even
1: odd
4 R/W ADC MODE
0: dual channel
1: single channel
3:2 R/W ADC_REG_CLK_R25: fine tune RED channel phase, hidden.<1:0>, adjust sampling phase in
SHA
1:0 R/W ADC_REG_CLK_B25: fine tune BLUE channel phase, hidden.<1:0>, adjust sampling phase in
SHA
78
Realtek RTD2523/2513
6 R/W Polarity Select
0: Negative HSYNC (high level)
1: Positive HSYNC (low level)
5 R/W Schmitt Trigger Mode
0: Old mode
1: New mode
4 R/W Threshold Voltage Fine Tune (only for Schmitt trigger new mode 0xED[5] =1)
0: 0V
1: -0.1V
3:2 R/W Positive Threshold Voltage
1:0 R/W Negative Threshold Voltage
79
Realtek RTD2523/2513
80
Realtek RTD2523/2513
DDC Channel
(Refers to the VESA “Display Data Channel Standard” for detailed)
81
Realtek RTD2523/2513
Timing Controller
RTD Register Description for Embedded Timing Controller:
Address: 95 TCON_ADDR _PORT Default: 00h
Bit Mode Function
7:0 R/W Address port for embedded TCON access
Register Description
Timing Controller Programmable Registers:
Address: 00 TC_CTRL1 (Timing Controller control register1) Default: 0000_011xb
Bit Mode Function
7 R/W Enable Timing Controller Function (Global)
0: Disable
1: Enable
6 R/W TCON [12] / PWM2 Select
0: TCON [12] or crystal output (reference to TCON 0x00[2])
1: PWM2
5 R/W TCON [n] Toggle Function Reset
0: Not reset
1: reset by DVS
4 R/W TCON [2] Output Function Select (only for serial port access)
www.DataSheet4U.com
0: Original TCON
1: PWM2
3 R/W Inactive Period Data Controlled by internal TCON [13]
0: DEN
1: TCON [13]
2 R/W TCON [12] Set to Crystal Output (only for TCON 0x00[6] = 0 )
0: Disable
1: Enable
1 R/W TCON [13] Set to Crystal Output (only for TCON 0x04[2] = 0 )
0: Disable
1: Enable
0 R Power-On latch PLL Test Pin 2 for crystal frequency
0: x 1/2
1: x 1
After switch display timing or clock, 0x00[5] first must be 1 to reset TCON state.
Address: 01 TC_CTRL2 (Timing Controller control register2) Default: 00h
Bit Mode Function
7 R/W DCLK Slew-Rate Control
0: fast
1: slow
6:4 R/W DCLK Drive Control (ACLKP/ACLKN/BCLKP/BCLKN)
000: Lowest Drive (2mA) ~ 111: Highest Drive (16mA) for TTL
000~111: (C2)*2 + (C1)*1 + (C1)*0.5 + 2.5 mA for RSDS
3 R/W OCLK Slew-Rate Control (pin112)
0: fast
1: slow
2:0 R/W OCLK Drive Current Control (pin112)
000: Lowest Drive (2mA) ~ 111: Highest Drive (16mA) for TTL
Address: 02 PURE_TTL_PIN_DRV Default: 00h
82
Realtek RTD2523/2513
Bit Mode Function
7 R/W Display Data Port Slew-Rate Control
0: fast
1: slow
6:4 R/W Display Data Port Drive Current Control
000: Lowest Drive (2mA) ~ 111: Highest Drive (16mA)
3 R/W TCON Slew-Rate Control
0: fast
1: slow
2:0 R/W TCON Drive Current Control
000: Lowest Drive (2mA) ~ 111: Highest Drive (16mA)
//**Example:
AU 17" RSDS panel pin order:
B0B1B2G0G1G2CLKR0R1R2
www.DataSheet4U.com QDI 17" RSDS panel pin order:
B2B1B0G2G1G0CLKR2R1R0
CMO 17" RSDS panel pin order:
B2B1B0CLKG2G1G0R2R1R0
現在 RTD 有 even/odd swap,red/blue swap,8 bit MSB/LSB swap,6 bit MSB/LSB swap, RSDS high/low bit swap,
RSDS P/N swap,加㆖有 green/clk swap 模式,則
-if 6Bit MSB/LSB swap,then
G0G1G2CLK -> G2G1G0CLK
-if green/clock swap, then
G0G1G2CLK -> CLKG0G1G2
-if 6Bit MSB/LSB swap first, then green/clk swap
G0G1G2CLK -> G2G1G0CLK-> CLKG2G1G0
**//
83
Realtek RTD2523/2513
2 R/W TCON [13] / PWM2 Select
0: TCON [13] or crystal output (reference to TCON 0x00[1])
1: PWM2
1 R/W TCON [7] / PWM1 Select (only for TCON 0x04[7] = 0)
0: TCON [7]
1: PWM1
0 R/W TCON [1] / PWM1 Select Bit 0 (only for TCON 0x04[6] = 0 && TCON 0x04[4] = 0)
0: TCON [1]
1: PWM1
84
Realtek RTD2523/2513
Address: 0E TCON [0]_CTRL (TCON [0] Control Register) Default: 00h
Bit Mode Function
7 R/W TCON [n] Enable (Local)
0: Disable (TCON [n] output clamp to ‘0’)
1: Enable
6 R/W Polarity Control
0: Normal output
1: Inverted output
5 ---- Reserved
4 ---- Reserved
3 R/W Toggle Circuit Enable/Disable
0: Normal TCON output
1: Toggle Circuit enable
2:0 R/W TCON [13:10] & TCON [7:4] (TCON Combination Select)
/*TCON [13] has inactive data controller function.
TCON [13]~[10] has dot masking function
TCON [7] has flicking reduce function. */
000: Normal TCON output
001: Select TCON [n] “AND” with TCON [n-1]
010: Select TCON [n] “OR” with TCON [n-1]
011: Select TCON [n] “XOR” with TCON [n-1]
100: Select TCON [n-1] rising edge as toggle trigger signal (when toggle enable)
101: Select TCON [n-1] rising edge as toggle trigger signal, then “AND” (when toggle enable)
110: Select TCON [n-1] rising edge as toggle trigger signal, then “OR” (when toggle enable)
111: Select TCON [n] and TCON [n-1] on alternating frames.
--------------------------------------------------------------------------------------------------------------------
TCON [9:8] (TCON Combination Select)
000: Normal TCON output
www.DataSheet4U.com
001: Select TCON [n] “AND” with TCON [n-1]
010: Select TCON [n] “OR” with TCON [n-1]
011: Select TCON [n] “XOR” with TCON [n-1]
100: Select TCON [n-1] rising edge as toggle trigger signal (when toggle enable)
101: Select TCON [n-1] rising edge as toggle trigger signal, then “AND” (when toggle enable)
110: Select TCON [n-1] rising edge as toggle trigger signal, then “OR” (when toggle enable)
111: Select TCON [n] and TCON [n-1] reference ODD signal as alternating frames.
--------------------------------------------------------------------------------------------------------------------
TCON [3] (TCON Combination Select)
000: Normal TCON output
001: Select TCON [3] “AND” with TCON [2]
010: Select TCON [3] “OR” with TCON [2]
011: Select TCON [3] “XOR” with TCON [2]
100: Select TCON [2] rising edge as toggle trigger signal (when toggle enable)
101: Select TCON [2] rising edge as toggle trigger signal, then “AND” (when toggle enable)
110: Select TCON [2] rising edge as toggle trigger signal, then “OR” (when toggle enable)
111: Select reset(ODD=0) or set(ODD=1) TCON [3] by DVS, when toggle function enable
--------------------------------------------------------------------------------------------------------------------
TCON [2] (Clock Toggle Function)//toggle function is inactive
00x: Normal TCON output
010: Select DCLK/2 when TCON [2] is “0”
011: Select DCLK/2 when TCON [2] is “1”
100: Select DCLK/4 when TCON [2] is “0”
101: Select DCLK/4 when TCON [2] is “1”
110: Select DCLK/8 when TCON [2] is “0”
111: Select DCLK/8 when TCON [2] is “1”
--------------------------------------------------------------------------------------------------------------------
TCON [1]
xx0: Normal TCON output
xx1: Reverse-Control Signal output
85
Realtek RTD2523/2513
--------------------------------------------------------------------------------------------------------------------
TCON [0]
00x: Normal TCON output
010: EVEN “REV” 18/24-bit function (“REV0” on TCON [0])
ODD “REV” 18/24-bit function (“REV1” on TCON [1])
011: ALL “REV” 36/48-bit function (“REV” on TCON [0], can also on TCON [1])
100: EVEN data Output Inversion Controlled by TCON [0] is “0”
ODD data Output Inversion Controlled by TCON [1] is “0”
101: EVEN data Output Inversion Controlled by TCON [0] is “1”
ODD data Output Inversion Controlled by TCON [1] is “1”
www.DataSheet4U.com
86
Realtek RTD2523/2513
87
Realtek RTD2523/2513
5D,5C,5B TCON [10]_HS_REG (11)
5E TCON [10]_CTRL_REG 00
5F TCON [10]_CTRL_REG
www.DataSheet4U.com
88
Realtek RTD2523/2513
Embedded OSD
Register Access and address
ADDRESS BIT
7 6 5 4 3 2 1 0
High Byte A15 A14 A13 A12 A11 A10 A9 A8
Low Byte A7 A6 A5 A4 A3 A2 A1 A0
Figure 16. Addressing and Accessing Registers
Date BIT
Byte 0 D7 D6 D5 D4 D3 D2 D1 D0
Byte 1 D7 D6 D5 D4 D3 D2 D1 D0
Byte 2 D7 D6 D5 D4 D3 D2 D1 D0
Figure 2. Data Registers
All kind of registers can be controlled and accessed by these 2 bytes, and each address contains
3-byte data, details are described as follows:
89
Realtek RTD2523/2513
Window 0 Shadow/Border/Gradient
Address: 100h
Byte 0
Bit Mode Function
7:6 -- Reserved
5:3 W Window 0 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 0 shadow/border height in line unit
000~111: 1 ~ 8 line
www.DataSheet4U.com
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
7:4 W Window 0 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 0 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7 W R Gradient Polarity
0: Decrease
1: Increase
6 W G Gradient Polarity
0: Decrease
1: Increase
5 W B Gradient Polarity
0: Decrease
1: Increase
4:3 W Gradient level
00: 1 step per level
01: Repeat 2 step per level
10: Repeat 3 step per level
11: Repeat 4 step per level
90
Realtek RTD2523/2513
2 W Enable Red Color Gradient
1 W Enable Green Color Gradient
0 W Enable Blue Color Gradient
www.DataSheet4U.com
91
Realtek RTD2523/2513
Window 0 start position
Address: 101h
Byte 0
Bit Mode Function
7:2 W Window 0 horizontal start [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 0 vertical start [2:0] line
4:0 W Window 0 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 0 vertical start [10:3] line
Start position must be increments of four.
Byte 0
Bit Mode Function
7:2 W Window 0 horizontal end [5:0]
www.DataSheet4U.com
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 0 vertical end [2:0] line
4:0 W Window 0 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 0 vertical end [10:3] line
l End position must be increments of four.
Window 0 control
Address: 103h
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7 -- Reserved
6:4 W 111: 7 level per gradient
110: 6 level per gradient
101: 5 level per gradient
100: 4 level per gradient
011: 3 level per gradient
92
Realtek RTD2523/2513
010: 2 level per gradient
001: 1 level per gradient
000: 8 level per gradient
3:0 W Window 0 color index in 16-color LUT
Byte 2 default: 00h
Bit Mode Function
7 W Reserved
6 W Gradient function
0: Disable
1: Enable
5 W Gradient direction
0: Horizontal
1: Vertical
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 0 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
www.DataSheet4U.com
111: Border
0 W Window 0 Enable
0: Disable
1: Enable
Window 1 Shadow/Border/Gradient
Address: 104h
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 1 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 1 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
7:4 W Window 1 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 1 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
93
Realtek RTD2523/2513
Byte 2
Bit Mode Function
7:0 W Reserved
Byte 0
Bit Mode Function
7:2 W Window 1 horizontal start [5:0]
3:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 1 vertical start [2:0] line
4:0 W Window 1 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 1 vertical start [10:3] line
Start position must be increments of four.
Byte 0
Bit Mode Function
7:2 W Window 1 horizontal end [5:0]
2:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 1 vertical end [2:0] line
4:0 W Window 1 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 1 vertical end [10:3] line
End position must be increments of four.
94
Realtek RTD2523/2513
Window 1 control
Address: 107h
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7:4 -- Reserved
3:0 W Window 1 color index in 16-color LUT
Byte 2
default: 00h
Bit Mode Function
7:5 W Reserved
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 1 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
www.DataSheet4U.com
110: Reserved
111: Border
0 W Window 1 Enable
0: Disable
1: Enable
Window 2 Shadow/Border/Gradient
Address: 108h
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 2 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 2 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
7:4 W Window 2 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 2 border color index in 16-color LUT
95
Realtek RTD2523/2513
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7:0 W Reserved
Byte 0
Bit Mode Function
7:2 W Window 2 horizontal start [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 2 vertical start [2:0] line
4:0 W Window 2 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 2 vertical start [10:3] line
Start position must be increments of four.
www.DataSheet4U.com
Window 2 end position
Address: 10Ah
Byte 0
Bit Mode Function
7:2 W Window 2 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 2 vertical end [2:0] line
4:0 W Window 2 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 2 vertical end [10:3] line
End position must be increments of four.
Window 2 control
Address: 10Bh
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
96
Realtek RTD2523/2513
7:4 -- Reserved
3:0 W Window 2 color index in 16-color LUT
Byte 2 default: 00h
Bit Mode Function
7:5 W Reserved
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 2 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 2 Enable
0: Disable
1: Enable
Window 3 Shadow/Border/Gradient
Address: 10Ch
www.DataSheet4U.com
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 3 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 3 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
7:4 W Window 3 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 3 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7:0 W Reserved
Byte 0
Bit Mode Function
97
Realtek RTD2523/2513
7:2 W Window 3 horizontal start [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 3 vertical start [2:0] line
4:0 W Window 3 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 3 vertical start [10:3] line
Start position must be increments of four.
Byte 0
Bit Mode Function
7:2 W Window 3 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 3 vertical end [2:0] line
4:0 W Window 3 horizontal end [10:6] pixel
www.DataSheet4U.com
Byte 2
Bit Mode Function
7:0 W Window 3 vertical end [10:3] line
End position must be increments of four.
Window 3 control
Address: 10Fh
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7:4 -- Reserved
3:0 W Window 3 color index in 16-color LUT
Byte 2 default: 00h
Bit Mode Function
7:5 W Reserved
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 3 Type
000: Shadow Type 1
001: Shadow Type 2
98
Realtek RTD2523/2513
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 3 Enable
0: Disable
1: Enable
Window 4 Shadow/Border/Gradient
Address: 110h
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 4 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 4 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
www.DataSheet4U.com
7:4 W Window 4 shadow color index in 16-color LUT
For 3D window, it is the left-top/ bottom border color
3:0 W Window 4 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7:0 W Reserved
Byte 0
Bit Mode Function
7:2 W Window 4 horizontal start [5:0]
2:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 4 vertical start [2:0] line
4:0 W Window 4 horizontal start [10:6] pixel
99
Realtek RTD2523/2513
Byte 2
Bit Mode Function
7:0 W Window 4 vertical start [10:3] line
Byte 0
Bit Mode Function
7:2 W Window 4 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 4 vertical end [2:0] line
4:0 W Window 4 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 4 vertical end [10:3] line
Window 4 control
Address: 113h
www.DataSheet4U.com
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7:4 -- Reserved
3:0 W Window 4 color index in 16-color LUT
Byte 2 default: 00h
Bit Mode Function
7:5 W Reserved
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 4 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 4 Enable
100
Realtek RTD2523/2513
0: Disable
1: Enable
Window 5 Shadow/Border/Gradient
Address: 114h
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 5 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 5 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
Byte 1
Bit Mode Function
7:4 W Window 5 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 5 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
www.DataSheet4U.com
7 W R Gradient Polarity
0: Decrease
1: Increase
6 W G Gradient Polarity
0: Decrease
1: Increase
5 W B Gradient Polarity
0: Decrease
1: Increase
4:3 W Gradient level
00: 1 step per level
01: Repeat 2 step per level
10: Repeat 3 step per level
11: Repeat 4 step per level
2 W Enable Red Color Gradient
1 W Enable Green Color Gradient
0 W Enable Blue Color Gradient
Byte 0
Bit Mode Function
101
Realtek RTD2523/2513
7:2 W Window 5 horizontal start [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 5 vertical start [2:0] line
4:0 W Window 5 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 5 vertical start [10:3] line
Byte 0
Bit Mode Function
7:2 W Window 5 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 5 vertical end [2:0] line
4:0 W Window 5 horizontal end [10:6] pixel
Byte 2
www.DataSheet4U.com
Bit Mode Function
7:0 W Window 5 vertical end [10:3] line
Window 5 control
Address: 117h
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7 -- Reserved
6:4 W 111: 7 level per gradient
110: 6 level per gradient
101: 5 level per gradient
100: 4 level per gradient
011: 3 level per gradient
010: 2 level per gradient
001: 1 level per gradient
000: 8 level per gradient
3:0 W Window 5 color index in 16-color LUT
102
Realtek RTD2523/2513
Byte 2 default: 00h
Bit Mode Function
7 W Reserved
6 W Gradient function
0: Disable
1: Enable
5 W Gradient direction
0: Horizontal
1: Vertical
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 5 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 5 Enable
0: Disable
1: Enable
www.DataSheet4U.com
Window 6 Shadow/Border/Gradient
Address: 118h
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 6 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 6 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
PS: This is for non-rotary, rotate 270, rotate 90 and 180.
Byte 1
Bit Mode Function
7:4 W Window 6 shadow color index in 16-color LUT
For 3D window, it is the left-top/ bottom border color
3:0 W Window 6 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7 W R Gradient Polarity
0: Decrease
1: Increase
103
Realtek RTD2523/2513
1: Increase
6 W G Gradient Polarity
0: Decrease
1: Increase
5 W B Gradient Polarity
0: Decrease
1: Increase
4:3 W Gradient level
00: 1 step per level
01: Repeat 2 step per level
10: Repeat 3 step per level
11: Repeat 4 step per level
2 W Enable Red Color Gradient
1 W Enable Green Color Gradient
0 W Enable Blue Color Gradient
Byte 0
Bit Mode Function
7:2 W Window 6 horizontal start [5:0]
1:0 -- Reserved
www.DataSheet4U.com
Byte 1
Bit Mode Function
7:5 W Window 6 vertical start [2:0] line
4:0 W Window 6 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 6 vertical start [10:3] line
Byte 0
Bit Mode Function
7:2 W Window 6 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 6 vertical end [2:0] line
4:0 W Window 6 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 6 vertical end [10:3] line
104
Realtek RTD2523/2513
Window 6 control
Address: 11Bh
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7 -- Reserved
6:4 W 111: 7 level per gradient
110: 6 level per gradient
101: 5 level per gradient
100: 4 level per gradient
011: 3 level per gradient
010: 2 level per gradient
001: 1 level per gradient
000: 8 level per gradient
3:0 W Window 6 color index in 16-color LUT
Byte 2 default: 00h
Bit Mode Function
7 W Reserved
6 W Gradient function
www.DataSheet4U.com
0: Disable
1: Enable
5 W Gradient direction
0: Horizontal
1: Vertical
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 6 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 6 Enable
0: Disable
1: Enable
105
Realtek RTD2523/2513
Window 7 Shadow/Border/Gradient
Address: 11Ch
Byte 0
Bit Mode Function
7:6 W Reserved
5:3 W Window 7 shadow/border width or 3D button thickness in pixel unit
000~111: 1 ~ 8 pixel
2:0 W Window 7 shadow/border height in line unit
000~111: 1 ~ 8 line
It must be the same as bit[5:3] for 3D button thickness
PS: This is for non-rotary, rotate 270, rotate 90 and 180.
Byte 1
Bit Mode Function
7:4 W Window 7 shadow color index in 16-color LUT
For 3D window, it is the left-top/bottom border color
3:0 W Window 7 border color index in 16-color LUT
For 3D window, it is the right-bottom/top border color
Byte 2
Bit Mode Function
7 W R Gradient Polarity
0: Decrease
1: Increase
6 W G Gradient Polarity
www.DataSheet4U.com
0: Decrease
1: Increase
5 W B Gradient Polarity
0: Decrease
1: Increase
4:3 W Gradient level
00: 1 step per level
01: Repeat 2 step per level
10: Repeat 3 step per level
11: Repeat 4 step per level
2 W Enable Red Color Gradient
1 W Enable Green Color Gradient
0 W Enable Blue Color Gradient
Byte 0
Bit Mode Function
7:2 W Window 7 horizontal start [5:0]
1:0 -- Reserved
106
Realtek RTD2523/2513
Byte 1
Bit Mode Function
7:5 W Window 7 vertical start [2:0] line
4:0 W Window 7 horizontal start [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 7 vertical start [10:3] line
Byte 0
Bit Mode Function
7:2 W Window 7 horizontal end [5:0]
1:0 -- Reserved
Byte 1
Bit Mode Function
7:5 W Window 7 vertical end [2:0] line
4:0 W Window 7 horizontal end [10:6] pixel
Byte 2
Bit Mode Function
7:0 W Window 7 vertical end [10:3] line
www.DataSheet4U.com
Window 7 control
Address: 11Fh
Byte 0
Bit Mode Function
7:0 -- Reserved
Byte 1
Bit Mode Function
7 -- Reserved
6:4 W 111: 7 level per gradient
110: 6 level per gradient
101: 5 level per gradient
100: 4 level per gradient
011: 3 level per gradient
010: 2 level per gradient
001: 1 level per gradient
000: 8 level per gradient
3:0 W Window 7 color index in 16-color LUT
Byte 2 default:
00h
Bit Mode Function
7 W Reserved
6 W Gradient function
107
Realtek RTD2523/2513
0: Disable
1: Enable
5 W Gradient direction
0: Horizontal
1: Vertical
4 W Shadow/Border/3D button
0: Disable
1: Enable
3:1 W Window 7 Type
000: Shadow Type 1
001: Shadow Type 2
010: Shadow Type3
011: Shadow Type 4
100: 3D Button Type 1
101: 3D Button Type 2
110: Reserved
111: Border
0 W Window 7 Enable
0: Disable
1: Enable
www.DataSheet4U.com
108
Realtek RTD2523/2513
3D Button Type 1
www.DataSheet4U.com
3D Button Type 2
109
Realtek RTD2523/2513
width
height
Type 1 Type 2 Type 3 Type 4
start
www.DataSheet4U.com
end
Window mask fade/in out function
110
Realtek RTD2523/2513
Frame control registers
Address: 000h
Byte 0
Bit Mode Function
7:0 W Vertical Delay [8:1]
The bits define the vertical starting address. Total 512 step unit: 4 line
Vertical delay minimum should set 1
Byte 1
Bit Mode Function
7:0 W Horizontal Delay [9:2]
The bits define the horizontal starting address. Total 1024 step unit:4 pixels
Horizontal delay minimum should set 2
Byte 2
Bit Mode Function
7:6 W Horizontal Delay bit [1:0]
5 W Vertical Delay [0]
4 W Global Blinking Enable
0: Disable
1: Enable
Note: In order to make blinking function work, add redundant OSD row
command to next DVS occurrence.
3:2 W Display zone, for smaller character width
00: middle
www.DataSheet4U.com
01: left
10: right
11: reserved
1 W Rotation
0: Normal (data latch 24 bit per 24 bit)
1: Rotation (data latch 18 bit per 24 bit)
0 W OSD enable
0: OSD circuit is inactivated
1: OSD circuit is activated
When OSD is disabled, Double Width (address 0x002 Byte1[1]) must be disabled to save power.
111
Realtek RTD2523/2513
PWM Duty Width
Address: 001h
Byte 0
Bit Mode Function
7:0 W PWM_0
8bits decides the output duty width and waveform of PWM at PWM channel
Byte 1
Bit Mode Function
7:0 W PWM_1
8bits decides the output duty width and waveform of PWM at PWM channel
Byte 2
Bit Mode Function
7:0 W PWM_2
8bits decides the output duty width and waveform of PWM at PWM channel
PWM _Control
Address: 002h
Byte 0 default: xxxx_xxx0b
Bit Mode Function
7 -- Reserved
6 W Enable Window 7 Mask OSD-Appear-Range Control for Fade In/Out
5 W Window 7 Mask
0: Mask area appears
www.DataSheet4U.com
1: Mask area transparent
4 W OSD vertical start input signal source select
0: Select DVS as OSD VSYNC input
1: Select ENA as OSD VSYNC input
3:2 W 00:PWM_CLK/1 01:PWM_CLK/2
10:PWM_CLK/4 11:PWM_CLK/8
1 W PWM Clock Source From 0:DCLK , 1:Crystal Clock
0 W Enable PWM output
Byte 1
Bit Mode Function
7:4 W Char shadow/border color
3 W Blending Enable
2 W Blending type
0: All blending (including window, character, character background, cursor)
1: Only window and character background blending
1 W Double width enable (For all OSD including windows and characters)
0: Normal
1: Double
0 W Double Height enable (For all OSD including windows and characters)
0: Normal
1: Double
112
Realtek RTD2523/2513
Byte 2
Bit Mode Function
7:6 W Font downloaded swap control
0x: No swap
10: CCW
11: CW
5:0 -- Reserved
Bit 7 6 5 4 3 2 1 0
Firmware A B C D E F G H
CW A E B F C G D H
CCW E A F B G C H D
23~12 bit(High)
11~0 bit(Low)
www.DataSheet4U.com
113
Realtek RTD2523/2513
Address: 003h
Byte 0
Bit Mode Function
7:0 W Font Select Base Address[7:0]
Byte 1
Bit Mode Function
7:4 W Font Select Base Address[11:8]
3:0 W Font Base Address[3:0]
Byte 2
Bit Mode Function
7:0 W Font Base Address[11:4]
www.DataSheet4U.com
114
Realtek RTD2523/2513
R0 R1 R2 … . Rn End
C01 C02 B03 C04 … C11 C12 C13 …
…
…
… Cn1 Cn2 … 1-bit font start …
…
… 2-bit font start …
…
4-bit font start …
…
…
1. Row Command
R0 R1 R2 R3 R… . Rn End
www.DataSheet4U.com
Row Command R0~Rn represent the start of new row. Each command contains 3 bytes data
which define the length of a row and other attributes. OSD End Command represent the end of OSD.
R0 is set in address 0 of SRAM.
The Font Select Base Address in Frame Control Register represents the address of the first character in
Row 0, that is, C01 in the above figure. The following character/blank is write in the next address. C11
represents the first character in Row1, C12 represents the second character in Row1, and so on.
The address of the first character Cn1 in Row n = Font Select Base Address + Row 0 font base
length + Row 1 font base length + … +Row n-1 font base length.
3. Font
User fonts are stored as bit map data. For normal font, one font has 12x18 pixel, and for rotation
font, one has 18x12 pixel. One pixel use 1, 2 or 4 bits.
For 12x18 font,
One 1-bit font requires 9 * 24bit SRAM
One 2-bit font requires 18 * 24bit SRAM
One 4-bit font requires 36 * 24bit SRAM
115
Realtek RTD2523/2513
Font Base Address in Frame Control Register point to the start of 1-bit font.
For normal (12x18) font:
1-bit Font, if CS = 128, Real Address of Font = Font Base Address + 9 * 128
2-bit Font, if CS = 128, Real Address of Font = Font Base Address + 18 * 128
4-bit Font, if CS = 128, Real Address of Font = Font Base Address + 36 * 128
For rotational (18x12) font:
1-bit Font, if CS = 128, Real Address of Font = Font Base Address + 12 * 128
2-bit Font, if CS = 128, Real Address of Font = Font Base Address + 24 * 128
4-bit Font, if CS = 128, Real Address of Font = Font Base Address + 48 * 128
where CS is Character Selector in Character Command.
Note that Row Command, Font Select and Font share the same OSD SRAM.
When we download the font, we have to set the Frame control 002h byte1 [1:0] to set the
method of hardware bit swap. If the OSD is Counter-Clock-Wise rotated, we have to set to 0x01 (the
8 bits of every byte of font SRAM downloaded by firmware will be in a sequence of “7 5 3 1 6 4 2 0”
(from MSB to LSB) and should be rearranged to “7 6 5 4 3 2 1 0” by hardware). If it is Clock-Wise
rotated, we have to set to 0x10 (the 8 bits of every byte of font SRAM downloaded by firmware will
be in a sequence of “6 4 2 0 7 5 3 1” (from MSB to LSB) and should be rearranged to “7 6 5 4 3 2 1 0”
by hardware). After we finish the downloading or if we don’t have to rotate the OSD, we have to set it
www.DataSheet4U.com to 0x00.
Row Command
Byte 0
Bit Mode Function
7 W 1: Row Start Command
0: OSD End Command
Each row must start with row-command, last word of OSD map must be
end-command
6:5 W Reserved
4:2 W Character border/shadow
000: None
001: Border
100: Shadow (left-top)
101: Shadow (left-bottom)
110: Shadow (right-top)
111: Shadow (right-bottom)
1 W Double character width
0: x1
1: x2
0 W Double character height
0: x1
1: x2
116
Realtek RTD2523/2513
Byte 1
Bit Mode Function
7:3 W Row height (1~32)
2:0 W Column space
0~7 pixel column space
When Char is doubled, so is column space.
Notice:
When character height/width is doubled, the row height/column space definition also twice. If the row
height is larger than character height, the effect is just like space between rows. If it is smaller than
character height, it will drop last several bottom line of character.
When using 1/2/4LUT font, column space and font smaller than row height, the color of column space
and row space is the same as font background color, only 4 bit true color font mode, the color is
transparent
12
A
column space color
25
www.DataSheet4U.com 1/2/4LUT bg color the
same as Character
background
,4 true color mode, bg
Row space color
color is transparent
Byte 2
Bit Mode Function
7:0 W Row length unit: font base
Blank Command
Byte 0
Bit Mode Function
7 W 0
6 W Blinking effect
0: Disable
1: Enable
5:0 W Reserved
117
Realtek RTD2523/2513
Byte 1
Bit Mode Function
7:0 W Blank pixel length
At least 3 pixels, and can’t exceed 255 pixels.
Byte 2
Bit Mode Function
7:5 W Reserved
4 W Reserved
3:0 W Blank color – select one of 16-color LUT
(0 is special for transparent)
Byte 1
Bit Mode Function
7:0 W Character Select [7:0]
Byte 2
Bit Mode Function
7:4 W Foreground color
Select one of 16-color from color LUT
3:0 W Background color
118
Realtek RTD2523/2513
Select one of 16-color from color LUT (0 is special for transparent)
119
Realtek RTD2523/2513
Character command (For 4-bit RAM font)
Byte 0
Bit Mode Function
7 W 1
6 W Character Blinking effect
0: Disable
1: Enable
5:4 W 01
(Font type
00: 1-bit RAM Font
01: 4-bit RAM Font
1x: 2-bit RAM Font)
3:0 W (for Byte1[7] = 0)
select one color from 16-color LUT as background
(for Byte1[7] = 1)
Red color level
MSB 4 bits for 8 bits color level (LSB 4 bits are 1111)
Byte 1
Bit Mode Function
7 W 0: 4bit Look Up Table, 0000’b is transparent.
1: 3bit specify R,G,B pattern, color level defined in Byte0[3:0],Byte2. One
mask bit defines foreground or background.
6:0 W Character Select [6:0]
l 當 4-bit look-up table mode 時,column space 跟 background 顏色㆒樣。
www.DataSheet4U.com
l 當為 4-bit look-up table mode 時,當 pixel 為 0000, byte0[3:0] 為 0000 時是 transparent.
l 當為 true color 模式時,pixel 為 0000 時,定義為 transparent。
Byte 2
Bit Mode Function
7:4 W (for Byte1[7] = 1)
Green color level
MSB 4 bits for 8 bits color level (LSB 4 bits are 1111)
3:0 W (for Byte1[7] = 1)
Blue color level
MSB 4 bits for 8 bits color level (LSB 4 bits are 1111)
120
Realtek RTD2523/2513
window 6
window 5
window 4
A
T window 3
window 2
window 7
window 1
window 0
Display Priority
We have four windows with gradient and four windows without gradient, the window priority is as
above, character should be always on the top layer of the window.
www.DataSheet4U.com
Pattern gen.
Use OSD to replace display pattern generator.
If we want to fill to the full 1280x1024 screen with character, we need 1280*1024 pixels.
Required character is:
Using 12*18 font
1280/12 = 106.7 -> 107
1024/18 = 56.9 -> 57
107*57 = 6099 character
The required number of character map is larger than RAM size. We must turn on double width or
double height function to reduce the half of character map.
So the basic unit to chessboard is 2x2 pixel. You can use larger chessboard instead of 2x2 pixels
unit, such as 4x4 and so on.
Gray level
121
Realtek RTD2523/2513
We can display 256 gray level by gradient window, 8 and 16 gray level by character map. 32 and
64 gray level is not supported.
www.DataSheet4U.com
122
Realtek RTD2523/2513
Electric Specification
DC Characteristics
123
Realtek RTD2523/2513
AC Characteristics
Input Signal
ICLK
TIPDS TIPDH
Data
Port
ICLK
TIPCS TIPCH
Control
Signals
Figure 17 Input Signal Timing
www.DataSheet4U.com
124
Realtek RTD2523/2513
Output Signal
DCLK
TOPDS TOPDH
Data
Port
DCLK
TOPCS TOPCH
Control
Signals
Figure 18 Output Signal Timing
125
Realtek RTD2523/2513
SCLK
TSPIS TSPIH
SDI
SCLK
TSPOS TSPOH
SDO
126
Realtek RTD2523/2513
1.44.4 PLL
Tcycle
3.3V
2.8V
1.65V
DCLK
0.8V
Tor Tof
Electrical Characteristics
Characteristics Symbol Conditions Mix Type Max Unit
Output rise time (20pf Load) Tor From 0.8V to 2.0V,Vdd=3.3V 2.0 ns
Output fall time (20pf Load) Tof From 2.0V to 0.8V,Vdd=3.3V 2.0 ns
Duty cycle (20pf Load, at 1.5V) Tduty DCLK 45 50 55 %
Clock Skew (20pf Load, at 1.5V) Tskw1 DCLK to DCLK 250 ps
Jitter, Absolute (20pf Load) Tj1 DCLK 300 ps
www.DataSheet4U.com
127
Realtek RTD2523/2513
Mechanical Specification
www.DataSheet4U.com
128
Realtek RTD2523/2513
Note:
www.DataSheet4U.com
129