MYSON TECHNOLOGY MTV004 On-Screen Display Shrink Version FEATURES • • • • • • • • • • • • • • • • On-chip phase lock loop circuitry for multi-sync operation. Horizontal input up to 100 KHz. 273-byte display registers to control full screen display. Full screen display consisting of 10 rows by 24 characters. 128 alphanumeric characters or graphic symbols built in character ROM. 12 x 16 dot matrix per character. Character by character color selection. 4 color selections in a total of 8 color combinations per row. 4-character size options available by doubling character height and/or width. Programmable positioning for display screen center. Character bordering and shadowing. Programmable vertical character height for multi-sync operation. Multi-level windowing effect. Half tone and fast blanking output. Compatible with both SPI bus and I2C interface through pin selection. 16-pin PDIP package. GENERAL DESCRIPTION MTV004 is designed for use in monitor applications to display the built-in characters or symbols onto the monitor screen. The display operation is enabled by transferring data and control information in the microcontroller to RAM through a serial data interface. It can execute the full screen display automatically as well as some specific functions such as character bordering, shadowing, double height, double width and color control, frame positioning, vertical display height, and windowing effect. BLOCK DIAGRAM SSB 6 12C(R,G,B)*4 8DATA DISPLAY REGISTERS (RAM) DAEN CWS CHS 2RAEN,CAEN 7 RAEN,CAEN 2 ARWDB ADDRESS BUS ADMINISTRATOR CHARACTER ROMS 9 DADDR 5 WADDR DHOR DVERT LP1/2 10 CH 6 CHS VERTD 6 5 HORD 5 VERTICAL CONTROL LOGIC HORIZONTAL CONTROL LOGIC 4 LP NROW 3 PHASE LOCK LOOP WACTIVE CCS1 CH 6 DVERT 2LD1/2 DHOR ARWDB 2 RP DATA 8 VCLK C(R,G,B)*4 12 WACTIVE CCS1 CCS0 NROW WINDOWS & FRAME CONTROL BSEN SHADOW 6VERTD 5HORD OSDENB WWR VFLB 4 VDDA LP 12-BIT SHIFT REGISTERS 2 16 VSS CRADDR CWS BSEN SHADOW LUMA BORDER VCLK HFLB CCS0 7 4 WWB SDA SERIAL DATA INTERFACE 8 WWG SCK 9 VDD 1 VSSA 15 14 COLOR ENCODER 13 12 VCO 11 ROUT GOUT BOUT FBKG HTONE This data sheet 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. MTV004 Revision 4.0 06/24/1999 1/9 MYSON TECHNOLOGY MTV004 1.0 CONNECTION DIAGRAM (16 pins PDIP 300 mil PACKAGE) VSSA 1 16 VSS VCO 2 15 ROUT RP 3 14 GOUT VDDA 4 13 BOUT MTV004 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 Analog Ground. 1 Voltage Control Oscillator. This pin is used to control the internal oscillator 2 frequency by DC voltage input from an external low pass filter. Bias Resistor. The bias resistor is used to regulate the bias current for the 3 internal oscillator to resonate at the specific dot frequency. Analog Power Supply. Positive 5 V DC supply for internal analog circuitry. 4 A 0.1uF decoupling capacitor should be connected across to VDDA and VSSA as close to the device as possible. Horizontal Input. This pin is used to input the horizontal synchronizing 5 signal. It is triggered by a negative edge and has an internal pull-up resistor. Serial Interface Enable. Used to enable the serial data and to select I2C or 6 SPI bus operation. If this pin is left floating, the I2C bus is enabled, otherwise the SPI bus is enabled. Serial Data Input. The external data transfers through this pin to the internal 7 display and control registers. It has an internal pull-up resistor. Serial Clock Input. Clock input pin used to synchronize transferring of data. 8 It has an internal pull-up resistor. Digital Power Supply. Positive 5 V DC supply for internal digital circuitry. A 9 0.1uF decoupling capacitor should be connected across to VDD and VSS as close to the device as possible. 10 Vertical Input. This pin is used to input the vertical synchronizing signal. It is negatively triggered and has an internal pull-up resistor. 11 Half Tone Output. This pin is used to attenuate external R,G,B amplifiers for a transparent windowing effect. 12 Fast Blanking Output. Used to cut off external R,G,B signals while the chip is displaying characters or windows. 13 Blue Color Output. Blue color video signal output. 14 Green Color Output. Green color video signal output. 15 Red Color Output. Red color video signal output. 16 Digital Ground. MTV004 Revision 4.0 06/24/1999 2/9 MYSON TECHNOLOGY MTV004 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 MTV004 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 MTV004. 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 that 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. Format (c) should be used for massive data updating or a full-screen data change to increase MTV004 Revision 4.0 06/24/1999 3/9 MYSON TECHNOLOGY MTV004 transmission efficiency. Row and column addresses are incremented automatically when format (c) is applied. Furthermore, the locations in columns 24-29 should be filled with dummy data. The MSB (b7) bit is used to distinguish row and column addresses when transferring data from the external controller. The b6 bit is used to differentiate column addresses for formats (a), (b) and (c), respectively. The address configuration is shown in Table 1. Table 1. Address Configuration in Interface Address Row Columnab Columnc b7 1 0 0 b6 x 0 1 b5 x x x b4 x C4 C4 b3 R3 C3 C3 b2 R2 C2 C2 b1 R1 C1 C1 b0 R0 C0 C0 Format a,b,c a,b c 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 according to the state diagram shown in Figure 4. 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 1, X X X, 0, 1 DAc DAab Figure 4. Format State Diagram 3.2 Address Bus Administrator The administrator manages bus address arbitration of display registers (RAM) during external data writing or internal display control. The external data writing through the serial data interface to RAM 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) and the full-screen display control are applied. 3.3 Vertical Control Logic The vertical logic generates different vertical display sizes for most display standards in current monitors. The vertical display size is calculated using the information of the double character height bit (CHS) and vertical display height control registers (CH5-CH0). The algorithm of the repeating character line display is shown in Tables 2 and 3. The programmable vertical size range is 160 lines to maximum 1260 lines. MTV004 Revision 4.0 06/24/1999 4/9 MYSON TECHNOLOGY MTV004 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 falling edge of VFLB, is calculated using the following equation: Vertical delay time = (VERTD * 4 + 1) * H H = 1 horizontal line display time Table 2. Repeat Line Character Weight CH5 - CH0 CH5,CH4=11 CH5,CH4=10 CH5,CH4=0x CH3=1 CH2=1 CH1=1 CH0=1 Repeat Line Weight (+16)*3 (+16)*2 +16 +8 +4 +2 +1 Table 3. Repeat Line Character Number Repeat Line Weight +1 +2 +4 +8 +16 0 v 1 v v 2 v v 3 v v 4 v v 5 v v 6 v v Repeat Line # 7 8 9 v v v v v v 10 11 12 13 14 15 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 Control Logic The horizontal control logic is used to generate control timing for the horizontal display based on the double character width bit (CWS), horizontal positioning register (HORD) and HFLB input. A horizontal display line consists of 384 dots, which include 288 dots for 24 display characters and 96 dots for the remaining blank region. The horizontal delay starting from the HFLB falling edge is calculated using the following equation: horizontal delay time = (HORD * 6 + 61)* P - phase error detection pulse width P= 1 pixel display time = 1 horizontal display time / 384 3.5 Phase Lock Loop (PLL) On-chip PLL generates system clock timing (VCLK) by tracking the input HFLB. The frequency of VCLK is determined using the following equation: VCLK = HFLB Freq.* 384 , The frequency ranges from 3.84MHz to 38.4MHz. See Table 4. Table 4. Frequency Range HFLB 10KHz to 100KHz VCLK 3.84MHz to 38.4MHz MTV004 Revision 4.0 06/24/1999 5/9 MYSON TECHNOLOGY MTV004 In addition, when HFLB input is not present in MTV004, the PLL will generate a specific system clock (approximately 2.5MHz) by a built-in oscillator to ensure data integrity. 3.6 Display Registers The internal RAM contains display and row control registers. The display registers have 240 locations, which are allocated between row 0/column 0 and row 9/column 23 as shown in Figure 4. Each display register has a color selection bit and its corresponding character address in ROM. The row control register is allocated between column 30 and column 31 for row 0 to row 9. It is used to set character size and color attribute of each respective row. If double width character is chosen, only even column characters will be displayed on-screen and the odd column characters would be hidden. COLUMN # 23 24 ROW # 0 29 30 RESERVED ROW CTRL REG 0 1 DISPLAY REGISTERS 8 9 ROW 10 0 2 WINDOW1 COLUMN # 5 6 3 WINDOW2 8 WINDOW3 9 12 FRAME CRTL REG Figure 4. Memory Map -Register Descriptions (i) Display Register b7 CCS0 b6 ← b5 b4 b3 CRADDR b2 b1 b0 → b7 CCS0 - This bit is used to select character color. Color 1 will be selected if CCS0 is set to "0", otherwise color 2 is selected. Colors 1 and 2 are defined in the respective row control register. b6 - 0 CRADDR - Defines the ROM character address. (ii) Row Control Registers COLN 30 b7 R1 b6 G1 b5 B1 b4 R2 b3 G2 b2 B2 b1 CHS b0 CWS 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 31 b7 R3 b6 G3 b5 B3 b4 R4 b3 G4 b2 B4 b7 - 2 Colors 3 and 4 are defined by R3, G3, B3 and R4, G4, B4, respectively. When a window overlaps with the character and the corresponding CCS1 is set to "1", colors 3 and 4 should be chosen. MTV004 Revision 4.0 06/24/1999 6/9 MYSON TECHNOLOGY MTV004 3.7 Character ROM The character ROM contains 128 built-in characters and symbols. Each character and symbol consists of 12x16 matrix dots. The detailed pattern structures for each character and symbols are shown in Section 10.0. All alphanumeric characters are specially designed by leaving a blank dot space on 4 sides, and this blank space is occupied by the blackedge dots if the bordering or shadowing effect is activated. 3.8 12-Bit Shift Register There are 2 shift registers included in the design which can shift out 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 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-8 on row 10 of the memory map, as shown in Figure 4. Window 1 has the highest priority and window 3 has the lowest when 2 windows are overlapping. More detailed information is described below: - Register Descriptions (i) Window Control Registers ROW 10 Column 0,3 OR 6 Column 1,4 OR 7 Column 2,5 OR 8 b7 b6 b5 ROW START ADDR MSB b7 b6 b5 b4 COL START ADDR b4 b3 LSB MSB b3 MSB b2 b1 ROW END ADDR b0 LSB b2 WEN b1 CCS1 b0 - b2 R b1 G b0 B LSB b7 b6 b5 b4 COL END ADDR b3 MSB 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. CCS1 - Extends the character color selection to 4 colors. (ii) Frame Control Registers ROW 10 Column 9 b7 - b6 - b5 b4 b3 b2 VERTD MSB b1 b0 LSB VERTD - Specifies the starting position for vertical display. There is a total of 64 steps and each step is incremented by 4 horizontal display lines. The initial value is 4 after power-up. MTV004 Revision 4.0 06/24/1999 7/9 MYSON TECHNOLOGY Column10 b7 - b6 - b5 - b4 b3 MTV004 b2 HORD b1 b0 MSB LSB HORD - Defines the starting position for horizontal display. There is a total of 32 steps and each step is incremented by 6 dots. The initial value is 15 after power-up. Column11 b7 - b6 - b5 CH5 b4 CH4 b3 CH3 b2 CH2 b1 CH1 b0 CH0 CH5-CH0 - Defines the character vertical height. The height is programmable from 16 to 63 lines. The character vertical height is at least 16 lines if the contents of CH5-CH0 are less than 16. For example, when CH5~CH0 contents equal 2, the character vertical height is regarded as equal to 18 lines. See Tables 2 and 3 for a detailed description of this operation. Column12 b7 OSDEN b6 BSEN b5 SHADOW b4 - b3 - b2 - b1 - b0 FBKGC OSDEN - Activates OSD operation when this bit is set to 1. BSEN - Enables the bordering and shadowing effect. SHADOW - Activates the shadowing effect if this bit is set, otherwise the bordering is chosen. 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. 3.10 Color Encoder The decoder generates video output to ROUT, GOUT and BOUT by integrating window color, border blacking, luminance output and color selection output (CCS0, CCS1) to form 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 6.0 ELECTRICAL CHARACTERISTICS (Under Operating Conditions) Symbol VIH Parameter Input High Voltage Conditions(Notes) - Min. 3.5 Unit V VDD-0.8 - Max. VDD+0.3 1.5 (1.0 for SSB pin) 0.5 VIL Input Low Voltage - VSS-0.3 VOH VOL Output High Voltage Output Low Voltage ICC Supply Current IOH < -5 mA IOL < 5 mA Vin = VDD, Iload = 0uA - 25 mA V V V MTV004 Revision 4.0 06/24/1999 8/9 MYSON TECHNOLOGY MTV004 7.0 SWITCHING CHARACTERISTICS (Under Operating Conditions) Symbol f HFLB Tr Tf tBCSU tBCH tDCSU tDCH tSCKH tSCKL 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 Min. 10 200 100 200 100 200 200 Typ. - Max. 100 10 10 - Unit KHz ns ns ns ns ns ns ns ns 8.0 TIMING DIAGRAMS tSCK H SCK tSCKL SSB tBCS tBC U H SDA tDCS tDC U H Figure 5. Data Interface Timing 9.0 PACKAGE DIMENSION 16 PIN PDIP Unit: mil R10Max (4X) 312 +/-12 MTV 004 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 10.0 CHARACTERS AND SYMBOLS PATTERN Please see the attachment. MTV004 Revision 4.0 06/24/1999 9/9