Weltrend Semiconductor, Inc. WT62P2 Digital Monitor Controller with USB Function (Flash Memory Type) Preliminary Data Sheet REV. 1.04 Sep. 20, 2001 The information in this document is subject to change without notice. Weltrend Semiconductor, Inc. All Rights Reserved. 2F, No. 24, Industry E. 9th RD., Science-Based Industrial Park, Hsin-Chu, Taiwan TEL:886-3-5780241 FAX:886-3-5794278.5770419 Email:[email protected] WT62P2 v1.04 USB Monitor Controller GENERAL DESCRIPTION The WT62P2 is a microcontroller for digital controlled monitor with Universal Serial Bus (USB) interface. It contains an 8-bit CPU, 60K bytes Flash memory, 1024 bytes RAM, 256 bits bit-addressable RAM, 14 PWMs, parallel I/Os, SYNC signal processor, timer, DDC1/2B interface, master/slave I2C interface, low speed USB device module, 6-bit A/D converter and watch-dog timer. FEATURES • • • • • • • • • • • • • • • • • 8-bit 6502 compatible CPU with 6MHz operating frequency 60K bytes flash memory, 1024 bytes SRAM, 256 bits bit-addressable SRAM 12MHz crystal oscillator 14 channels 8-bit PWM outputs Sync signal processor with H+V separation, H/V frequency counter, H/V polarity detection/control and clamp pulse output Six free-running sync signal outputs (Horizontal frequency up to 106KHz 85Hz@1600x1200) Self-test pattern DDC1/2B module for EDID1.3, EDID2.0 and Enhance EDID Fast mode master/slave I2C interface (up to 400KHz) Embedded USB function with endpoint 0 and endpoint 1 Built-in 3.3V regulator for USB transceiver Watch-dog timer Maximum 28 programmable I/O pins One 8-bit programmable timer 6-bit A/D converter with 4 selectable inputs One external interrupt request input Low VDD reset ORDERING INFORMATION Package Type Part Number 42-pin PDIP WT62P2-N42 42-pin Shrink PDIP WT62P2-K42 40-pin PDIP WT62P2-N40 44-pin SOP WT62P2-S44 44-pin PLCC WT62P2-L44 Weltrend Semiconductor, Inc. Page 2 WT62P2 v1.04 USB Monitor Controller PIN ASSIGNMENT AND PACKAGE TYPE 42-pin PDIP 42-pin SPDIP 40-pin PDIP D+ 1 42 D- PWM2 2 41 VIN PWM2 1 40 VIN PWM1 3 40 HIN PWM1 2 39 HIN PWM0 4 39 PWM3 PWM0 3 38 PWM3 RESET/3V3 5 38 PD5/PWM4 RESET/3V3 4 37 PD5/PWM4 VDD 6 37 PD4/PWM5 VDD 5 36 PD4/PWM5 GND 7 36 PD3/PWM6 GND 6 35 PD3/PWM6 OSCO 8 35 PD2/PWM7 OSCO 7 34 PD2/PWM7 OSCI 9 34 PD1/HOUT OSCI 8 33 PD1/HOUT WT62P2-N42 33 PD0/VOUT PB5/SDA2 9 32 PD0/VOUT WT62P2-K42 32 PA7/PWM13/CLAMP PB4/SCL2 10 31 PA7/PWM13/CLAMP PB5/SDA2 10 PB4/SCL2 11 PB3/PAT 12 31 PA6/PWM12 PB3/PAT 11 30 PA6/PWM12 PB2 13 30 PA5/PWM11 PB2 12 29 PA5/PWM11 PB1/HFI 14 29 PA4/PWM10 PB1/HFI 13 28 PA4/PWM10 PB0/HFO 15 28 PA3/PWM9 PB0/HFO 14 27 PA3/PWM9 IRQ 16 27 PA2/PWM8 IRQ 15 26 PA2/PWM8 PC7/SOGIN 17 26 PA1/SCL1 PC7/SOGIN 16 25 PA1/SCL1 PC6 18 25 PA0/SDA1 PC6 17 24 PA0/SDA1 PC5 19 24 PC0/AD0 PC5 18 23 PC0/AD0 PC4 20 23 PC1/AD1 PC4 19 22 PC1/AD1 PC3/AD3 21 22 PC2/AD2 PC3/AD3 20 21 PC2/AD2 WT62P2-N40 44-pin SOP RESET/3V3 PWM0 PWM1 PWM2 D+ D- 5 4 3 2 1 44 44-pin PLCC HIN PWM0 4 41 PWM3 RESET/3V3 5 40 PD5/PWM4 VDD 7 39 PD5/PWM4 VDD 6 39 PD4/PWM5 GND 8 38 PD4/PWM5 7 38 OSCO 9 37 PD3/PWM6 GND 8 37 PD3/PWM6 OSCI 10 36 PD2/PWM7 OSCO 9 36 PD2/PWM7 PB5/SDA2 11 35 PD1/HOUT OSCI 10 35 PD1/HOUT PB4/SCL2 12 34 PD0/VOUT PB5/SDA2 11 34 PD0/VOUT PB3/PAT 13 33 PA7/PWM13/CLAMP PB4/SCL2 12 33 PA7/PWM13/CLAMP PB2 14 32 PA6/PWM12 PB3/PAT 13 32 PA6/PWM12 PB1/HFI 15 31 PA5/PWM11 PB2 14 31 PA5/PWM11 PB0/HFO 16 30 PA4/PWM10 PB1/HFI 15 30 PA4/PWM10 IRQ 17 29 PA3/PWM9 PB0/HFO 16 29 PA3/PWM9 Weltrend Semiconductor, Inc. Page 3 26 27 28 PA1/SCL1 PA2/PWM8 PC2/AD2 PA0/SDA1 23 25 22 PC0/AD0 PC1/AD1 PC3/AD3 24 24 PC1/AD1 21 23 PC0/AD0 PC4 PC2/AD2 25 22 20 PC3/AD3 PA0/SDA1 PC5 21 26 PC4 19 20 PA1/SCL1 PC6 PC5 PA2/PWM8 27 19 28 18 18 17 PC6 IRQ PC7/SOGIN WT62P2-L44 PC7/SOGIN WT62P2-S44 PWM3 VIN 42 HIN 43 3 40 2 PWM1 VIN PWM2 41 D- 42 44 43 1 6 D+ WT62P2 v1.04 USB Monitor Controller PIN DESCRIPTION Pin No. L44 S44 42 Pin Name I/O Description USB D+ signal. PWM2 output (10V open-drain). PWM1 output (5V open-drain). PWM0 output (5V open-drain). Reset input or +3.3V regulator output for USB transceiver power supply. No Connection. +5V power supply. No Connection. Ground. 12MHz oscillator output. 12MHz oscillator input. Port B5 or I2C interface data line. Port B4 or I2C interface clock line. Port B3 or test pattern output Port B2. Port B1 or half frequency divider input. Port B0 or half frequency divider output. Interrupt request input. A low level on this can generate interrupt. Port C7 or Sync on Green input. Port C6. Port C5. Port C4. Port C3 or ADC input 3. Port C2 or ADC input 2. Port C1 or ADC input 1. Port C0 or ADC input 0. Port A0 or DDC interface SDA pin. Port A1 or DDC interface SCL pin. Port A2 or PWM8 output. Port A3 or PWM9 output. Port A4 or PWM10 output. Port A5 or PWM11 output. Port A6 or PWM12 output. Port A7 or PWM13 output or clamp pulse output. 40 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 D+ PWM2 PWM1 PWM0 /RESET/3V3 I/O O O O I 6 7 8 9 10 11 12 13 14 15 16 17 6 7 8 9 10 11 12 13 14 15 16 17 6 7 8 9 10 11 12 13 14 15 16 5 6 7 8 9 10 11 12 13 14 15 NC VDD NC GND OSCO OSCI PB5/ SDA2 PB4/ SCL2 PB3/PAT PB2 PB1/HFI PB0/HFO /IRQ I/O I I/O I/O I/O I/O I/O I/O I 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 6 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 34 35 36 37 38 39 40 41 34 35 36 37 38 39 40 41 42 33 34 35 36 37 38 39 40 32 33 34 35 36 37 38 39 PC7/SOGIN PC6 PC5 PC4 PC3/AD3 PC2/AD2 PC1/AD1 PC0/AD0 PA0/SDA1 PA1/SCL1 PA2/PWM8 PA3/PWM9 PA4/PWM10 PA5/PWM11 PA6/PWM12 PA7/PWM13/ CLAMP PD0/VOUT PD1/HOUT PD2/PWM7 PD3/PWM6 NC PD4/PWM5 PD5/PWM4 PWM3 HIN I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Port D0 or Vsync output. Port D1 or Hsync output. Port D2 or PWM7 output. Port D3 or PWM6 output. No Connection. I/O Port D4 or PWM5 output. I/O Port D5 or PWM4 output. I/O PWM3 output (10V open-drain). I Hsync Input. Weltrend Semiconductor, Inc. Page 4 WT62P2 v1.04 USB Monitor Controller 42 43 44 43 44 41 42 40 VIN - NC - D- I Vsync input. No Connection. I/O USB D- signal. FUNCTIONAL DESCRIPTION CPU 8-bit 6502 compatible CPU with 16-bit address bus and 8-bit data bus operates at 6MHz. The non-maskable interrupt (/NMI) of 6502 is modified to be maskable and is defined as INT0 with higher priority. The interrupt request (/IRQ) of 6502 is defined as INT1 with lower priority. Please refer the 6502 reference menu for more detail. RAM The 1024 bytes SRAM include : 128 bytes SRAM are from $0080H to $00FFH 256 bytes SRAM are from $0100H to $01FFH 256 bytes SRAM are from $0200H to $02FFH 256 bytes SRAM are from $0300H to $03FFH 128 bytes SRAM are from $0400H to $047FH The 256 bits bit-addressable SRAM are from $0500H to $05FFH Flash Memory 60K bytes flash memory for program. Address is located from $1000h to $FFFFh. The following addresses are reserved for special purpose : $FFFAh (low byte) and $FFFBh (high byte) : INT0 interrupt vector. $FFFCh (low byte) and $FFFDh (high byte) : program reset interrupt vector. $FFFEh (low byte) and $FFFFh (high byte) : INT1 interrupt vector. Weltrend Semiconductor, Inc. Page 5