MYSON TECHNOLOGY MTV118 On-Screen-Display for LCD Monitor FEATURES GENERAL DESCRIPTION • • MTV118 is designed for LCD monitor applications to display the built-in characters or fonts onto an LCD monitor screen. The display operates by transferring data and control information from the micro controller to the RAM through a serial data interface. It can execute full screen displays automatically and specific functions such as character bordering, shadowing, blinking, double height and width, font by font color control, frame positioning, frame size control by character height and windowing effect. Moreover, MTV118 also provides 8 PWM DAC channels with 8-bit resolution and a PWM clock output for external digital-to-analog control. • • • • • • • • • • • • • • • Horizontal sync input may be up to 120 KHz. Acceptable wide-range pixel clock up to 96MHz from XIN pin. Full-screen display consists of 15 (rows) by 30 (columns) characters. 12 x 18 dot matrix per character. Total of 256 characters and graphic fonts including 248 mask ROM fonts and 8 programmable RAM fonts. 8 color selection maximum per display character. Double character height and/or width control. Programmable positioning for display screen center. Bordering, shadowing and blinking effect. Programmable vertical character height (18 to 71 lines) control. Row to row spacing register to manipulate the constant display height. 4 programmable background windows with multilevel operation. Software clears for display frame. Half tone and fast blanking output. 8-channel/8-bit PWM D/A converter output. Compatible with SPI bus or I2C interface with address 7AH (slave address is mask option). 16 or 24-pin PDIP/SOP package. BLOCK DIAGRAM SSB VDD 8 DATA SERIAL DATA INTERFACE SCK DATA 8 DISPLAY & ROW CONTROL REGISTERS 9 ROW, COL ACK CWS CHS LUMAR LUMAG LUMAB BLINK 8 CRADDR VDDA SDA ARWDB HDREN VDREN NROW ADDRESS BUS ADMINISTRATOR 5 9 9 5 5 RCADDR DADDR FONTADDR WINADDR PWMADDR DATA 8 LPN 5 CWS VCLKS VSP CH 7 CHS VERTD 8 HFLB HSP XIN PWM0 PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 PWM7 HORD 8 VERTICAL DISPLAY CONTROL HORIZONTAL DISPLAY CONTROL CLOCK GENERATOR 5 LPN NROW VDREN DATA 8 8 VERTD 8 HORD 7 CH ARWDB HDREN VCLKX CHARACTER ROM USER FONT RAM LUMA VSSA BORDER LUMINANCE & BORDGER GENERATOR WINDOWS & FRAME CONTROL BSEN SHADOW OSDENB HSP VSP WR WG WB FBKGC BLANK VFLB NC VSS LUMAR LUMAG LUMAB BLINK VCLKX ROUT GOUT COLOR ENCODER BOUT FBKG HTONE PWM D/A CONVERTER 8 DATA POWER ON RESET PRB 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 sales of the product. 1/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 1.0 PIN CONNECTION VSS 1 24 VSS ROUT XIN 2 23 ROUT GOUT NC 3 22 GOUT 13 BOUT VDD 4 21 BOUT 12 FBKG HFLB 5 20 FBKG 19 HTONE/PWMCK VSS 1 16 XIN 2 15 NC 3 14 VDD 4 HFLB 5 MTV118 VSS SSB 6 11 HTONE/PWMCK SSB 6 SDA 7 10 VFLB SDA 7 SCK 8 9 VDD MTV118N24 18 VFLB SCK 8 17 VDD PWM0 9 16 PWM7 PWM1 10 15 PWM6 PWM2 11 14 PWM5 PWM3 12 13 PWM4 2.0 PIN DESCRIPTIONS Name Pin # I/O N16 N24 Descriptions VSS - 1 1 Ground. This ground pin is used for internal circuitry. XIN I 2 2 Pixel Clock Input. This is a clock input pin. MTV118 is driven by an external pixel clock source for all the logics inside. The frequency of XIN must be the integral time of pin HFLB. NC I 3 3 No connection. VDD - 4 4 Power supply. Positive 5 V DC supply for internal circuitry. A 0.1uF decoupling capacitor should be connected across VDD and VSS. HFLB I 5 5 Horizontal Input. This pin is used to input the horizontal synchronizing signal. It is a leading edge trigger and has an internal pullup resistor. SSB I 6 6 Serial Interface Enabler. It is used to enable the serial data and is also used to select the operation of I2C or SPI bus. If this pin is left floating, I2C bus is enabled, otherwise the SPI bus is enabled. SDA I 7 7 Serial Data Input. The external data transfers through this pin to internal display registers and control registers. It has an internal pull-up resistor. SCK I 8 8 Serial Clock Input. The clock-input pin is used to synchronize the data transfer. It has an internal pull-up resistor. PWM0 O - 9 Open-Drain PWM D/A Converter 0. The output pulse width is programmable by the register of row 15, column 19. PWM1 O - 10 Open-Drain PWM D/A Converter 1. The output pulse width is programmable by the register of row 15, column 20. PWM2 O - 11 Open-Drain PWM D/A Converter 2. The output pulse width is programmable by the register of row 15, column 21. 2/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 Pin # Name I/O PWM3 Descriptions N16 N24 O - 12 Open-Drain PWM D/A Converter 3. The output pulse width is programmable by the register of row 15, column 22. PWM4 O - 13 Open-Drain PWM D/A Converter 4. The output pulse width is programmable by the register of row 15, column 23. PWM5 O - 14 Open-Drain PWM D/A Converter 5. The output pulse width is programmable by the register of row 15, column 24. PWM6 O - 15 Open-Drain PWM D/A Converter 6. The output pulse width is programmable by the register of row 15, column 25. PWM7 O - 16 Open-Drain PWM D/A Converter 7. The output pulse width is programmable by the register of row 15, column 26. VDD - 9 17 Power Supply. Positive 5 V DC supply for internal circuitry and a 0.1uF decoupling capacitor should be connected across VDD and VSS. VFLB I 10 18 Vertical Input. This pin is used to input the vertical synchronizing signal. It is triggered by lead and has an internal pull-up resistor. HTONE / PWMCK O 11 19 Half Tone Output / PWM Clock Output. This is a multiplexed pin selected by the PWMCK bit. This pin can be a PWM clock or used to attenuate R, G, B gain of VGA for the transparent windowing effect. FBKG O 12 20 Fast Blanking Output. It is used to cut off external R, G, B signals of VGA while this chip is displaying characters or windows. BOUT O 13 21 Blue Color Output. This is a blue color video signal output. GOUT O 14 22 Green Color Output. This is a green color video signal output. ROUT O 15 23 Red Color Output. This is a red color video signal output. VSS - 16 24 Ground. This ground pin is used for internal circuitry. 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 which can be accessed through the serial data interface: SPI bus and I2C bus. 3.1.1 SPI Bus When the SSB pin is pulled to a HIGH or LOW level, the SPI bus operation is selected. A valid transmission should start from pulling SSB to LOW level, enabling the MTV118 receiving mode and retaining the LOW level until the last cycle for a complete data packet transfer. The protocol is shown in Figure 1 on page 4. 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/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 SSB SCK MS B SDA LSB first byte last byte FIGURE 1. Data Transmission Protocol (SPI) 3.1.2 I2C Bus I2C bus operation is only selected when the SSB pin is left floating. A valid transmission should begin from writing the slave address 7AH, which is mask option, to MTV118. The protocol is shown in Figure 2 on page 4.. SCK SDA B7 START B6 first byte B0 B7 ACK B0 ¡@¡@¡@¡@ ¡@ second byte last byte ACK STOP FIGURE 2. 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 with 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 full screen data changes should be done in format (c) to increase transmission efficiency. The row and column addresses will be incremented automatically when format (c) is applied. Furthermore, the undefined locations in display or font RAM should be filled with dummy data. There are 3 types of data which should be accessed through the serial data interface: address bytes of display registers, attribute bytes of display registers and user font RAM data. The protocol is the same for all except bits 5 and 6 of the row addresses. The MSB(b7) is used to distinguish row and column addresses when transferring data from an external controller. Bit 6 of the row address is used to distinguish display registers and user font RAM data and bit6 of the column address is used to differentiate the column address for formats (a), (b) and (c), respectively. Bit 5 of the row address for display registers is used to distinguish the address byte when it is set to "0" and the attribute byte when it is set to "1". The configuration of transmission formats is shown in Table 1 on page 5. 4/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 TABLE 1. Configuration of Transmission Formats Address b7 b6 b5 b4 b3 b2 b1 b0 Format Address Bytes of Display Reg. Row 1 0 0 x R3 R2 R1 R0 a,b,c Columnab 0 0 x C4 C3 C2 C1 C0 a,b Columnc 0 1 x C4 C3 C2 C1 C0 c Attribute Bytes of Display Reg. Row 1 0 1 x R3 R2 R1 R0 a,b,c Columnab 0 0 x C4 C3 C2 C1 C0 a,b Columnc 0 1 x C4 C3 C2 C1 C0 c Row 1 1 x x x R2 R1 R0 a,b,c Columnab 0 0 C5 C4 C3 C2 C1 C0 a,b Columnc 0 1 C5 C4 C3 C2 C1 C0 c User Fonts RAM The data transmission is permitted to change from format (a) to format (b) and (c), or from format (b) to format (a), but not from format (c) back to format (a) and (b). The alternation between transmission formats is configured as the state diagram shown in Figure 3 on page 5. 0, X Input = b7, b6 Initiate 1, X COLc format (b) 0, 1 0, 0 1 0, COLab X, X format (c) ROW 0, 0 1, X format (a) 1, X X X, X, X DAc DAab FIGURE 3. Transmission State Diagram 3.2 Address Bus Administrator The administrator manages bus address arbitration of internal registers or user font RAM during external data write-in. The external data write through serial data interface to registers must be synchronized by internal display timing. In addition, the administrator also provides automatic incrementation to the address bus when external writing occurs 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 a double character height bit(CHS) and a vertical display height control register(CH6-CH0).The algorithms of a repeating character line display are shown in Tables 2 and 3. The programmable vertical size range is 270 lines to maximum 2130 lines. 5/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 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 Where H = 1 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 # Repeater Line Weight 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 +1 - - - - - - - - v - - - - - - - - - +2 - - - - v - - - - - - - v - - - - - +4 - - v - - - v - - - v - - - v - - - +8 - v - v - v - v - v - v - v - v - - +16 - v v v v v v v v v v v v v v v v - +17 v v v v v v v v v v v v v v v v v - +18 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 a horizontal display based on double character width bit (CWS), horizontal positioning register (HORD) and HFLB input. A horizontal display line includes 360 dots for 30 display characters and the remaining dots 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 Where P = 1 XIN pixel display time 3.5 Display & Row Control Registers The internal RAM contains display and row control registers. The display registers have 450 locations which are allocated between row 0/column 0 and row 14/column 29 as shown in Figure 4. Each display register has its corresponding character address on the address byte, and 1 blink bit and its corresponding color bits on attribute bytes. The row control register is allocated at column 30 for row 0 to row 14; it is used to set character size for each respective row. If the double width character (CWS) is cho6/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 sen, only even column characters may be displayed on-screen and the odd column characters will be hidden. COLUMN # ROW # 0 1 28 29 30 31 0 1 ROW CTRL RESERVED REG DISPLAY REGISTERS 13 14 ROW 15 0 23 WINDOW1 COLUMN# 8 9 5 6 11 12 18 19 26 FRAME CRTL PWM D/A WINDOW2 WINDOW3 WINDOW4 REG CRTL REG FIGURE 4. Memory map 3.5.1 Register Descriptions 1. (i) Display Register, (Row 0 - 14, Column 0 - 29) ADDRESS BYTE b7 b6 b5 b4 b3 CRADDR b2 b1 MSB b0 LSB CRADDR - Defines ROM character and user-programmable fonts address. (a) 0 ~ 247 ⇒ 248 built-in characters and graphic symbols (b) 248 ~ 255 ⇒ 8 user-programmable fonts ATTRIBUTE BYTE b7 b6 b5 - b4 - b3 BLINK b2 R1 b1 G1 b0 B1 BLINK - Enables blinking effect when this bit is set to " 1 ". The blinking is alternated per 32 vertical frames. R1, G1, B1 - These bits are used to specify its relative address character color 1. 2. Row Control Registers, (Row 0 - 14) COLN 30 b7 - b6 - b5 - b4 R2 b3 G2 b2 B2 b1 CHS b0 CWS R2, G2, B2 - These bits are used to specify its relative row character color 2. While the corresponding CCS bit is set to 1, color 2 should be chosen. CHS - Defines double height character to the respective row. CWS - Defines double width character to the respective row. 7/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 3.6 User Font RAM The user font RAM has 288 locations which are allocated between row 0/column 0 and row 7/column 35 to specify 8 user-programmable fonts, as shown in Figure 5. Each programmable font consists of a 12x18 dot matrix. Each row of dot matrix consists of 2 bytes of data which include 4 dummy bits as shown in figure 6. That is, the dot matrix data of each font is stored in 36-byte registers. For example, font 0 is stored in row 0 from column 0 to column 35 and font 1 is stored in row 1 from column 0 to column 35, etc. ROW # 0 COLUMN # 34 35 1 36 63 0 1 USER FONT RAM RESERVED 6 7 FIGURE 5. User Font RAM Memory Map Nth byte (N+1)th byte leftmost dot of font b7 b6 b5 b4 b3 rightmost dot of font b2 b1 b0 b7 b6 b5 b4 b3 12 bits for 1-row data of font dot matrix b2 b1 b0 Dummy bits N=even number FIGURE 6. Data Format of Font Dot Matrix 3.7 Character ROM The character ROM contains 248 built-in characters and symbols from addresses 0 to 247. Each character and symbol consists of a 12x18 dot matrix. The detail pattern structures for each character and symbol are shown in 10.0“CHARACTER AND SYMBOL PATTERN” on page 15. 3.8 Luminance & Border Generator There are 2 shift registers included in the design which can shift out of luminance and border dots to the color encoder. The bordering and shadowing feature is configured in this block. For bordering effect, the character will be enveloped with blackedge on 4 sides. For shadowing effect, the character is enveloped with blackedge on 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 15 of the memory map, as shown in Figure 4. Window 1 has the highest priority and window 4 has the least, when 2 windows are overlapping. More detailed information is described as follows: 8/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 1. Window control registers: ROW 15 b7 Column 0,3,6,OR 9 MSB b3 b6 b5 b4 COL START ADDR MSB LSB b7 b6 b2 b1 ROW END ADDR b5 b4 COL END ADDR b2 b1 b0 WEN CCS - b2 R b1 G b0 B b3 MSB b0 LSB b3 MSB Column 2,5,8,OR 11 b4 LSB b7 Column 1,4,7,OR 10 b6 b5 ROW START ADDR 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. CCS - When a window is overlapping with the character, character color 2 should be chosen while this bit is set to 1. Color 1 is selected otherwise. R, G, B - Specifies the color of the relative background window. 2. Frame control registers: ROW 15 b7 b6 b5 Column 12 b4 b3 VERTD b2 b1 MSB b0 LSB VERTD - Specifies the starting position for vertical display. The total steps are 256, and the increment of each step is 4 horizontal display lines. The initial value is 4 after power-up. b7 b6 b5 Column 13 b4 b3 HORD b2 b1 MSB b0 LSB HORD - Defines the starting position for horizontal display. The total steps are 256 and the increment of each step is 6 dots. The initial value is 15 after power-up. Column 14 b7 - b6 CH6 b5 CH5 b4 CH4 b3 CH3 b2 CH2 b1 CH1 b0 CH0 CH6-CH0 - Defines the character vertical height, which is programmable from 18 to 71 lines. The character vertical height is at least 18 lines if the contents of CH6-CH0 are less than 18. For example, when the content is " 2 ", the character vertical height is regarded as equal to 20 lines. If the contents of CH4-CH0 are 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. Column 15 b7 b6 b5 b4 b3 Reserved b2 b1 b0 This byte is reserved for internal testing. 9/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY Column 16 b7 - b6 - B5 - b4 b3 MTV118 b2 b1 RSPACE b0 MSB LSB RSPACE - Defines the row to row spacing in each unit of the horizontal line. That is, extra RSPACE horizontal lines will be appended below each display row, and the maximum space is 31 lines. The initial value is “0” after power-up. Column 17 b7 OSDEN b6 BSEN b5 SHADOW b4 TRIC b3 BLANK b2 WENCLR 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. SHADOW - Activates the shadowing effect if this bit is set, otherwise the bordering is chosen. TRIC - Defines the driving state of output pins ROUT, GOUT, BOUT and FBKG when OSD is disabled. That is, while OSD is disabled, these 4 pins will drive LOW if this bit is set to “1”, otherwise these pins are in high-impedance state. The initial value is “0” after power-up. BLANK - Forces the FBKG pin output to HIGH while this bit is set to "1". WENCLR - Clears all WEN bits of window control registers when this bit is set to "1". The initial value is “0” after power-up. RAMCLR - Clears all ADDRESS bytes of display registers when this bit is set to "1". The initial value is “0” after power-up. FBKGC - Defines the output configuration for FBKG pin. When it is set to "0", the FBKG outputs during the display of characters or windows, otherwise, it outputs only during the display of characters. Column 18 TEST - =0 =1 B7 TEST b6 FBKGP b5 PWMCK b4 DWE b3 HSP b2 VSP b1 PWM1 b0 PWM0 ⇒ Normal mode. ⇒ Test mode, not allowed in applications. FBKGP - Selects the polarity of the output pin FBKG. = 1 ⇒Positive polarity FBKG output is selected. = 0 ⇒Negative polarity FBKG output is selected. The initial value is “1” after power-up. PWMCK - Selects the output options to the HTONE/PWMCK pin. = 0 ⇒? HTONE option is selected. = 1 ⇒? PWMCK option is selected with 50/50 duty cycle and is synchronous with the input HFLB. The frequency is selected by PWM1, PWM0 as shown in table 4. The initial value is “0” after power-up. DWE - Enables double width. When the bit is set to “1”, the display of the OSD menu can change to half resolution for double character width, and then the number of pixels of each line should be even. HSP - = 1 ⇒ Accepts positive polarity Hsync input. 10/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 = 0 ⇒ Accepts negative polarity Hsync input. = 1 ⇒ Accepts positive polarity Vsync input. = 0 ⇒ Accepts negative polarity Vsync input. VSP - PWM1, PWM0 - Selects the PWMCK output frequency. = (0, 0) ⇒ XIN frequency /8 = (0, 1) ⇒ XIN frequency /4 = (1, 0) ⇒ XIN frequency /2 = (1, 1) ⇒ XIN frequency /1 The initial value is 0, 0 after power-up. Notes : When XIN is not present, don't write data in any address. If data is written in any address, a malfunction may occur. TABLE 4. PWMCK Frequency and PWMDA Sampling Rate (PWM1, PWM0) PWMCK Freq. PWMDA sampling rate ( 0, 0 ) XIN frequency /8 XIN frequency /(8 * 256) ( 0, 1 ) XIN frequency /4 XIN frequency /(4 * 256) ( 1, 0 ) XIN frequency /2 XIN frequency /(2 * 256) ( 1 ,1 ) XIN frequency /1 XIN frequency /(1 * 256) 3.10 PWM D/A Converter There are 8 open-drain PWM D/A outputs (PWM0 to PWM7). The PWM D/A converter output pulse width is programmable by writing data to columns 19-26 registers of row 15 with 8-bit resolution to control the pulse width duration from 0/256 to 255/256. The sampling rate is selected by PWM1, PWM0 as shown in table 4. In applications, all open-drain output pins should be pulled up by external resistors to supply voltage (5V to 9V) for the desired output range. ROW 15 b7 b6 Column 19 | Column 26 b5 b4 b3 PWMDA0 | PWMDA7 b2 MSB b1 b0 LSB PWMDA0 - PWMDA7 - Defines the output pulse width of pins PWM0 to PWM7. 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 (R, G, B) to form the desired video outputs. 4.0 ABSOLUTE MAXIMUM RATINGS DC Supply Voltage(VDD,VDDA) Ground Voltage 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 11/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 5.0 OPERATING CONDITIONS DC Supply Voltage(VDD,VDDA) Operating Temperature +4.75 to +5.25 V 0 to +70 oC 6.0 ELECTRICAL CHARACTERISTICS (Under Operating Conditions) Symbol VIH Parameter Conditions(Notes) Min. Max. Unit Input High Voltage - 0.7 * VDD VDD+0.3 V 0.3 * VDD ( 0.2 * VDD for SSB pin ) VIL Input Low Voltage - VSS-0.3 VOH Output High Voltage IOH ≥ -24 mA VDD-0.8 - V VOL Output Low Voltage IOL ≤ 24 mA - 0.5 V (For all OD pins, pulled up by external 5 to 9V power supply) 5 9 V - 0.5 V V VODH Open Drain Output High Voltage VODL Open Drain Output Low Voltage ISB Standby Current Vin = VDD, Iload = 0uAl - 12 mA ICC Operating Current Pixel rate=96MHz Iload = 0uA - 20 mA 5 mA ≥ IDOL ( For all OD pins ) 7.0 SWITCHING CHARACTERISTIC (Under Operating Conditions) Symbol Parameter Min. Typ. Max. Unit 15 - 120 KHz fHFLB HFLB input frequency Tr Output rise time - - 5 ns Tf Output fall time - - 5 ns tBCSU SSB to SCK set-up time 200 - - ns tBCH SSB to SCK hold time 100 - - ns tDCSU SDA to SCK set-up time 200 - - ns tDCH SDA to SCK hold time 100 - - ns tSCKH SCK HIGH time 500 - - ns tSCKL SCK LOW time 500 - - ns tSU:STA START condition set-up time 500 - - ns tHD:STA START condition hold time 500 - - ns tSU:STO STOP condition set-up time 500 - - ns 12/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY Symbol MTV118 Parameter Min. Typ. Max. Unit 500 - - ns 6 ns tHD:STO STOP condition hold time tSETUP HFLB delay to rising edge of pixel clock 2 tHOLD minimum pulse width of HFLB 25 tpd propagation delay of output to pixel clock PIXin pixel clock input ns 6 10 ns 96 MHz 8.0 TIMING DIAGRAMS tSCKH SCK tSCKL SSB tBCSU tBCH SDA tDCSU tDCH FIGURE 7. Data Interface Timing (SPI) tSCKH SCK tSCKL tSU:STA tHD:STO SDA tHD:STA tDCSU tDCH tSU:STO FIGURE 8. Data Interface Timing (I 2C) PlXin R,G,B, FBKG HTONE tpd:: Propagation Delay to R,G,B, FBKG tpd and HTONE outputs HFLB t SETUP t HOLD FIGURE 9. Output and HFLB Timing to Pixel Clock 13/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 9.0 PACKAGE DIMENSION 9.1 16 PDIP 300Mil Unit:Mil R10Max (4X ) 312 +/-12 55 +/-20 R40 90 +/-20 350 +/-20 250 +/-4 10 65 +/-4 55 +/-4 310Max 75 +/-20 90 +/-20 750 +/-10 7 Typ 15 Max 35 +/-5 115 Min 100Ty p 18 +/2Typ 60 +/5Typ 15 Min 9.2 24 PDIP 300Mil Unit: Mil R10Max (4X) 312+/-12 80+/-20 R40 350+/-20 250+/-4 55+/-20 10 930+/-10 65+/-4 65+/-4 1245+/-10 7Ty p 15Max 35+/-5 115Min 15Min. 100Ty p 18+/2Typ 60+/5Typ 14/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 9.3 16-pin SOP 300Mil Unit: Mil 0.406 +/-0.013 0.295 +/-0.004 0.015x45o 0.406 +/-0.008 7o(4x) (4x) 0.091 0.016 +/-0.004 0.098 +/-0.006 0.028 +0.022 /-0.013 0.050 9.4 24-pin SOP 300Mil 15.0mm /+0.4 -0.1 24 1.85mm/+0.4 -0.15 13 7.9mm+/-0.4 0.1mm +0.2/-0.05 6.9mm 5.3mm +0.3/-0.1 1 12 0.45mm +/-0.1 0.5mm+/-0.2 0.2mm +0.1/-0.05 1.27mm 10.0 CHARACTER AND SYMBOL PATTERN Please see the attachment. Myson Technology, Inc. http://www.myson.com.tw Myson Technology USA, Inc. http://www.myson.com No. 2, Industry E. Rd. III, Science-Based Industrial Park, Hsinchu, Taiwan, 20111 Stevens Creek Blvd. #138 Cupertino, Ca. 95014, U.S.A. R. O. C. Tel: 886-3-5784866 Fax: 886-3-5785002 Tel:408-252-8788 FAX: 408-252-8789 [email protected] 15/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 On-Screen-Display for LCD Monitor FEATURES GENERAL DESCRIPTION • • MTV118 is designed for LCD monitor applications to display the built-in characters or fonts onto an LCD monitor screen. The display operates by transferring data and control information from the micro controller to the RAM through a serial data interface. It can execute full screen displays automatically and specific functions such as character bordering, shadowing, blinking, double height and width, font by font color control, frame positioning, frame size control by character height and windowing effect. Moreover, MTV118 also provides 8 PWM DAC channels with 8-bit resolution and a PWM clock output for external digital-to-analog control. • • • • • • • • • • • • • • • Horizontal sync input may be up to 120 KHz. Acceptable wide-range pixel clock up to 96MHz from XIN pin. Full-screen display consists of 15 (rows) by 30 (columns) characters. 12 x 18 dot matrix per character. Total of 256 characters and graphic fonts including 248 mask ROM fonts and 8 programmable RAM fonts. 8 color selection maximum per display character. Double character height and/or width control. Programmable positioning for display screen center. Bordering, shadowing and blinking effect. Programmable vertical character height (18 to 71 lines) control. Row to row spacing register to manipulate the constant display height. 4 programmable background windows with multilevel operation. Software clears for display frame. Half tone and fast blanking output. 8-channel/8-bit PWM D/A converter output. Compatible with SPI bus or I2C interface with address 7AH (slave address is mask option). 16 or 24-pin PDIP/SOP package. BLOCK DIAGRAM SSB VDD 8 DATA SERIAL DATA INTERFACE SCK DATA 8 DISPLAY & ROW CONTROL REGISTERS 9 ROW, COL ACK CWS CHS LUMAR LUMAG LUMAB BLINK 8 CRADDR VDDA SDA ARWDB HDREN VDREN NROW ADDRESS BUS ADMINISTRATOR 5 9 9 5 5 RCADDR DADDR FONTADDR WINADDR PWMADDR DATA 8 LPN 5 CWS VCLKS VSP CH 7 CHS VERTD 8 HFLB HSP XIN PWM0 PWM1 PWM2 PWM3 PWM4 PWM5 PWM6 PWM7 HORD 8 VERTICAL DISPLAY CONTROL HORIZONTAL DISPLAY CONTROL CLOCK GENERATOR 5 LPN NROW VDREN DATA 8 8 VERTD 8 HORD 7 CH ARWDB HDREN VCLKX CHARACTER ROM USER FONT RAM LUMA VSSA BORDER LUMINANCE & BORDGER GENERATOR WINDOWS & FRAME CONTROL BSEN SHADOW OSDENB HSP VSP WR WG WB FBKGC BLANK VFLB NC VSS LUMAR LUMAG LUMAB BLINK VCLKX ROUT GOUT COLOR ENCODER BOUT FBKG HTONE PWM D/A CONVERTER 8 DATA POWER ON RESET PRB 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 sales of the product. 1/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 1.0 PIN CONNECTION VSS 1 24 VSS ROUT XIN 2 23 ROUT GOUT NC 3 22 GOUT 13 BOUT VDD 4 21 BOUT 12 FBKG HFLB 5 20 FBKG 19 HTONE/PWMCK VSS 1 16 XIN 2 15 NC 3 14 VDD 4 HFLB 5 MTV118 VSS SSB 6 11 HTONE/PWMCK SSB 6 SDA 7 10 VFLB SDA 7 SCK 8 9 VDD MTV118N24 18 VFLB SCK 8 17 VDD PWM0 9 16 PWM7 PWM1 10 15 PWM6 PWM2 11 14 PWM5 PWM3 12 13 PWM4 2.0 PIN DESCRIPTIONS Name Pin # I/O N16 N24 Descriptions VSS - 1 1 Ground. This ground pin is used for internal circuitry. XIN I 2 2 Pixel Clock Input. This is a clock input pin. MTV118 is driven by an external pixel clock source for all the logics inside. The frequency of XIN must be the integral time of pin HFLB. NC I 3 3 No connection. VDD - 4 4 Power supply. Positive 5 V DC supply for internal circuitry. A 0.1uF decoupling capacitor should be connected across VDD and VSS. HFLB I 5 5 Horizontal Input. This pin is used to input the horizontal synchronizing signal. It is a leading edge trigger and has an internal pullup resistor. SSB I 6 6 Serial Interface Enabler. It is used to enable the serial data and is also used to select the operation of I2C or SPI bus. If this pin is left floating, I2C bus is enabled, otherwise the SPI bus is enabled. SDA I 7 7 Serial Data Input. The external data transfers through this pin to internal display registers and control registers. It has an internal pull-up resistor. SCK I 8 8 Serial Clock Input. The clock-input pin is used to synchronize the data transfer. It has an internal pull-up resistor. PWM0 O - 9 Open-Drain PWM D/A Converter 0. The output pulse width is programmable by the register of row 15, column 19. PWM1 O - 10 Open-Drain PWM D/A Converter 1. The output pulse width is programmable by the register of row 15, column 20. PWM2 O - 11 Open-Drain PWM D/A Converter 2. The output pulse width is programmable by the register of row 15, column 21. 2/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 Pin # Name I/O PWM3 Descriptions N16 N24 O - 12 Open-Drain PWM D/A Converter 3. The output pulse width is programmable by the register of row 15, column 22. PWM4 O - 13 Open-Drain PWM D/A Converter 4. The output pulse width is programmable by the register of row 15, column 23. PWM5 O - 14 Open-Drain PWM D/A Converter 5. The output pulse width is programmable by the register of row 15, column 24. PWM6 O - 15 Open-Drain PWM D/A Converter 6. The output pulse width is programmable by the register of row 15, column 25. PWM7 O - 16 Open-Drain PWM D/A Converter 7. The output pulse width is programmable by the register of row 15, column 26. VDD - 9 17 Power Supply. Positive 5 V DC supply for internal circuitry and a 0.1uF decoupling capacitor should be connected across VDD and VSS. VFLB I 10 18 Vertical Input. This pin is used to input the vertical synchronizing signal. It is triggered by lead and has an internal pull-up resistor. HTONE / PWMCK O 11 19 Half Tone Output / PWM Clock Output. This is a multiplexed pin selected by the PWMCK bit. This pin can be a PWM clock or used to attenuate R, G, B gain of VGA for the transparent windowing effect. FBKG O 12 20 Fast Blanking Output. It is used to cut off external R, G, B signals of VGA while this chip is displaying characters or windows. BOUT O 13 21 Blue Color Output. This is a blue color video signal output. GOUT O 14 22 Green Color Output. This is a green color video signal output. ROUT O 15 23 Red Color Output. This is a red color video signal output. VSS - 16 24 Ground. This ground pin is used for internal circuitry. 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 which can be accessed through the serial data interface: SPI bus and I2C bus. 3.1.1 SPI Bus When the SSB pin is pulled to a HIGH or LOW level, the SPI bus operation is selected. A valid transmission should start from pulling SSB to LOW level, enabling the MTV118 receiving mode and retaining the LOW level until the last cycle for a complete data packet transfer. The protocol is shown in Figure 1 on page 4. 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/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 SSB SCK MS B SDA LSB first byte last byte FIGURE 1. Data Transmission Protocol (SPI) 3.1.2 I2C Bus I2C bus operation is only selected when the SSB pin is left floating. A valid transmission should begin from writing the slave address 7AH, which is mask option, to MTV118. The protocol is shown in Figure 2 on page 4.. SCK SDA B7 START B6 first byte B0 B7 ACK B0 ¡@¡@¡@¡@ ¡@ second byte last byte ACK STOP FIGURE 2. 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 with 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 full screen data changes should be done in format (c) to increase transmission efficiency. The row and column addresses will be incremented automatically when format (c) is applied. Furthermore, the undefined locations in display or font RAM should be filled with dummy data. There are 3 types of data which should be accessed through the serial data interface: address bytes of display registers, attribute bytes of display registers and user font RAM data. The protocol is the same for all except bits 5 and 6 of the row addresses. The MSB(b7) is used to distinguish row and column addresses when transferring data from an external controller. Bit 6 of the row address is used to distinguish display registers and user font RAM data and bit6 of the column address is used to differentiate the column address for formats (a), (b) and (c), respectively. Bit 5 of the row address for display registers is used to distinguish the address byte when it is set to "0" and the attribute byte when it is set to "1". The configuration of transmission formats is shown in Table 1 on page 5. 4/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 TABLE 1. Configuration of Transmission Formats Address b7 b6 b5 b4 b3 b2 b1 b0 Format Address Bytes of Display Reg. Row 1 0 0 x R3 R2 R1 R0 a,b,c Columnab 0 0 x C4 C3 C2 C1 C0 a,b Columnc 0 1 x C4 C3 C2 C1 C0 c Attribute Bytes of Display Reg. Row 1 0 1 x R3 R2 R1 R0 a,b,c Columnab 0 0 x C4 C3 C2 C1 C0 a,b Columnc 0 1 x C4 C3 C2 C1 C0 c Row 1 1 x x x R2 R1 R0 a,b,c Columnab 0 0 C5 C4 C3 C2 C1 C0 a,b Columnc 0 1 C5 C4 C3 C2 C1 C0 c User Fonts RAM The data transmission is permitted to change from format (a) to format (b) and (c), or from format (b) to format (a), but not from format (c) back to format (a) and (b). The alternation between transmission formats is configured as the state diagram shown in Figure 3 on page 5. 0, X Input = b7, b6 Initiate 1, X COLc format (b) 0, 1 0, 0 1 0, COLab X, X format (c) ROW 0, 0 1, X format (a) 1, X X X, X, X DAc DAab FIGURE 3. Transmission State Diagram 3.2 Address Bus Administrator The administrator manages bus address arbitration of internal registers or user font RAM during external data write-in. The external data write through serial data interface to registers must be synchronized by internal display timing. In addition, the administrator also provides automatic incrementation to the address bus when external writing occurs 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 a double character height bit(CHS) and a vertical display height control register(CH6-CH0).The algorithms of a repeating character line display are shown in Tables 2 and 3. The programmable vertical size range is 270 lines to maximum 2130 lines. 5/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 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 Where H = 1 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 # Repeater Line Weight 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 +1 - - - - - - - - v - - - - - - - - - +2 - - - - v - - - - - - - v - - - - - +4 - - v - - - v - - - v - - - v - - - +8 - v - v - v - v - v - v - v - v - - +16 - v v v v v v v v v v v v v v v v - +17 v v v v v v v v v v v v v v v v v - +18 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 a horizontal display based on double character width bit (CWS), horizontal positioning register (HORD) and HFLB input. A horizontal display line includes 360 dots for 30 display characters and the remaining dots 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 Where P = 1 XIN pixel display time 3.5 Display & Row Control Registers The internal RAM contains display and row control registers. The display registers have 450 locations which are allocated between row 0/column 0 and row 14/column 29 as shown in Figure 4. Each display register has its corresponding character address on the address byte, and 1 blink bit and its corresponding color bits on attribute bytes. The row control register is allocated at column 30 for row 0 to row 14; it is used to set character size for each respective row. If the double width character (CWS) is cho6/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 sen, only even column characters may be displayed on-screen and the odd column characters will be hidden. COLUMN # ROW # 0 1 28 29 30 31 0 1 ROW CTRL RESERVED REG DISPLAY REGISTERS 13 14 ROW 15 0 23 WINDOW1 COLUMN# 8 9 5 6 11 12 18 19 26 FRAME CRTL PWM D/A WINDOW2 WINDOW3 WINDOW4 REG CRTL REG FIGURE 4. Memory map 3.5.1 Register Descriptions 1. (i) Display Register, (Row 0 - 14, Column 0 - 29) ADDRESS BYTE b7 b6 b5 b4 b3 CRADDR b2 b1 MSB b0 LSB CRADDR - Defines ROM character and user-programmable fonts address. (a) 0 ~ 247 ⇒ 248 built-in characters and graphic symbols (b) 248 ~ 255 ⇒ 8 user-programmable fonts ATTRIBUTE BYTE b7 b6 b5 - b4 - b3 BLINK b2 R1 b1 G1 b0 B1 BLINK - Enables blinking effect when this bit is set to " 1 ". The blinking is alternated per 32 vertical frames. R1, G1, B1 - These bits are used to specify its relative address character color 1. 2. Row Control Registers, (Row 0 - 14) COLN 30 b7 - b6 - b5 - b4 R2 b3 G2 b2 B2 b1 CHS b0 CWS R2, G2, B2 - These bits are used to specify its relative row character color 2. While the corresponding CCS bit is set to 1, color 2 should be chosen. CHS - Defines double height character to the respective row. CWS - Defines double width character to the respective row. 7/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 3.6 User Font RAM The user font RAM has 288 locations which are allocated between row 0/column 0 and row 7/column 35 to specify 8 user-programmable fonts, as shown in Figure 5. Each programmable font consists of a 12x18 dot matrix. Each row of dot matrix consists of 2 bytes of data which include 4 dummy bits as shown in figure 6. That is, the dot matrix data of each font is stored in 36-byte registers. For example, font 0 is stored in row 0 from column 0 to column 35 and font 1 is stored in row 1 from column 0 to column 35, etc. ROW # 0 COLUMN # 34 35 1 36 63 0 1 USER FONT RAM RESERVED 6 7 FIGURE 5. User Font RAM Memory Map Nth byte (N+1)th byte leftmost dot of font b7 b6 b5 b4 b3 rightmost dot of font b2 b1 b0 b7 b6 b5 b4 b3 12 bits for 1-row data of font dot matrix b2 b1 b0 Dummy bits N=even number FIGURE 6. Data Format of Font Dot Matrix 3.7 Character ROM The character ROM contains 248 built-in characters and symbols from addresses 0 to 247. Each character and symbol consists of a 12x18 dot matrix. The detail pattern structures for each character and symbol are shown in 10.0“CHARACTER AND SYMBOL PATTERN” on page 15. 3.8 Luminance & Border Generator There are 2 shift registers included in the design which can shift out of luminance and border dots to the color encoder. The bordering and shadowing feature is configured in this block. For bordering effect, the character will be enveloped with blackedge on 4 sides. For shadowing effect, the character is enveloped with blackedge on 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 15 of the memory map, as shown in Figure 4. Window 1 has the highest priority and window 4 has the least, when 2 windows are overlapping. More detailed information is described as follows: 8/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 1. Window control registers: ROW 15 b7 Column 0,3,6,OR 9 MSB b3 b6 b5 b4 COL START ADDR MSB LSB b7 b6 b2 b1 ROW END ADDR b5 b4 COL END ADDR b2 b1 b0 WEN CCS - b2 R b1 G b0 B b3 MSB b0 LSB b3 MSB Column 2,5,8,OR 11 b4 LSB b7 Column 1,4,7,OR 10 b6 b5 ROW START ADDR 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. CCS - When a window is overlapping with the character, character color 2 should be chosen while this bit is set to 1. Color 1 is selected otherwise. R, G, B - Specifies the color of the relative background window. 2. Frame control registers: ROW 15 b7 b6 b5 Column 12 b4 b3 VERTD b2 b1 MSB b0 LSB VERTD - Specifies the starting position for vertical display. The total steps are 256, and the increment of each step is 4 horizontal display lines. The initial value is 4 after power-up. b7 b6 b5 Column 13 b4 b3 HORD b2 b1 MSB b0 LSB HORD - Defines the starting position for horizontal display. The total steps are 256 and the increment of each step is 6 dots. The initial value is 15 after power-up. Column 14 b7 - b6 CH6 b5 CH5 b4 CH4 b3 CH3 b2 CH2 b1 CH1 b0 CH0 CH6-CH0 - Defines the character vertical height, which is programmable from 18 to 71 lines. The character vertical height is at least 18 lines if the contents of CH6-CH0 are less than 18. For example, when the content is " 2 ", the character vertical height is regarded as equal to 20 lines. If the contents of CH4-CH0 are 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. Column 15 b7 b6 b5 b4 b3 Reserved b2 b1 b0 This byte is reserved for internal testing. 9/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY Column 16 b7 - b6 - B5 - b4 b3 MTV118 b2 b1 RSPACE b0 MSB LSB RSPACE - Defines the row to row spacing in each unit of the horizontal line. That is, extra RSPACE horizontal lines will be appended below each display row, and the maximum space is 31 lines. The initial value is “0” after power-up. Column 17 b7 OSDEN b6 BSEN b5 SHADOW b4 TRIC b3 BLANK b2 WENCLR 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. SHADOW - Activates the shadowing effect if this bit is set, otherwise the bordering is chosen. TRIC - Defines the driving state of output pins ROUT, GOUT, BOUT and FBKG when OSD is disabled. That is, while OSD is disabled, these 4 pins will drive LOW if this bit is set to “1”, otherwise these pins are in high-impedance state. The initial value is “0” after power-up. BLANK - Forces the FBKG pin output to HIGH while this bit is set to "1". WENCLR - Clears all WEN bits of window control registers when this bit is set to "1". The initial value is “0” after power-up. RAMCLR - Clears all ADDRESS bytes of display registers when this bit is set to "1". The initial value is “0” after power-up. FBKGC - Defines the output configuration for FBKG pin. When it is set to "0", the FBKG outputs during the display of characters or windows, otherwise, it outputs only during the display of characters. Column 18 TEST - =0 =1 B7 TEST b6 FBKGP b5 PWMCK b4 DWE b3 HSP b2 VSP b1 PWM1 b0 PWM0 ⇒ Normal mode. ⇒ Test mode, not allowed in applications. FBKGP - Selects the polarity of the output pin FBKG. = 1 ⇒Positive polarity FBKG output is selected. = 0 ⇒Negative polarity FBKG output is selected. The initial value is “1” after power-up. PWMCK - Selects the output options to the HTONE/PWMCK pin. = 0 ⇒? HTONE option is selected. = 1 ⇒? PWMCK option is selected with 50/50 duty cycle and is synchronous with the input HFLB. The frequency is selected by PWM1, PWM0 as shown in table 4. The initial value is “0” after power-up. DWE - Enables double width. When the bit is set to “1”, the display of the OSD menu can change to half resolution for double character width, and then the number of pixels of each line should be even. HSP - = 1 ⇒ Accepts positive polarity Hsync input. 10/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 = 0 ⇒ Accepts negative polarity Hsync input. = 1 ⇒ Accepts positive polarity Vsync input. = 0 ⇒ Accepts negative polarity Vsync input. VSP - PWM1, PWM0 - Selects the PWMCK output frequency. = (0, 0) ⇒ XIN frequency /8 = (0, 1) ⇒ XIN frequency /4 = (1, 0) ⇒ XIN frequency /2 = (1, 1) ⇒ XIN frequency /1 The initial value is 0, 0 after power-up. Notes : When XIN is not present, don't write data in any address. If data is written in any address, a malfunction may occur. TABLE 4. PWMCK Frequency and PWMDA Sampling Rate (PWM1, PWM0) PWMCK Freq. PWMDA sampling rate ( 0, 0 ) XIN frequency /8 XIN frequency /(8 * 256) ( 0, 1 ) XIN frequency /4 XIN frequency /(4 * 256) ( 1, 0 ) XIN frequency /2 XIN frequency /(2 * 256) ( 1 ,1 ) XIN frequency /1 XIN frequency /(1 * 256) 3.10 PWM D/A Converter There are 8 open-drain PWM D/A outputs (PWM0 to PWM7). The PWM D/A converter output pulse width is programmable by writing data to columns 19-26 registers of row 15 with 8-bit resolution to control the pulse width duration from 0/256 to 255/256. The sampling rate is selected by PWM1, PWM0 as shown in table 4. In applications, all open-drain output pins should be pulled up by external resistors to supply voltage (5V to 9V) for the desired output range. ROW 15 b7 b6 Column 19 | Column 26 b5 b4 b3 PWMDA0 | PWMDA7 b2 MSB b1 b0 LSB PWMDA0 - PWMDA7 - Defines the output pulse width of pins PWM0 to PWM7. 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 (R, G, B) to form the desired video outputs. 4.0 ABSOLUTE MAXIMUM RATINGS DC Supply Voltage(VDD,VDDA) Ground Voltage 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 11/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 5.0 OPERATING CONDITIONS DC Supply Voltage(VDD,VDDA) Operating Temperature +4.75 to +5.25 V 0 to +70 oC 6.0 ELECTRICAL CHARACTERISTICS (Under Operating Conditions) Symbol VIH Parameter Conditions(Notes) Min. Max. Unit Input High Voltage - 0.7 * VDD VDD+0.3 V 0.3 * VDD ( 0.2 * VDD for SSB pin ) VIL Input Low Voltage - VSS-0.3 VOH Output High Voltage IOH ≥ -24 mA VDD-0.8 - V VOL Output Low Voltage IOL ≤ 24 mA - 0.5 V (For all OD pins, pulled up by external 5 to 9V power supply) 5 9 V - 0.5 V V VODH Open Drain Output High Voltage VODL Open Drain Output Low Voltage ISB Standby Current Vin = VDD, Iload = 0uAl - 12 mA ICC Operating Current Pixel rate=96MHz Iload = 0uA - 20 mA 5 mA ≥ IDOL ( For all OD pins ) 7.0 SWITCHING CHARACTERISTIC (Under Operating Conditions) Symbol Parameter Min. Typ. Max. Unit 15 - 120 KHz fHFLB HFLB input frequency Tr Output rise time - - 5 ns Tf Output fall time - - 5 ns tBCSU SSB to SCK set-up time 200 - - ns tBCH SSB to SCK hold time 100 - - ns tDCSU SDA to SCK set-up time 200 - - ns tDCH SDA to SCK hold time 100 - - ns tSCKH SCK HIGH time 500 - - ns tSCKL SCK LOW time 500 - - ns tSU:STA START condition set-up time 500 - - ns tHD:STA START condition hold time 500 - - ns tSU:STO STOP condition set-up time 500 - - ns 12/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY Symbol MTV118 Parameter Min. Typ. Max. Unit 500 - - ns 6 ns tHD:STO STOP condition hold time tSETUP HFLB delay to rising edge of pixel clock 2 tHOLD minimum pulse width of HFLB 25 tpd propagation delay of output to pixel clock PIXin pixel clock input ns 6 10 ns 96 MHz 8.0 TIMING DIAGRAMS tSCKH SCK tSCKL SSB tBCSU tBCH SDA tDCSU tDCH FIGURE 7. Data Interface Timing (SPI) tSCKH SCK tSCKL tSU:STA tHD:STO SDA tHD:STA tDCSU tDCH tSU:STO FIGURE 8. Data Interface Timing (I 2C) PlXin R,G,B, FBKG HTONE tpd:: Propagation Delay to R,G,B, FBKG tpd and HTONE outputs HFLB t SETUP t HOLD FIGURE 9. Output and HFLB Timing to Pixel Clock 13/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 9.0 PACKAGE DIMENSION 9.1 16 PDIP 300Mil Unit:Mil R10Max (4X ) 312 +/-12 55 +/-20 R40 90 +/-20 350 +/-20 250 +/-4 10 65 +/-4 55 +/-4 310Max 75 +/-20 90 +/-20 750 +/-10 7 Typ 15 Max 35 +/-5 115 Min 100Ty p 18 +/2Typ 60 +/5Typ 15 Min 9.2 24 PDIP 300Mil Unit: Mil R10Max (4X) 312+/-12 80+/-20 R40 350+/-20 250+/-4 55+/-20 10 930+/-10 65+/-4 65+/-4 1245+/-10 7Ty p 15Max 35+/-5 115Min 15Min. 100Ty p 18+/2Typ 60+/5Typ 14/15 MTV118 Revision 2.0 01/01/1999 MYSON TECHNOLOGY MTV118 9.3 16-pin SOP 300Mil Unit: Mil 0.406 +/-0.013 0.295 +/-0.004 0.015x45o 0.406 +/-0.008 7o(4x) (4x) 0.091 0.016 +/-0.004 0.098 +/-0.006 0.028 +0.022 /-0.013 0.050 9.4 24-pin SOP 300Mil 15.0mm /+0.4 -0.1 24 1.85mm/+0.4 -0.15 13 7.9mm+/-0.4 0.1mm +0.2/-0.05 6.9mm 5.3mm +0.3/-0.1 1 12 0.45mm +/-0.1 0.5mm+/-0.2 0.2mm +0.1/-0.05 1.27mm 10.0 CHARACTER AND SYMBOL PATTERN Please see the attachment. Myson Technology, Inc. http://www.myson.com.tw Myson Technology USA, Inc. http://www.myson.com No. 2, Industry E. Rd. III, Science-Based Industrial Park, Hsinchu, Taiwan, 20111 Stevens Creek Blvd. #138 Cupertino, Ca. 95014, U.S.A. R. O. C. Tel: 886-3-5784866 Fax: 886-3-5785002 Tel:408-252-8788 FAX: 408-252-8789 [email protected] 15/15 MTV118 Revision 2.0 01/01/1999