The WT6014 is a member of WT60XX microcontroller family. It is specially designed for digital
controlled multi-sync monitor. It contains 8-bit CPU, 4K bytes ROM, 128 bytes RAM, 14 PWMs,
parallel I/O, SYNC processor, timer, DDC interface (slave mode I2C interface with DDC1), and
watch-dog timer.
FEATURES
* 8-bit 6502 compatible CPU, 4MHz operating frequency
* 4096 bytes ROM, 128 bytes SRAM
* 8MHz crystal oscillator
* 14 channels 8-bit/62.5kHz PWM outputs (8 open drain outputs & 6 CMOS outputs)
* Sync signal processor with sync separation, frequency calculation, H/V polarity detection control
* DDC interface supports VESA DDC1/DDC2B standard
* Watch-dog timer (0.524 second)
* Maximum 22 programmable I/O pins
* One 8-bit programmable timer
* One external interrupt request
* Built-in low VDD voltage reset
* Single +5V power supply
D/A converter 2. Open-drain output. External applied voltage can up to 10V.
D/A converter 1. Open-drain output. External applied voltage can up to 10V.
D/A converter 0. Open-drain output. External applied voltage can up to 10V.
Reset. Active low. Schmitt trigger input, Internal pull high.
Power supply (+5V).
Ground (0V).
Oscillator Output. Connects a 8MHz crystal.
Oscillator Input. Connects a 8MHz crystal.
I/O Port B5. When it is an input pin, it has an internal pull-up resistor. When it is
an output pin, the sink current is 5mA and the source current is 5mA.
I/O Port B4. Same as PB5.
I/O Port B3. Same as PB5.
I/O Port B2. Same as PB5.
I/O Port B1. Same as PB5.
I/O Port B0. Same as PB5.
Interrupt Request . It has an internal pull high resistor.
I/O Port C7. When it is an input pin, it has an internal pull-up resistor. When it is
an output pin, the sink current is 10mA and the source current is 5mA.
I/O Port C6. Same as PC7.
I/O Port C5. Same as PC7.
I/O Port C4. Same as PC7.
I/O Port C3. Same as PC7.
I/O Port C2. Same as PC7.
I/O Port C1. Same as PC7.
I/O Port C0. Same as PC7.
DDC serial data.
DDC serial clock.
I/O Port A0 or D/A converter 8. This pin can be the output of D/A converter 8
(source/sink = 5mA) or an I/O pin (source = -100uA, sink = 5mA).
I/O Port A1 or D/A converter 9. Same as PA0/DA8.
I/O Port A2 or D/A converter 10. Same as PA0/DA8.
I/O Port A3 or D/A converter 11. Same as PA0/DA8.
I/O Port A4 or D/A converter 12. Same as PA0/DA8.
I/O Port A5 or D/A converter 13. Same as PA0/DA8.
I/O Port A6 / VSYNC OUT. This pin can be the output of VSYNC or an I/O pin.
When as an I/O pin, it is same as PA0.
I/O Port A7 / HSYNC OUT. This pin can be the output of HSYNC or an I/O pin.
When as an I/O pin, it is same as PA0.
D/A converter 7. Open-drain output. External applied voltage can up to 10V.
D/A converter 6. Open-drain output. External applied voltage can up to 10V.
D/A converter 5. Open-drain output. External applied voltage can up to 10V.
D/A converter 4. Open-drain output. External applied voltage can up to 10V.
D/A converter 3. Open-drain output. External applied voltage can up to 10V.
HSYNC input. Schmitt trigger input.
VSYNC input. Schmitt trigger input.
WT6014
Ver. 1.21 Jul-31-1998
Weltrend Semiconductor, Inc.
2
Page 3
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
FUNCTIONAL DESCRIPTION
CPU
The CPU core is 6502 compatible, operating frequency is 4MHz. Address bus is 16-bit and data bus is
8-bit. the non-maskable interrupt (/NMI) of 6502 is changed to maskable interrupt and is defined as
the INT0. The interrupt request (/IRQ) of 6502 is defined as the INT1.
The initial stack pointer is 00FFH, because page 1 and page 0 are mapped to same area.
Please refer the 6502 reference menu for more detail.
ROM
4096 bytes maskable ROM is provided for program codes.
Address is located from F000H 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 vector.
FFFEH (low byte) and FFFFH (high byte) : INT1 interrupt vector.
RAM
Built-in 128 bytes SRAM, address is located from 0080H to 00FFH
:
:
:
:
:
:
:
:
Low VDD Voltage Reset
0000H
REGISTERS
001CH
001DH
Reserved
007FH
0080H
RAM
00FFH
0100H
Page 1 mapped to Page 0
01FFH
0200H
Reserved
EFFFH
F000H
ROM
FFFFH
A VDD voltage detector is built inside the chip. When VDD is below 4.0 volts, the whole chip will be
reset just like power-on-reset.
Note that the 4.0 volts varies with temperature and process. Please refer the electrical characteristics.
Weltrend Semiconductor, Inc.
3
Page 4
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
PWM D/A Converter
The WT6014 provides 14 PWM D/A converters. DA0 to DA7 are open-drain outputs and external
applied voltage on these pins can be up to 10 volts. DA8 to DA13 are 5 volts push-pull CMOS outputs
and are shared with I/O Port PA0 to PA5. All D/A converters are 62.5kHz frequency with 8-bit
resolution. Each D/A converter is controlled by the corresponding register (REG#00H to REG#0DH),
the duty cycle can be programmed from 1/256 (data = 01H) to 255/256 (data = FFH).
Duty cycle = 1/256
62.5ns
Duty cycle = 2/256
125ns
62.5ns
Duty cycle = 255/256
1/62.5kHz=16us
To program the PWM D/A converters, write the corresponding registers ( REG#00H to REG#0DH).
** Do not write 00H to the PWM registers. This will cause unstable
output on the corresponding pin.
Weltrend Semiconductor, Inc.
4
Page 5
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
I/O Ports
Port_A :
Pin PA0/DA8 - general purpose I/O shared with DA8 output.
Pin PA1/DA9 - general purpose I/O shared with DA9 output.
Pin PA2/DA10 - general purpose I/O shared with DA10 output.
Pin PA3/DA11 - general purpose I/O shared with DA11 output.
Pin PA4/DA12 - general purpose I/O shared with DA12 output.
Pin PA5/DA13 - general purpose I/O shared with DA13 output.
Pin PA6/VSO - general purpose I/O shared with VSYNC output.
Pin PA7/HSO - general purpose I/O shared with HSYNC output.
Port_A is controlled by REG#10H & REG#11H. In REG#10H, each corresponding bit enables
HSYNC output, VSYNC output or D/A converter output when it is "1". If the corresponding bit is "0",
the output level is decided by REG#11H. In REG#11H, if the I/O corresponding bit (PAn) is "0", the
output is low level (IOL=5mA). If PAn bit is "1", the output is high level (IOH= -100uA) and can be
used as an input.
EHOEnable PA7 as HSYNC output.PA7 as general purpose I/O.
EVOEnable PA6 as VSYNC output.PA6 as general purpose I/O.
EDA13Enable PA5 as DA13 output.PA5 as general purpose I/O.
EDA12Enable PA4 as DA12 output.PA4 as general purpose I/O.
EDA11Enable PA3 as DA11 output.PA3 as general purpose I/O.
EDA10Enable PA2 as DA10 output.PA2 as general purpose I/O.
EDA9Enable PA1 as DA9 output.PA1 as general purpose I/O.
EDA8Enable PA0 as DA8 output.PA0 as general purpose I/O.
* If the program wants to force VSYNC output (VSO pin) in low state, write "0" to PA6 bit first, then
write "0" to EVO bit. This is used to prevent high frequency output on VSO pin when the VSYNC
frequency is increased to read EDID data in DDC1 mode.
EDAx
DAx
PAnW
5mA
100uA
Pin PAn
5mA
PAnR
Weltrend Semiconductor, Inc.
5
Page 6
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
Port_B :
Pin PB0 to PB5 - general purpose I/O pins.
The source/sink current of port_B is 5mA when as an output. When it is input, an internal pull
* If program wants to read current status on the I/O pins (any I/O port), do not set output enable bit to
“0”. Because the registers for reading I/O are always indicating the current state on the I/O pins, set
output enable bit to “0” will change the level on the I/O pin. Please reference the I/O pin structure.
PCnOE
PCnW
PCnR
5mA
Pin PC0 to PC7
10mA
100uA
Structure of I/O Port C
Weltrend Semiconductor, Inc.
7
Page 8
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
SYNC Processor
The SYNC processor can : (1) calculate HSYNC and VSYNC frequencies; (2) detect polarities of
HSYNC and VSYNC inputs; (3) control the output polarities of HSO and VSO pins.
Frequency Calculation
Horizontal frequency and vertical frequencies calculation are done by using one 10-bit up counter.
After power is on, the SYNC processor calculates the vertical frequency first (H/V bit ="0"). A
31.25KHz clock counts the time interval between two VSYNC pulses, then sets the FRDY bit and
generates an INT1 interrupt (if IEN_S bit is "1"). The software can either use interrupt or polling the
FRDY bit to read the correct vertical frequency. After reading the REG#16H, the FRDY bit is cleared
to "0", counter is reset and H/V bit is set. The SYNC processor starts to count horizontal frequency.
The horizontal frequency calculation is done by counting the HSYNC pulses in 8.192 ms. Like the
vertical frequency, the horizontal frequency can be read when the FRDY bit is set or INT1 occurs.
After reading the REG#16H, the FRDY, INT_S and H/V bits are cleared. The SYNC processor starts
to calculate the vertical frequency again, and so on.
The relationships between counter value and frequency are :
Hfreq = (counter value x 122.07) Hz
Vfreq = ( 31250 / counter value ) Hz
The frequency range :
Hfreq range : 122.07 Hz to 124.8 kHz ; Resolution : 122.07Hz
Vfreq range : 30.5 Hz to 31.25 kHz
If counter overflowed, the OVF1 bit will be set to "1". The counter keeps on counting until it
overflowed again. The OVF2 bit and FRDY bit will be set when counter overflowed twice. This is
designed for finding the vertical frequency bellows 15.25Hz. The program should check REG#17H
before reading REG#16H.
Polarity Detect/Control
The polarities of HSYNC and VSYNC are automatically detected and are shown in the H_POL
and V_POL bits. The polarities of HSO and VSO are controlled by the HOP and VOP bits. For
example, set HOP bit to “1”, the HSO pin always outputs positive horizontal sync signal, whatever the
HSYNC input’s polarity is.
OVF2=“0”,OVF1=“1” : Counter overflowed once.
OVF2=“0”,OVF1=“0” : No overflow.
OVF2=“1”,OVF1=“1” : No such condition.
F9-F0Frequency counter value. (F9 is MSB)
Weltrend Semiconductor, Inc.
8
Page 9
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
DDC Interface
The DDC interface is a slave mode I2C interface with DDC1 function. It is fully compatible with
VEAS DDC1/2B standard. The functional block diagram is shown in the below.
Internal Data
R/W
ADDR
ENACK
I/O
START/STOP Detect
Handshake Control
START
STOP
DDC2B
SCL
VSYNC
MUX
Data Buffer
Shift Register
Address Compare
MSB
1100 0 0 0
Address Register
After power on or reset the DDC interface, it is in DDC1 state. The shift register shifts out data to
SDA pin on the rising edge of VSYNC clock. Data format is an 8-bit byte followed by a null bit. Most
significant bit (MSB) is transmitted first. Every time when the ninth bit has been transmitted, the shift
register will load a data byte from data buffer (REG#18H). After loading data to the shift register, the
data buffer becomes empty and generates an INT0 interrupt. So the program must write one data byte
into REG#18 every nine VSYNC clocks.
Since the default values of data buffer(REG#22) and shift register are FFH, the SDA pin outputs
high level if no data had been written into data buffer after power on reset. When program finished
initialization and set the IEN_D bit to "1", the INT0 will occur because the data buffer is empty. The
INT0 service routine should check the DDC2B bit is "0" and then writes the first EDID data byte into
data buffer. When the second INT0 occurs, the INT0 service routine writes the second EDID data byte
into data buffer and so on.
SDA
SDA
VSYNC
Load data to
shift register
INT0
IEN_D
12183
91019
Weltrend Semiconductor, Inc.
Bit7 Bit6Bit5Bit4Bit3 Bit2Bit1Bit0Bit7
9
Page 10
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
If a low level occurs on the SCL pin in DDC1 state, the DDC interface will switch to DDC2B state
immediately and set the DDC2B bit to "1". No interrupt will be generated. But, if there is no valid
device address and it receives 128 VSYNC pulses while the SCL is high level, it will go back to
DDC1 state automatically. If it receives a valid device address, it will lock into DDC2B state and
disregard VSYNC.
In some case, program wants to go back DDC1 state, set RDDC bit in REG#1AH and reset it again.
This operation resets the DDC interface to the initial condition.
When it is in DDC2B state, the VSYNC clock is disregarded and the communication protocol
follows the DDC standard. The data format on SDA pin is:
SAddressR/W AD7,D6,...., D0AD7,D6,...., D0AP
S : Start condition. A falling edge occurs when SCL is high level.
P : Stop condition. A rising edge occurs when SCL is high level.
A : Acknowledge bit. “0” means acknowledge and “1” means non-acknowledge.
Address : 7-bit device address.
R/W : Read/Write control bit, "1" is read and "0" is write.
D7,D6,...., D0 : data byte.
The hardware operations in DDC2B state are :
(1) START/STOP detection
When the START condition is detected, the DDC interface is enabled and set START bit to "1".
When the STOP condition is detected, the DDC interface is disabled, set STOP bit to "1" and
generate INT0 interrupt.
The START bit is cleared when the following data byte received.
The STOP bit is cleared after writing REG#19H.
(2) Address Recognition
It contains two device addresses in WT6014. One fixed address (‘1010000’ ) is for EDID reading
and one programmable address (REG#19H) is for external control, such as auto alignment.
If the address is equal to "1010000", set ADDR bit to "0".
If the address is equal to the bit A6 to bit A0 (REG#19H), set ADDR bit to "1".
If the address is not equal to anyone above, the DDC interface will not response acknowledge.
The ADDR bit is updated when a new device address is received.
(3) Store R/W bit and decide the direction of SDA pin
The R/W bit on the SDA pin will be stored in the RW bit.
(4) Acknowledge bit control/detection
Acknowledge bit control in receive direction :
If ENACK=1 and address compare is true, response acknowledge (Acknowledge bit ="0").
If ENACK=0 or address compare is false, response non-acknowledge (Acknowledge bit ="1").
Acknowledge bit detect in transmit direction :
If the acknowledge bit is "1" , the DDC interface will be disabled and release the SDA pin.
If the acknowledge bit is "0" , the DDC interface keeps on communicating.
Weltrend Semiconductor, Inc.
10
Page 11
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
(5) Data bytes transmit/receive
If the RW bit is "1", the shift register will load data from the data buffer (REG#18H) before the
data
byte is transmitted and shift out data to the SDA pin before the rising edge of the SCL clock.
If the RW bit is "0", the shift register will shift in data on the rising edge of the SCL clock and the
whole data byte is latched to the data buffer(REG#18H).
(6) Handshaking procedure
The handshaking is done on the byte level. The DDC interface will hold the SCL pin low after the
acknowledge bit automatically. The bus master will be forced to wait until the WT6014 is ready for
the next byte transfer. To release the SCL pin, write REG#19H will release clear the wait state.
(7) Interrupt INT0
The DDC interface interrupt is enabled by setting the IEN_D bit in the REG#1AH.
Interrupt INT0 occurs when:
- Transmit buffer empty in DDC1 state.
The INT0 occurs when the shift register load data from data buffer.
Write REG#18H will clear the transmit buffer empty condition.
- Acknowledge is detected in DDC2B state.
The INT0 occurs on the falling edge of the SCL clock after the acknowledge had been
detected.
The SCL pin will be pulled low to force the bus master to wait until the REG#19H is written.
RWreceived R/W bit is ‘1’ .received R/W bit is ‘0’ .
STARTSTART condition is detected.No START condition is detected.
STOPSTOP condition is detected.No STOP condition is detected.
ENACKEnable acknowledge.Disable acknowledge.
A6,A5, …., A07-bit slave address
D7,D6, …., D0Data to be transmitted or received data.
received address equals to ‘1010000’ .
Weltrend Semiconductor, Inc.
11
Page 12
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
SCL
SDA
In
SDA
Out
Write REG#19H to release SCL
Shift register to data buffer
INT0
1010
0 0 0
Pull low SCL
0
AAA
DDC2B=1
ADDR=0
R/W=0
START=1
STOP=0
Data ByteData Byte
Pull low SCL
DDC2B=1
ADDR=0
R/W=0
START=0
STOP=0
DDC2B=1
ADDR=0
R/W=0
START=0
STOP=0
DDC2B state write timing
Pull low SCL
Pull low SCL
Pull low SCL
DDC2B=1
ADDR=0
R/W=0
START=0
STOP=1
SCL
SDA
In
SDA
Out
Write REG#19H to release SCL
Data buffer to shift reg
INT0
11100 0 0 0
A
DDC2B=1
ADDR=0
R/W=1
START=1
STOP=0
Data ByteData Byte
DDC2B state read timing
A
DDC2B=1
ADDR=0
R/W=1
START=0
STOP=0
N
DDC2B=1
ADDR=0
R/W=1
START=0
STOP=1
Weltrend Semiconductor, Inc.
12
Page 13
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
Interrupt Control
There are two interrupt sources : INT0 and INT1. INT0 has the higher priority.
Interrupt vector :
INT0 : FFFAH (low byte) and FFFBH (high byte).
INT1 : FFFEH (low byte) and FFFFH (high byte).
INT0 occurs when :
(1) data buffer empty in the DDC1 mode (DDC="1" and DDC2B="0").
(2) acknowledge or STOP condition is detected in the DDC2B mode (DDC="1" and DDC2B="0").
INT1 occurs when :
(1) a falling edge or a low level occurs on the /IRQ pin (EXT="1").
(2) the timer is time out (TIM="1").
(3) SYNC processor has a valid frequency (SYNC="1").
If H/V ="0" , it is vertical frequency ready.
If H/V ="1" , it is horizontal frequency ready.
INT0 is cleared when :
(1) writing the REG#18H in DDC1 state.
(2) writing the REG#19H in DDC2B state.
IRQ/IRQ pin is low level/IRQ pin is high level
TOUTTimer is time-out.Timer is not time-out.
FRDYH/V frequency counter is ready.
The counter value is valid.
Clear the reset of DDC interface.
H/V frequency counter is not ready.
The counter value is invalid.
Weltrend Semiconductor, Inc.
14
Page 15
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
Timer
It is a 8-bit down counter and clock frequency is 976.5625Hz (period=1.024ms). The timer is
started by writing a value into REG#1BH. When the timer counts down to zero, the timer stops, sets
the TOUT bit and generates an INT1 interrupt (if the IEN_T bit is "1"). The TOUT bit will be cleared
after REG#1BH is read.
Watch-Dog Timer
The watch-dog timer is always enable after power is on. Software must clear the watch-dog timer
within every 524ms. If the watch-dog timer expired, It will cause the whole chip reset just like
external reset.
To clear the watch-dog timer, write any data to REG#1CH.
AddressR/WInitialBit7Bit6Bit5Bit4Bit3Bit2Bit1Bit0
001BHR/W--TM7TM6TM5TM4TM3TM2TM1TM0
001CHW--WDTWDTWDTWDTWDTWDTWDTWDT
Bit NameBit value
TM7 to TM0Timer value (0 - 255)
WDTWrite any value to this register will reset the watchdog timer.
HSYNC and VSYNC high time250--ns
HSYNC and VSYNC low time250--ns
HSYNC
VSYNC
t
HIGH,SYNC
t
LOW,SYNC
DDC1 Timing
SymbolParameterMin.Typ.Max.Units
t
VAA,DDC1
t
SCL
SDA
MT
SDA output valid from VSYNC rising edge125-500ns
Mode transition time (DDC1 to DDC2B)--500ns
t
MT
t
VAA,DDC1
Bit 0 (LSB)Bit 7 (MSB)Null Bit
VSYNC
t
HIGH,SYNC
t
LOW,SYNC
Weltrend Semiconductor, Inc.
18
Page 19
WT6014
Digital Monitor Controller
Ver. 1.21 Jul-31-1998
DDC2B Timing
SymbolParameterMin.Typ.Max.Units
f
SCL
t
BF
t
HD,START
t
SU,START
t
HIGH,SCL
t
LOW,SCL
HD,DATA
t
SU,DATA
RISE
t
FALL
t
SU,STOP
SCL input clock frequency0-100kHz
Bus free time2--us
Hold time for START condition1--us
Set-up time for START condition1--us
SCL clock high time1--us
SCL clock low time1--us
Hold time for DATA input0--nst
Hold time for DATA output250--ns
Set-up time for DATA input250--ns
Set-up time for DATA output500--nst
SCL and SDA rise time--1us
SCL and SDA fall time--300ns
Set-up time for STOP condition4--us
SDA
SCL
t
SU,STOP
t
BF
t
HD,START
t
LOW,SCL
t
RISE
t
HD,DATA
t
HIGH,SCL
t
FALL
t
SU,DATA
t
SU,START
Weltrend Semiconductor, Inc.
19
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.