ETC MTV016

MYSON
TECHNOLOGY
MTV016
Enhanced On-Screen-Display Controller
FEATURES
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Horizontal SYNC input up to 100 KHz.
On-chip PLL circuitry up to a 90 MHz pixel rate for multi-SYNC operation.
Programmable horizontal resolutions up to 1524 dots per display row.
538-byte display registers to control full screen display.
Full screen display consists of 10 (rows) by 24 (columns) characters.
12 x 18 dot matrix per character.
128 built-in characters and graphic symbols, and character by character color selection.
Maximum of 8 colors selectable per display row.
Double character height and/or width control.
Programmable positioning for display screen center.
Bordering and shadowing effect for display.
Programmable vertical character height (18 to 71 lines) for multi-SYNC operation.
4 programmable background windows with multi-level windowing effect.
Software clear function for display frame buffer.
HSYNC and VSYNC input polarity selectable.
Auto detection for input edge distortion between HSYNC and VSYNC inputs.
Half tone and fast blanking output.
Software force blank function for display frame.
Compatible with both SPI bus and I2C interface through pin selection.
16-pin PDIP package.
GENERAL DESCRIPTION
MTV016 is designed for use in monitor applications to display the built-in characters or symbols onto a
monitor screen. The display operation occurs by transferring data and control information in the microcontroller to RAM through a serial data interface. It can execute a full screen display automatically and
specific functions such as character bordering, shadowing, double height and width, font by font color
control, frame positioning, frame size control by character height and horizontal display resolution, and
windowing effect.
BLOCK DIAGRAM
SSB
VDD
8 DATA
SERIAL DATA
INTERFACE
SCK
DATA 5
DISPLAY & ROW
CONTROL
REGISTERS
DAEN
2 RAEN,CAEN
CWS
CHS
CCS0
CCS1
BLINK
7
VSS
CRADDR
VDDA
SDA
LUMA
5 RCADDR
ARWDB
HDREN
VDREN
NROW
ADDRESS BUS
ADMINISTRATOR
LPN
5
CWS
5 WADDR
VCLKS
VSP
CH 7
CHS
VERTD 8
HFLB
HSP
HORD 7
VERTICAL
DISPLAY
CONTROL
HORIZONTAL
DISPLAY CONTROL
RP
PHASE LOCK LOOP
VSSA
BORDER
5 LPN
DATA 8
8 VERTD
8 HORD
7
CH
NROW
VDREN
LUMINANCE &
BORDGER
GENERATOR
WINDOWS &
FRAME
CONTROL
WR
WG
WB
CCS2
FBKGC
BLANK
VFLB
CHARACTER ROM
9 DADDR
ARWDB
HDREN
CCS0
CCS1
BLINK
VCLKX
VCLKX
VCO
BSEN
SHADOW
OSDENB
HSP
VSP
ROUT
GOUT
COLOUR
ENCODER
BOUT
FBKG
HTONE
This datasheet contains new product information. Myson Technology reserves the rights to modify the product specification without
notice. No liability is assumed as a result of the use of this product. No rights under any patent accompany the sale of the product.
MTV016 Revision 2.0 01/01/1999
1/11
MYSON
TECHNOLOGY
MTV016
1.0 CONNECTION DIAGRAM
(16-PIN PDIP 300 MIL PACKAGE)
VSSA
1
16
VSS
VCO
2
15
ROUT
RP
3
14
GOUT
VDDA
4
13
BOUT
MTV016-N
HFLB
5
12
FBKG
SSB
6
11
HTONE
SDA
7
10
VFLB
SCK
8
9
VDD
2.0 PIN DESCRIPTIONS
Name
VSSA
VCO
I/O
I/O
RP
I/O
VDDA
-
HFLB
I
SSB
I
SDA
I
SCK
I
VDD
-
VFLB
I
HTONE
O
FBKG
O
BOUT
GOUT
ROUT
VSS
O
O
O
-
Pin#
Function
1
Analog Ground. Used for internal analog circuitry.
2
Voltage Control Oscillator. Used to control the internal oscillator
frequency by DC voltage input from an external low pass filter.
3
Bias Resistor. Used to regulate the appropriate bias current for the
internal oscillator to resonate at a specific dot frequency.
4
Analog Power Supply. Positive 5 V DC supplies for internal analog
circuitry. A 0.1uF decoupling capacitor should be connected across
VDDA and VSSA.
5
Horizontal Input. Used to input the horizontal synchronizing signal. It is
negative edge triggered and has an internal 100 kΩ pull-up resistor.
6
Serial Interface Enable. Used to enable the serial data and to select I2C
or SPI bus operation. If this pin is left floating, the I2C bus is enabled,
otherwise the SPI bus is enabled.
7
Serial Data Input. Transfers data through this pin to the internal display
and control registers. It has an internal 100 kΩ pull-up resistor.
8
Serial Clock Input. Used to synchronize the data transfer. It has an
internal 100 kΩ pull-up resistor.
9
Digital Power Supply. Positive 5 V DC supply for internal digital
circuitry and a 0.1uF decoupling capacitor should be connected across
VDD and VSS.
10 Vertical Input. Used to input the vertical synchronizing signal. It is
negative triggered and has an internal pull-up resistor.
11 Half Tone Output. Used to attenuate the external R, G, B amplifiers
gain for the transparent windowing effect.
12 Fast Blanking Output. Used to cut off the external R, G, B signals
while this chip is displaying characters or windows.
13 Blue Color Output. A blue color video signal output.
14 Green color output. It is a green color video signal output.
15 Red Color Output. A red color video signal output.
16 Digital Ground. Used for internal digital circuitry.
MTV016 Revision 2.0 01/01/1999
2/11
MYSON
TECHNOLOGY
MTV016
3.0 FUNCTIONAL DESCRIPTIONS
3.1 Serial Data Interface
The serial data interface receives data transmitted from an external controller. There are 2 types of bus
that can be accessed through the serial data interface: SPI bus and I2C bus.
3.1.1 SPI Bus
While SSB pin is pulled to "high" or "low" level, the SPI bus operation is selected. A valid transmission
should be started by pulling SSB to "low" level, enabling MTV016 in receiving mode, and retaining "low"
level until the last cycle for a complete data packet transfer. The protocol is shown in Figure 2:
SSB
SCK
MS
B
SDA
LSB
first byte
last byte
Figure 2. Data Transmission Protocol
There are 3 transmission formats as shown below:
Format (a) R - C - D → R - C - D → R - C - D ..........
Format (b) R - C - D → C - D → C - D → C - D .......
Format (c) R - C - D → D → D → D → D → D .........
R=row address, C=column address, D=display data
3.1.2 I2C Bus
The I2C bus operation is only selected when the SSB pin is left floating. A valid transmission should
begin by writing the slave address 7AH, which is the mask option, to MTV016. The protocol is shown in
Figure 3:
SCK
SDA
B7
START
B6
fist byte
B0
B7
B0
¡@¡@¡@¡@¡@
ACK
second byte
ACK
STOP
last byte
Figure 3. Data Transmission Protocol (I2C)
There are 3 transmission formats as shown below:
Format (a) S - R - C - D → R - C - D → R - C - D ..........
Format (b) S - R - C - D → C - D → C - D → C - D .......
Format (c) S - R - C - D → D → D → D → D → D ........
S=slave address, R=row address, C=column address, D=display data
Each arbitrary length of data packet consists of 3 portions: row address (R), column address (C) and
display data (D). Format (a) is suitable for updating small amounts of data, which will be allocated to
different row and column addresses. Format (b) is recommended for updating data that has the same
row address but a different column address. Massive data updating or a full screen data change should
use format (c) to increase transmission efficiency. The row and column address will be incremented
automatically when format (c) is applied. Furthermore, the undefined locations in display or font RAM
should be filled with dummy data.
MTV016 Revision 2.0 01/01/1999
3/11
MYSON
TECHNOLOGY
MTV016
There are 2 types of data that should be accessed through the serial data interface: ADDRESS bytes
and ATTRIBUTE bytes. The protocol is the same for both except for bit 6 of the row address. The MSB
(b7) bit is used to distinguish row and column addresses when transferring data from the external
controller. Bit 6 of the row address is used to distinguish the ADDRESS byte when it is set to "0" and the
ATTRIBUTE byte when it is set to "1", or to differentiate the column address for formats (a), (b) and (c),
respectively. The configuration of transmission formats is shown in Table 1:
Table 1. Configuration of Transmission Formats
Address
b7
b6
b5
ADDRESS
BYTES
ATTRIBUTE
BYTES
Row
Columnab
1
0
0
1
0
0
Columnc
Row
Columnab
Columnc
0
0
1
1
0
1
x
x
x
x
x
x
b4
b3
b2
b1
b0
x
C4
C4
x
C4
C4
R3
C3
C3
R3
C3
C3
R2
C2
C2
R2
C2
C2
R1
C1
C1
R1
C1
C1
R0
C0
C0
R0
C0
C0
Format
a,b,c
a,b
c
a,b,c
a,b
c
0, X
Input = b7, b6
Initiate
1, X
1, X
ROW
format (b)
1
0,
0
0,
format (c)
format (a)
0, 0
COLc
COLab
X,
X
X, X
DAc
1, X
X
X,
0,
1
DAab
Figure 4. Transmission State Diagram
The data transmission is permitted to change from format (a) to formats (b) and (c), or from format (b) to
format (a), but not from format (c) back to formats (a) and (b). The alternation between formats is
configured as the state diagram shown in Figure 4.
3.2 Address Bus Administrator
The administrator manages bus address arbitration of internal registers during external data writing. The
external data, which is written to registers through the serial data interface, must be synchronized by
internal display timing. In addition, the administrator also provides automatic incrementing to the
address bus when external writing using format (c).
3.3 Vertical Display Control
The vertical display control can generate different vertical display sizes for most display standards in
current monitors. The vertical display size is calculated with the information of the double character
height bit (CHS) and the vertical display height control register (CH6-CH0). The algorithm of repeating
MTV016 Revision 2.0 01/01/1999
4/11
MYSON
TECHNOLOGY
MTV016
character line displays is shown in Tables 2 and 3. The programmable vertical size range is 180 lines to
a maximum of 1420 lines.
The vertical display center for a full screen display may be figured out according to the information of the
vertical starting position register (VERTD) and VFLB input. The vertical delay starting from the leading
edge of VFLB is calculated using the following equation:
vertical delay time = (VERTD * 4 + 1) * H
H = one horizontal line display time
Table 2. Repeat Line Weight of Character
CH6 - CH0
Repeat Line Weight
CH6,CH5=11
+18*3
CH6,CH5=10
+18*2
CH6,CH5=0x
+18
CH4=1
+16
CH3=1
+8
CH2=1
+4
CH1=1
+2
CH0=1
+1
Table 3. Repeat Line Number of Character
Repeat Line
0
1
2
3
4
5
Weight
+1
+2
v
+4
v
+8
v
v
v
+16
v
v
v
v
v
+17
v
v
v
v
v
v
+18
v
v
v
v
v
v
Repeat Line #
6
7
8
9
10
11
12
13
14
15
16
17
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
v
Note:" v " means the nth line in the character would be repeated once, while " - " means the nth line in the character would not be
repeated.
3.4 Horizontal Display Control
The horizontal display control is used to generate control timing for horizontal displays based on double
character width bit (CWS), horizontal positioning register (HORD), horizontal resolution register (HORR)
and HFLB input. A horizontal display line consists of (HORR*12) dots, including 288 dots for 24 display
characters; the remaining dots are for a blank region. The horizontal delay starting from the HFLB
leading edge is calculated using the following equation:
horizontal delay time = (HORD * 6 + 49) * P - phase error detection pulse width
P = one pixel display time = one horizontal line display time / (HORR*12)
3.5 Phase Lock Loop (PLL)
On-chip PLL generates system clock timing (VCLK) by tracking the input HFLB and horizontal resolution
register (HORR). The frequency of VCLK is determined using the following equation:
VCLK Freq = HFLB Freq * HORR * 12
The VCLK frequency ranges from 5MHz to 90MHz and is selected by VCO1and VCO0. In addition,
when HFLB input is not present for MTV016, the PLL will generate a specific system clock,
approximately 2.5MHz, by a built-in oscillator to ensure data integrity.
3.6 Display & Row Control Registers
MTV016 Revision 2.0 01/01/1999
5/11
MYSON
TECHNOLOGY
MTV016
The internal RAM contains display and row control registers. The display registers have 240 locations
that are allocated between row 0/column 0 and row 9/column 23, as shown in Figure 5. Each display
register has a blink bit, and its corresponding character address on the ADDRESS byte and 2 color
selection bits on the ATTRIBUTE bytes. The row control register is allocated between columns 28 and
31 for rows 0 to 9; it is used to set character size and color attribute for each respective row. If double
width character is chosen, only even column characters may be displayed on-screen and the odd
column characters will be hidden.
ROW #
COLUMN #
23 24
0
27
28
31
0
1
DISPLAY
REGISTERS
ROW
CTRL REG
RESERVED
8
9
ROW 10
0
2
WINDOW1
3
COLUMN #
6
8
5
WINDOW2
WINDOW3
9
11
WINDOW4
12
17
FRAME
CTRL REG
Figure 5. Memory Map
Register Descriptions
(i) Display Register
ADDRESS BYTE
b7
b6
b5
BLINK ←
b4
b3
CRADDR
b2
b1
b0
→
BLINK - Enables a blinking effect when this bit is set to " 1 ". The blinking alternates every 32 frames.
CRADDR - Defines the display character address and graphic symbols in ROM.
ATTRIBUTE BYTE
b7
b6
b5
CCS1
CCS0
-
b4
-
b3
-
b2
-
b1
-
b0
-
CCS1, CCS0 - These bits are used to select character color. Color 1 will be selected if these bits are set
to 0/0, color 2 will be selected if these bits are set to 0/1, color 3 will be selected if these
bits are set to 1/0 and color 4 will be selected if these bits are set to 1/1. Color 1, color 2,
color 3 and color 4 are defined in the respective row control registers.
MTV016 Revision 2.0 01/01/1999
6/11
MYSON
TECHNOLOGY
MTV016
(ii) Row Control Registers
COLN 28
b7
R1
b6
G1
b5
B1
b4
R2
b3
G2
b2
B2
b1
CHS
b0
CWS
b1
-
b0
-
b1
-
b0
-
b7 - 2 Color 1 is defined by R1, G1, B1 and color 2 by R2, G2, B2.
b1 CHS - Defines double height character to the respective row.
b0 CWS - Defines double width character to the respective row.
COLN 29
b7
R3
b6
G3
b5
B3
b4
R4
b3
G4
b2
B4
b7 - 2 Color 3 is defined by R3, G3, B3 and color 4 by R4, G4, B4.
COLN 30
b7
R5
b6
G5
b5
B5
b4
R6
b3
G6
b2
B6
b7 - 2 Color 5 and color 6 are defined by R5, G5, B5 and R6, G6, B6, respectively. When a window is
overlapping with the character and the corresponding CCS2 is set to "1", color 5, color 6, color 7 and
color 8 should be chosen.
COLN 31
b7
R7
b6
G7
b5
B7
b4
R8
b3
G8
b2
B8
b1
-
b0
-
b7 - 2 Color 7 is defined by R7, G7, B7 and color 8 by R8, G8, B8.
3.7 Character ROM
The character ROM contains 128 built-in characters and symbols from address 0 to 127. Each character
and symbol consists of a 12x18-dot matrix. The detailed pattern structures for each character and
symbol are shown in Section 10.0.
3.8 Luminance & Border Generator
There are 2 shift registers included in the design that can shift out of luminance and border dots to the
color encoder. The bordering and shadowing feature is configured in this block. For a bordering effect,
the character will be enveloped with blackedge on 4 sides. For a shadowing effect, the character is
enveloped with blackedge on the right and bottom sides only.
3.9 Window and Frame Control
The display frame position is completely controlled by the contents of VERTD and HORD. The window
size and position control are specified in columns 0 to 11 on row 10 of the memory map, as shown in
Figure 5. Window 1 has the highest priority and window 4 the least, when 2 windows are overlapping.
More detailed information is described as follows:
(i) Window Control Registers
ROW 10
Column
0,3,6OR 9
b7
b6
b5
ROW START ADDR
MSB
b4
LSB
b3
MSB
b2
b1
ROW END ADDR
b0
LSB
MTV016 Revision 2.0 01/01/1999
7/11
MYSON
TECHNOLOGY
Column
1,4,7OR 10
Column
2,5,8OR 11
b7
b6
b5
b4
COL START ADDR
MSB
MTV016
b3
b2
WEN
b1
CCS2
b0
-
b2
R
b1
G
b0
B
LSB
b7
b6
b5
COL END ADDR
b4
MSB
b3
LSB
START (END) ADDR - These addresses are used to specify the window size. It should be noted that
when the start address is greater than the end address, the window will be
disabled.
WEN - Enables the window display.
CCS2 - Extends the character color selection to include 8 colors.
(ii) Frame Control Registers
ROW 10
b7
b6
b5
Column 12
b4
b3
VERTD
b2
b1
MSB
b0
LSB
VERTD - Specifies the starting position for the vertical display. The total number of steps is 256 and
each step is incremented by 4 horizontal display lines. The initial value is 4 after power-up.
ROW 10
b7
b6
b5
Column 13
b4
b3
HORD
b2
b1
MSB
b0
LSB
HORD - Defines the starting position for horizontal display. The total number of steps is 256 and each
step is incremented by 6 dots. The initial value is 15 after power-up.
Column14
b7
-
b6
CH6
b5
CH5
b4
CH4
b3
CH3
b2
CH2
b1
CH1
b0
CH0
CH6-CH0 - Defines the character vertical height; the height is programmable from 18 to 71 lines. The
character vertical height is at least 18 lines if the content of CH6-CH0 is less than 18. For
example, when the content is " 2 ", the character vertical height is regarded as equal to 20
lines. And if the content of CH4-CH0 is greater than or equal to 18, it will be regarded as
equal to 17. See Tables 2 and 3 for a detailed description of this operation.
Column15
b7
-
b6
b5
b4
b3
HORR
b2
MSB
b1
b0
LSB
HORR - Specifies the resolution of a horizontal display line, and the increment of each step is 12 dots.
That is, the pixels' number per H line is equal to HORR*12. It is recommended that HORR be
greater than or equal to 30 and smaller than 90M / (Hfreq*12). The initial value is 40 after
power-up.
Column16
b7
OSDEN
b6
BSEN
b5
SHADOW
b4
HSP
b3
VSP
b2
BLANK
b1
RAMCLR
b0
FBKGC
OSDEN - Activates the OSD operation when this bit is set to "1". The initial value is 0 after power-up.
BSEN - Enables the bordering and shadowing effect.
MTV016 Revision 2.0 01/01/1999
8/11
MYSON
TECHNOLOGY
MTV016
SHADOW - Activates the shadowing effect if this bit is set, otherwise the bordering is chosen.
VSP - = 1 ⇒ Accepts positive polarity VSYNC input.
= 0 ⇒ Accepts negative polarity VSYNC input.
HSP - = 1 ⇒ Accepts positive polarity HSYNC input.
= 0 ⇒ Accepts negative polarity HSYNC input.
BLANK - Forces the FBKG pin output to high while this bit is set to "1".
RAMCLR - Clears all ADDRESS bytes of display registers and WEN bits of window control registers
when this bit is set to "1". The initial value is 0 after power-up.
FBKGC - Defines the output configuration for the FBKG pin. When it is set to "0", the FBKG outputs
"high" during the display of characters or windows, otherwise it outputs "high" only during the
display of characters.
Column17
b7
TEST
b6
-
b5
-
b4
-
b3
-
b2
SELVCL
b1
VCO1
b0
VCO0
TEST - = 0
⇒ Normal mode.
=1
⇒ Test mode, not allowed in applications.
SELVCL - Enables auto detection for horizontal and vertical SYNC input edge distortion when the bit is
set to "1". The initial value is 1 after power-up.
VCO1, VCO0 - Selects the appropriate curve partitions of VCO frequency to voltage, based on HFLB
input and horizontal resolution register (HORR).
= (0, 0) ⇒ 5MHz < HFLB Freq * HORR * 12 < 30MHz
= (0, 1) ⇒ 30MHz < HFLB Freq * HORR * 12 < 55MHz
= (1, 0) ⇒ 55MHz < HFLB Freq * HORR * 12 < 75MHz
= (1, 1) ⇒ 75MHz < HFLB Freq * HORR * 12 < 90MHz
The initial value is 0/0 after power-up.
3.11 Color Encoder
The decoder generates the video output to ROUT, GOUT and BOUT by integrating window color,
border blackedge, luminance output and color selection output (CCS0, CCS1, CCS2) to form the
desired video outputs.
4.0 ABSOLUTE MAXIMUM RATINGS
DC Supply Voltage (VDD, VDDA)
Voltage with respect to Ground
Storage Temperature
Ambient Operating Temperature
-0.3 to +7 V
-0.3 to VDD+0.3 V
-65 to +150 oC
0 to +70 oC
5.0 OPERATING CONDITIONS
DC Supply Voltage (VDD, VDDA)
Operating Temperature
+4.75 to +5.25 V
0 to +70 oC
MTV016 Revision 2.0 01/01/1999
9/11
MYSON
TECHNOLOGY
MTV016
6.0 ELECTRICAL CHARACTERISTICS (Under Operating Conditions)
Symbol
VIH
Parameter
Input High Voltage
Conditions(Notes)
-
Min.
0.7 * VDD
VIL
Input Low Voltage
-
VSS-0.3
VOH
VOL
ICC
Output High Voltage
Output Low Voltage
Supply Current
IOH < -24 mA
IOL < 24 mA
Vin = VDD,
Iload = 0uA
VDD-0.8
-
Max.
VDD+0.3
0.3 * VDD
(0.2 * VDD
for SSB pin )
0.5
25
Unit
V
V
V
V
mA
7.0 SWITCHING CHARACTERISTICS (Under Operating Conditions)
Symbol
f HFLB
Tr
Tf
tBCSU
tBCH
tDCSU
tDCH
tSCKH
tSCKL
tSU: STA
tHD: STA
tSU: STO
tHD: STO
Parameter
HFLB Input Frequency
Output Rise Time
Output Fall Time
SSB to SCK Set-up Time
SSB to SCK Hold Time
SDA to SCK Set-up Time
SDA to SCK Hold Time
DCK High Time
DCK Low Time
START Condition Set-up Time
START Condition Hold Time
STOP Condition Set-up Time
STOP Condition Hold Time
Min.
15
200
100
200
100
500
500
500
500
500
500
Typ.
-
Max.
100
5
5
-
Unit
KHz
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
ns
8.0 TIMING DIAGRAMS
tSCK
H
SSB
tSCKL
SCK
tBCS
tBC
U
H
SDA
t DCS
tDC
U
H
Figure 6. Data Interface Timing (SPI)
tSCKH
SCK
tSCKL
tSU:STA
tHD:STO
SDA
tHD:STA
tDCSU
tDCH
tSU:STO
Figure 7. Data Interface Timing (I2C)
MTV016 Revision 2.0 01/01/1999
10/11
MYSON
TECHNOLOGY
MTV016
9.0 CHARACTERS AND SYMBOL PATTERN
Please see attachment.
10.0 PACKAGE DIMENSION
16 Pin 300mil
R10Max
(4X)
312 +/-12
MTV 016
55 +/-20
R40
90 +/-20
65 +/-4
55 +/-4
310Max
75 +/-20
350 +/-20
250 +/-4
10
90 +/-20
750 +/-10
7 Typ
15 Max
35 +/-5
115 Min
15 Min
100Typ
18 +/-2Typ
60 +/-5Typ
MTV016 Revision 2.0 01/01/1999
11/11