Weltrend Semiconductor, Inc.
WT6148/WT6160
Digital Monitor Controller
(ROM Type)
Preliminary Data Sheet
REV. 1.02
Sep. 4, 02
The information in this document is subject to change without notice.
©
Weltrend Semiconductor, Inc. All Rights Reserved.
WT6148/WT6160
v1.02
Digital Monitor Controller
GENERAL DESCRIPTION
The WT6148/ WT6160 is a microcontroller for digital controlled monitor. It contains an 8-bit CPU, 48K
/60K bytes ROM, 1056 bytes RAM, 14 PWMs, parallel I/Os, SYNC signal processor, timer, DDC1/2B
interface, master/slave I
2
C interface, 6-bit A/D converter and watch-dog timer.
FEATURES
•
8-bit 6502 compatible CPU with 6MHz operating frequency
•
WT6148 : 48K bytes ROM,
WT6160 : 60K bytes ROM,
,1024 bytes SRAM+32 bytes 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 I
2
C interface (up to 400KHz)
•
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 V
DD
reset
ORDERING INFORMATION
Package Type
42-pin PDIP
42-pin Shrink PDIP
40-pin PDIP
44-pin SOP
44-pin PLCC
Part Number
WT6148/ WT6160-N42
WT6148/ WT6160-K42
WT6148/ WT6160-N40
WT6148/ WT6160-S44
WT6148/ WT6160-L44
Weltrend Semiconductor, Inc.
Page 2
WT6148/WT6160
v1.02
Digital Monitor Controller
PIN ASSIGNMENT AND PACKAGE TYPE
42-pin SPDIP
1
PWM2
PWM1
PWM0
RESET/3V3
VDD
GND
OSCO
OSCI
PB5/SDA2
PB4/SCL2
PB3/PAT
PB2
PB1/HFI
PB0/HFO
IRQ
PC7/SOGIN
PC6
PC5
PC4
PC3/AD3
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
38
37
36
35
34
33
VIN
HIN
PWM3
PD5/PWM4
PD4/PWM5
PD3/PWM6
PD2/PWM7
PD1/HOUT
PD0/VOUT
PA7/PWM13/CLAMP
PA6/PWM12
PA5/PWM11
PA4/PWM10
PA3/PWM9
PA2/PWM8
PA1/SCL1
PA0/SDA1
PC0/AD0
PC1/AD1
PC2/AD2
PWM2
PWM1
PWM0
RESET/3V3
VDD
GND
OSCO
OSCI
PB5/SDA2
PB4/SCL2
PB3/PAT
PB2
PB1/HFI
PB0/HFO
IRQ
PC7/SOGIN
PC6
PC5
PC4
PC3/AD3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
VIN
HIN
PWM3
PD5/PWM4
PD4/PWM5
PD3/PWM6
PD2/PWM7
PD1/HOUT
PD0/VOUT
PA7/PWM13/CLAMP
PA6/PWM12
PA5/PWM11
PA4/PWM10
PA3/PWM9
PA2/PWM8
PA1/SCL1
PA0/SDA1
PC0/AD0
PC1/AD1
PC2/AD2
40-pin PDIP
WT6148-K42
WT6160-K42
32
31
30
29
28
27
26
25
24
23
22
WT6148-N40
WT6160-N40
31
30
29
28
27
26
25
24
23
22
21
RESET/3V3
44-pin SOP
1
PWM2
PWM1
PWM0
RESET/3V3
VDD
2
3
4
5
6
7
GND
OSCO
OSCI
PB5/SDA2
PB4/SCL2
PB3/PAT
PB2
PB1/HFI
PB0/HFO
IRQ
PC7/SOGIN
PC6
PC5
PC4
PC3/AD3
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
44
43
42
41
40
39
38
37
36
35
34
PD3/PWM6
PD2/PWM7
PD1/HOUT
PD0/VOUT
PA7/PWM13/CLAMP
PA6/PWM12
PA5/PWM11
PA4/PWM10
PA3/PWM9
PA2/PWM8
VIN
HIN
6
PWM3
PD5/PWM4
PD4/PWM5
VDD
GND
OSCO
OSCI
PB5/SDA2
PB4/SCL2
PB3/PAT
PB2
PB1/HFI
PB0/HFO
IRQ
7
8
9
10
11
12
13
14
15
16
17
18
44-pin PLCC
PWM0
PWM1
PWM2
PWM3
40
39
38
37
36
35
HIN
41
VIN
44
43
42
1
5
4
3
2
PD5/PWM4
PD4/PWM5
PD3/PWM6
PD2/PWM7
PD1/HOUT
PD0/VOUT
PA7/PWM13/CLAMP
PA6/PWM12
PA5/PWM11
PA4/PWM10
PA3/PWM9
WT6148-S44
WT6160-S44
WT6148-L44
WT6160-L44
34
33
32
31
30
29
33
32
31
30
29
28
27
26
25
24
23
19
20
21
22
23
24
25
26
27
PA1/SCL1
PC6
PC5
PC4
PC3/AD3
PC2/AD2
PC1/AD1
PC0/AD0
PA0/SDA1
PA1/SCL1
PA0/SDA1
PC0/AD0
PC1/AD1
PC2/AD2
Weltrend Semiconductor, Inc.
Page 3
PC7/SOGIN
PA2/PWM8
28
WT6148/WT6160
v1.02
Digital Monitor Controller
PIN DESCRIPTION
Pin No.
L44 S44 42
1
2
3
4
5
6
7
-
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
-
38
39
40
41
42
1
2
3
4
5
-
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
1
2
3
4
5
-
6
-
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
-
37
38
39
40
41
Pin Name
40
-
1
2
3
4
-
5
-
6
7
8
9
10
11
12
13
14
15
6
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
-
36
37
38
39
40
NC
PWM2
PWM1
PWM0
/RESET
NC
VDD
NC
GND
OSCO
OSCI
PB5/ SDA2
PB4/ SCL2
PB3/PAT
PB2
PB1/HFI
PB0/HFO
/IRQ
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
VIN
O
O
O
I
No Connection.
PWM2 output (10V open-drain).
PWM1 output (5V open-drain).
PWM0 output (5V open-drain).
Reset input
No Connection.
+5V power supply.
No Connection.
Ground.
12MHz oscillator output.
12MHz oscillator input.
Port B5 or I
2
C interface data line.
Port B4 or I
2
C 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.
I/O
Description
I/O
I
I/O
I/O
I/O
I/O
I/O
I/O
I
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.
I Vsync input.
Weltrend Semiconductor, Inc.
Page 4
WT6148/WT6160
v1.02
Digital Monitor Controller
43
44
-
44
-
42
-
-
NC
NC
No Connection.
No Connection.
FUNCTIONAL DESCRIPTION
CPU
8-bit 6502 compatible CPU operates at 6MHz. Address bus is 16-bit and data bus is 8-bit.
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 32 bytes SRAM bit addressible are from $0500H to $05FFH
ROM
For WT6148, ROM address is located from $4000h to $FFFFh.
For WT6160, ROM 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