8051 core, 12MHz operating frequency.
1024-byte RAM, 64K-byte
Maximum 14 channels of 9V open-drain PWM DAC.
Watchdog timer with prog
FIFOs), the other one is Interrupt endpoint (8-byte IN FIFO).
applications. It includes an 8051 CPU core, 1024-byte SRAM, SYNC process or, 14 built-in PWM DACs,
MTV212M64
TECHNOLOGY
(Rev. 1.2)
8051 Embedded Monitor Controller
MTP Type
FEATURES
•
•
•
•Maximum 32 bi-directional I/O pins.
•SYNC processor for composite separation/insertion, H/V polarity/frequency check, polarity adjustment
and programmable clamp pulse output.
•Built-in self-test pattern generator with three free-running timings.
•Built-in low power reset circuit.
•Compliant with VESA DDC1/2B/2Bi/2B+ standard.
•Dual slave IIC addresses.
•Single master IIC interface for internal device communication.
•4-channel 6-bit ADC.
•
•Compliant with Low Speed USB Spec.1.1 including 2 Endpoints: one is Control endp oint (8-byte IN & 8-
byte OUT
•Built-in 3.3V regulator for USB Interface.
•40-pin DIP, 42-pin SDIP or 44-pin PLCC package.
program Flash-ROM.•
rammable interval.
GENERAL DESCRIPTIONS
The MTV212M micro-controller is an 8051 CPU core embedded device specially tailored to Monitor
VESA DDC interface, 4-channel A/D converter, Low Speed USB Interface and a 64K-byte internal program
Flash-ROM.
BL OCK DIAGRAM
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 sale of the product.
Revision 1.2 - 1 - 2000/07/04
Page 2
MYSON
Auxiliary RAM (AUXRAM)
MTV212M64
TECHNOLOGY
(Rev. 1.2)
DEVICE SUMMARY
The MTV212M is the MTP (Multi-Time Programming) type device for all of MTV212A mask ROM derivatives,
the memory size and package differences please see the table below:
is limited for targeted mask ROM, the allowable XBANK (35h) bank
001
010
011
001
010
011
001
010
011
100
101
Remark:
The major pin connection differences between USB (MTV212M64U) and non-USB (MTV212M64) types are
pin# 4, #5 and #6 for SDIP42 and PLCC44. The pin name of USB device is V33CAP(#4), VM(#5) and
VP(#6), while NC (No Connection) for non-USB device.
= 1→ Select AUXRAM bank 1.
= 2→ Select AUXRAM bank 2.
= 3→ Select AUXRAM bank 3.
Revision 1.2 - 7 - 2000/07/04
Page 8
MYSON
Each PWM DAC converter's output pulse width is controlled by an 8-bit register in XFR. The frequency of
Pulse width of PWM DAC 0
Pulse width of PWM DAC 1
Pulse width of PWM DAC 2
Pulse width of PWM DAC 3
Pulse width of PWM DAC 4
Pulse width of PWM DAC 5
Pulse width of PWM DAC 6
Pulse width of PWM DAC 7
Pulse width of PWM DAC 8
Pulse width of PWM DAC 9
Pulse width of PWM DAC 10
Pulse width of PWM DAC 11
Pulse width of PWM DAC 12
Pulse width of PWM DAC 13
* All of PWM DAC converters are centered with value 80h after power on.
inputs presence check, frequency counting, polarity detection and control, as well as the protection of
function block treat any pulse shorter than one OSC period as noise.
MTV212M64
TECHNOLOGY
= 4→ Select AUXRAM bank 4.
= 5→ Select AUXRAM bank 5.
4. Extra I/O
The extra I/O is a group of I/O pins located in XFR area. Port4 is output mode onl y. Port5 can be used as
both output and input, because Port5's pin is open drain type, user must write Port5's corresponding bit to
"1" in input mode.
Reg nameaddrbit7bit6bit5bit4bit3bit 2bit1bit0
PORT4
PORT5
PORT4 (w) :Port 4 data output value.
PORT5 (r/w) : Port 5 data input/output value.
5. PWM DAC
38h (w)P42P41P40
39h (r/w)P56P55P54P53P52P51P50
(Rev. 1.2)
PWM clk is 47KHz or 94KHz, selected by PWMF. And the total duty cycle step of these DAC outputs is 253
or 256, selected by DIV253. If DIV253=1, writing FDH/FEH/FFH to DAC register generates stable high
output. If DIV253=0, the output will pulse low at least once even if the DAC register's content is FFH. Writing
00H to DAC register generates stable low output.
Reg nameaddrbit7bit6bit5bit4bit3bit 2bit1bit0
DA0
DA1
DA2
DA3
DA4
DA5
DA6
DA7
DA8
DA9
DA10
DA11
DA12
DA13
DA0-13 (r/w) : The output pulse width control for DA0-13.
The H/V SYNC processing block performs the functions of composite signal separation /insertion, SYNC
VBLANK output while VSYNC speed up in high DDC communication clock rate. The present and frequency
Revision 1.2 - 8 - 2000/07/04
Page 9
MYSON
6.2 H/V Frequency Counter
VSYNC/CVSYNC is present or continuously updated when VSYNC/CVS YNC is non-present. The 12 bits
Hself
Hpol
CVpre
Vbpl
VSYNC
Vpre
Vfreq
Vpol
VBLANK
Vself
HSYNC
CVSYNC
Hpre
Hfreq
Hbpl
HBLANK
XOR
MTV212M64
TECHNOLOGY
Digital Filter
Digital Filter
Present
Check
Polarity Check &
Freq. Count
Polarity Check &
Sync Seperator
Present Check &
Freq. Count
(Rev. 1.2)
XOR
XOR
Present
Check
Composite
Pulse Insert
XOR
H/V SYNC Processor Block Diagram
6.1 Composite SYNC separation/insertion
The MTV212M continuously monitors the input HSYNC, if the vertical SYNC pulse can be extracted from the
input, a CVpre flag is set and user can select the extracted "CVSYNC" for the source of polarity check,
frequency count, and VBLANK output. The CVSYNC will have 8us delay compared to the original signal.
The MTV212M can also insert pulse to HBLANK output during com posite VSYNC’s active time. The insert
pulse’s width is 1/8 HSYNC period and the insertion frequency can adapt to original HSYNC.
MTV212M can discriminate HSYNC/VSYNC frequency and saves the information in XFRs. The 14 bits
Hcounter counts the time of 64xHSYNC period, then load the result into the HCNTH/HCNTL latch. The
output value will be [(128000000/H-Freq) - 1], updated once per VSYNC/CVSYNC period when
Vcounter counts the time between two VSYNC pulses, then load the result into the VCNTH/VCNTL latch.
The output value will be (62500/V-Freq), updated every VSYNC/CVSYNC perio d. An extra overflow bit
indicates the condition of H/V counter overflow. The VFchg/HFchg interrupt is set when VCNT/HCNT value
changes or overflow. Table 4.2.1 and table 4.2.2 shows the HCNT/VCNT value under the operations of
12MHz.
Revision 1.2 - 9 - 2000/07/04
Page 10
MYSON
CVpre flag interrupt may be disabled when S/W disable the composite function.
6.4 H/V Polarity Detect
The polarity functions detect the input HSYNC/VSYNC high and low pulse duty cycle. If the high pulse
duration is longer than that of low pulse, the negative polarity is asserted; otherwise, positi ve polarity is
6.5 Output HBLANK/VBLANK Control and Polarity Adjust
6.3 H/V Present Check
The Hpresent function checks the input HSYNC pulse, Hpre flag is set when HSYNC is over 10KHz or
cleared when HSYNC is under 10Hz. The Vpresent function checks the input VSYNC pulse, the Vpre flag is
set when VSYNC is over 40Hz or cleared when VSYNC is under 10Hz. The HPRchg interrupt is set when
the Hpre value changes. The VPRchg interrupt is set when the Vpre/CVpre value change. However, the
asserted. The HPLchg interrupt is set when the Hpol value changes. The VPLchg interrupt is set when the
Vpol value changes.
The HBLANK is the mux output of HSYNC, composite Hpulse and self-test horizontal pattern. The VBLANK
is the mux output of VSYNC, CVSYNC and self-test vertical pattern. The mux selection and output polarity
are S/W controllable. The VBLANK output is cut off when VSYNC frequency is over 200Hz. The
HBLANK/VBLANK shares the output pin with P4.1/ P4.0.
6.6 Self Test Pattern Generator
This generator can generate 4 display patterns for testing purpose, which are positive cross-hatch, negative
cross-hatch, full white, and full black (showed as following figure). The HBLANK output frequency of the
pattern can be chosen to 63.5KHz, 47.6KHz and 31.75KHz. The VBLANK output f requency of the pattern is
60Hz. It is originally designed to support monitor manufacturer to do burn-in test, or offer end-user a
reference to check the monitor. The generator's output STOUT shares the output pin with P4.2.
Revision 1.2 - 10 - 2000/07/04
Page 11
MYSON
MTV212M64
TECHNOLOGY
Display Region
Positive cross-hatchNegative cross-hatch
(Rev. 1.2)
Full whiteFull black
Revision 1.2 - 11 - 2000/07/04
Page 12
MYSON
* 8 x 8 blocks of cross hatch pattern in display region.
width and polarity is S/W controllable.
EVsync
The status of polarity, present and static level for HSYNC and VSYNC.
HSYNC input is positive polarity.
VSYNC (CVSYNC) is negative polarity.
MTV212M64
TECHNOLOGY
MTV212M Self-Test pattern timing
63.5KHz, 60Hz47.6KHz, 60Hz31.7KHz, 60Hz
Absolute timeH dotsAbsolute timeH dotsAbsolute timeH dots
Hor. Total time (A)15.75us128021.0us102431.5us640
Hor. Active time (D)12.05us979.316.07us783.224.05us488.6
Hor. F. P. (E)0.2us16.250.28us120.45us9
SYNC pulse width (B)1.5us1222us903us61
Hor. B. P. (C)2us162.542.67us1104us81.27
Absolute timeV linesAbsolute timeV linesAbsolute timeV lines
Vert. Total time (O)16.663ms102416.663ms76816.663ms480
Vert. Active time (R)15.655ms96215.655ms721.515.655ms451
Vert. F. P. (S)0.063ms3.870.063ms2.90.063ms1.82
SYNC pulse width (P)0.063ms3.870.063ms2.90.063ms1.82
Vert. B. P. (Q)0.882ms54.20.882ms40.50.882ms25.4
6.7 HSYNC Clamp Pulse Output
The HCLAMP output is active by setting “HCLPE” control bit. The HCLAMP’s leading edge position, pulse
(Rev. 1.2)
6.8 VSYNC Interrupt
The MTV212M check the VSYNC input pulse and generate an interrupt at its leading edge. The VSYNC flag
is set each time when MTV212M detects a VSYNC pulse. The flag is cleared by S/W writing a "0".
C1, C0 = 1,1→ Select CVSYNC as the polar ity, freq and VBLANK source.
NoHins = 1 → HBLANK has no insert pulse in composite mode.
HB
VB
= 1 → VSYNC input's off level is high.
off*
= 0 → VSYNC input's off level is low.
and V
off
pl
pl
are valid when H
off
= 1,0→ Select VSYNC as the polarity, freq and VBLANK source.
= 0,0→ Disable composite function.
= 0,1→ H/W auto switch to CVSYNC when CVpre=1 and VSpre=0.
= 0 → HBLANK has insert pulse in composite mode.
= 1 → negative polarit y HBLANK output.
7.1 DDC1 Mode
The MTV212M enters DDC1 mode after Reset. In this mode, VSYNC is used as data clock. The HSCL pin
should remain at high. The data output to the HSDA pin is taken from a shift register in MTV212M. The shift
register fetch data byte from the DDC1 data buffer (DBUF) then send it in 9 bits packet formats which
includes a null bit (=1) as packet separator. The DBUF set the DbufI interrupt flag when the shift register
read out the data byte from DBUF. Software needs to write EDID data to DBUF as soon as the DbufI is set.
The
interrupt can be mask or enable by EDbufI control bit.
7.2 DDC2B Mode
The MTV212M switches to DDC2B mode when it detects a high to low transition on th e HSCL pin. Once
MTV212M enters DDC2B mode, S/W can set IICpass control bit to allow HOST access EEPROM directly.
DbufI
perform DDC2 function is to clear IICpass and config the Slave A IIC block to act as EEPROM behavior. The
Slave A block's slave address can be chosen by S/W as 5-bits, 6-bits or 7-bits. For example, if S/W choose
5-bits slave address as 10100b, the slave IIC block A will respond to slave address 10100xx b and save the 2
LSB "xx" in XFR. This feature enables MTV212M to meet PC99 requirement.
The MTV212M will return to DDC1 mode if HSCL is kept high for 128 VSYNC clock period. However, it will
Revision 1.2 - 14 - 2000/07/04
Page 15
MYSON
RCABUF/RCBBUF register when a data byte is received. The first byte loaded is word address (slave
the RCABUF/RCBBUF is loaded. If S/W can't read out the RCABUF/RCBBUF in time, the next byte in shift
every time when shift register reads out the data from TX ABUF/TXBBUF.
SlvBMI is cleared by writing "0" to corresponding bit in INTFLG register.
The TXAI/TXBI is cleared by writing TXABUF/TXBBUF. If the control
The master mode IIC block can be connected to the ISDA /ISCL pins or the HSDA/HSCL pins, select by
Msel control bit. Its speed can be selected to 50KHz-400KHz by S/W setting the MIICF1/MIICF0 control bit.
and the display information share the common EEPROM, precaution m ust be taken to avoid bus conflicting
while Msel=0. In DDC1 mode or IICpass=0, the ISCL/ISDA is controlled by MTV212M only. In DDC2 mode
IICpass flag is set, the host may access the EEPROM directl y. Software can test the HSCL condition by
1. Write MBUF the Slave Address.
3. After the MTV212M transmit this byte, a
1. Write MBUF the Slave Address.
3. After the MTV212M transmit this byte, a
MTV212M64
TECHNOLOGY
lock in DDC2B mode if a valid IIC address (1010xxxb) has been detected on HSCL/HSDA bus. The DDC2
flag reflects the current DDC status, S/W may clear it by writing a "0" to it.
7.3 Slave Mode IIC function Block
The slave mode IIC block is connected to HSDA and HSCL pins. This block can receive/transmit data using
IIC protocol. There are 2 slave addresses MTV212M can respond to. S/W may write the
SLVAADR/SLVBADR register to determine the slave addresses. The SlaveA address can be configured to
5-bits, 6-bits or 7-bits by S/W setting the SlvAbs1 and SlvAbs0 control bits.
In receive mode, the block first detects IIC slave address match condition then issues a SlvAMI/SlvBMI
interrupt. If the matched address is slave A, MTV212M will save the matched address's 2 LSB bits to
SlvAlsb1 and SlvAlsb0 register. The data from HSDA is shifted into shift register then written to
address is dropped). This block also generates a RCAI/RCBI (receive buff er full interrupt) every time when
register will not be written to RCABUF/RCBBUF and the slave block return NACK to the master. This feature
guarantees the data integrity of communication. The WadrA/WadrB flag can tell S/W that if the data in
RCABUF/RCBBUF is a word address.
In transmit mode, the block first detects IIC slave address match condition then issues a SlvAMI/SlvBMI
interrupt. In the mean time, the SlvAlsb1/SlvAlsb0 is also updated if the matched address is sla ve A, and the
data pre-stored in the TXABUF/TXBBUF is loaded into shift register, result in TXABUF/T XBBUF empty and
generates a TXAI/TXBI (transmit buffer empty interrupt). S/W should write the TXABUF/TXBBUF a new byte
for next transfer before shift register empty. Fail to do this will cause data corrupt. The TXAI/TXBI occurs
(Rev. 1.2)
The SlvAMI/
cleared by reading RCABUF/RCBBUF.
bit ENSCL is set, the block will hold HSCL low until the RCAI/RCBI/TXAI/TXBI is cleared.
*Please see the attachments about "Slave IIC Block Timing".
7.4 Master Mode IIC Function Block
The software program can access the external IIC device through this interface. Since th e ED ID/VDIF data
and
reading the Hbusy flag, which is set in case of HSCL=0, and keeps high for 100uS after t he HSCL's rising
edge. S/W can launch the master IIC transmit/receive by clearing the P bit. Once P=0, MTV212M will hold
HSCL low to isolate the host's access to EEPROM. A summary of master IIC access is illustrated as follows.
7.4.1. To write IIC Device
2. Set S bit to Start.
4. Program can write MBUF to transfer next byte or set P bit to stop.
* Please see the attachments about "Master IIC Transmit Timing".
7.4.2. To read IIC Device
MbufI interrupt will be triggered.
The RCAI/RCBI is
2. Set S bit to Start.
4. Set or reset the MAckO flag according to the IIC protocol.
5. Read out MBUF the useless byte to continue the data transfer.
6. After the MTV212M receives a new byte, the MbufI interrupt is triggered again.
7. Read MBUF also trigger the next receive operation, but set P bit before read can terminate the operation.
Revision 1.2 - 15 - 2000/07/04
MbufI interrupt will be triggered.
Page 16
MYSON
WadrB
WadrA
SLVAADR
SLVBADR
In master receive mode, NACK is returned by MTV212M.
In master receive mode, ACK is returned by MTV212M.
enable bit is set, the 8051 INT1 source will be driven by a zero level. Software MUST clear
MTV212M64
TECHNOLOGY
* Please see the attachments about "Master IIC Receive Timing".
Reg nameaddrbit7bit6bit5bit4bit3bit 2bit1bit0
IICCTR
IICSTUS
IICSTUS
INTFLG
INTFLG
INTEN
MBUF
RCABUF
TXABUF
RCBBUF
TXBBUF
DBUF
IICCTR (r/w) : IIC interface control register.
DDC2 = 1→ MTV212M is in DDC2 mode, write "0" can clear it.
MAckO = 1→
S, P= ↑, 0 → Start condition when Master IIC is not during transfer.
* A write/read MBUF operation can be recognized only after 10us of the MbufI flag's rising edge.
06h (r)Slave A IIC receive buffer
06h (w)Slave A IIC transmit buffer
07h (w)ENSlvASlave A IIC address
08h (r)Slave B IIC receive buffer
08h (w)Slave B IIC transmit buffer
09h (w)ENSlvBSlave B IIC address
0Ah (w)DDC1 transmit data buffer
= 0→ MTV212M is in DDC1 mode.
= 0→
= X, ↑ → Stop condition when Master IIC is not during transfer.
= 1, X → Will resume transfer after a read/write MBUF operation.
= X, 0 → Force HSCL low and occupy the master IIC bus.
SlvRWB SAckInSLVSSlvAlsb1 SlvAlsb0
(Rev. 1.2)
IICSTUS (r) : IIC interface status register.
WadrB = 1→ The data in RCBBUF is word address.
WadrA = 1→ The data in RCABUF is word address.
SlvRWB = 1→ Current transfer is slave transmit
= 0→ Current transfer is slave receive
SAckIn = 1→ The external IIC host respond NACK.
SLVS= 1→ The slave block has detected a START, cleared when STOP detected.
SlvAlsb1,SlvAlsb0 : The 2 LSB which host send to Slave A block.
MAckIn = 1 → Master IIC bus error, no ACK received from the slave IIC device.
= 0→ ACK received from the slave IIC device.
Hifreq = 1→ MTV212M has detected a higher than 200Hz clock on the VSYNC pin.
Hbusy = 1→ Host drives the HSCL pin to low.
INTFLG (w) :Interrupt flag. A interrupt event will set its individual flag, and, if the corresponding interrupt
this register while serve the interrupt routine.
SlvBMI = 1→ No action.
= 0→ Clear SlvBMI flag.
SlvAMI = 1→ No action.
= 0→ Clear SlvAMI flag.
MbufI= 1→ No action.
= 0→ Clear Master IIC bus interrupt flag (MbufI).
INTFLG (r) : Interrupt flag.
Revision 1.2 - 16 - 2000/07/04
Page 17
MYSON
When the voltage level of power supply is below 4.0V for a specific time, the LVR will generate a
Xtal cycle to guarantee the
WDT(2:0). The timer
MTV212M64
TECHNOLOGY
TXBI= 1→ Indicates the T XBBUF need a new data byte, clear by writing TXBBUF.
RCBI= 1→ Indicates the RCBBUF has received a new data byte, clear by reading RCBBUF.
SlvBMI = 1→ Indicates the slave IIC address B match condition.
TXAI= 1→ Indicates the T XABUF need a new data byte, clear by writing TXABUF.
RCAI= 1→ Indicates the RCABUF has received a new data byte, clear by reading RCABUF.
SlvAMI = 1→ Indicates the slave IIC address A match condition.
DbufI= 1→ Indicates the DDC1 data buffer need a new data byte, clear by writing DBUF.
MbufI= 1→ Indicates a byte is sent/received to/from the master IIC bus.
INTEN (w) : Interrupt enable.
ETXBI = 1→ Enable TXBBUF interrupt.
ERCBI = 1→ Enable RCBBUF interrupt.
ESlvBMI = 1→ Enable slave address B match interrupt.
ETXAI = 1→ Enable TXABUF interrupt.
ERCAI = 1→ Enable RCABUF interrupt.
ESlvAMI = 1→ Enable slave address A match interrupt.
EDbufI = 1→ Enable DDC1 data buffer interrupt.
EMbufI = 1→ Enable Master IIC bus interrupt.
Mbuf (w) : Master IIC data shift register, after START and before STOP condition, write this register will
resume MTV212M's transmission to the IIC bus.
(Rev. 1.2)
Mbuf (r) : Master IIC data shift register, after START and before STOP condition, read this register will
resume MTV212M's receiving from the IIC bus.
RCABUF (r) :Slave IIC block A receive data buffer.
TXABUF (w) : Slave IIC block A transmit data buffer.
SLVAADR (w) :Slave IIC block A's enable and address.
ENslvA = 1→ Enable slave IIC block A.
= 0→ Disable slave IIC block A.
bit6-0 : Slave IIC address A to which the slave block should respond.
RCBBUF (r) :Slave IIC block B receive data buffer.
TXBBUF (w) : Slave IIC block B transmit data buffer.
SLVBADR (w) :Slave IIC block B's enable and address.
ENslvB = 1→ Enable slave IIC block B.
= 0→ Disable slave IIC block B.
bit6-0 : Slave IIC address B to which the slave block should respond.
8. Low Pow er Reset (LVR) & Watchdog Tim er
chip reset
signal. After the power supply is above 4.0V, LVR maintain in reset state for 144
chip exit reset condition with a stable X'tal oscillation.
The WatchDog Timer automatically generates a device reset when it is overflow. The interval of overflow is
0.25 sec x N, where N is a number from 1 to 8, and can be programmed via register
function is disabled after power on reset, user can activate this function by setting WEN, and clear the timer
by set WCLR.
Revision 1.2 - 17 - 2000/07/04
Page 18
MYSON
9. A/D con v ert er
WCLR
WDT2
WDT1
WDT0
Watchdog Timer control register.
Volt Regulator. The SIE block performs most of the USB interface function with only minimum support from
4. TOKEN type identification
S/W handles the following tasks:
MTV212M64
TECHNOLOGY
The MTV212M is equipped with four 6-bit A/D converters, S/W can select the current convert channel by
setting the SADC1/SADC0 bit. The refresh rate for the ADC is OSC freq./12288. The ADC compare the input
pin voltage with internal VDD*N/64 voltage (where N = 0 - 63). The ADC output value is N when pin voltage
is greater than VDD*N/64 and smaller than VDD*(N+1)/64.
= 1→ overflow interval = 1 x 0.25 sec.
= 2→ overflow interval = 2 x 0.25 sec.
= 3→ overflow interval = 3 x 0.25 sec.
= 4→ overflow interval = 4 x 0.25 sec.
= 5→ overflow interval = 5 x 0.25 sec.
= 6→ overflow interval = 6 x 0.25 sec.
= 7→ overflow interval = 7 x 0.25 sec.
The USB engine includes the Serial Interface Engine (SIE), the low-speed USB I/O transc eiver and the 3.3
S/W. Two endpoints are supported. Endpoint 0 is used to receive and transmit control (including SETUP)
packets while Endpoint 1 is only used to transmit data packets.
The USB SIE handles the following USB bus activity independently:
1. Bitstuffing/unstuffing
2. CRC generation/checking
3. ACK/NAK
5. Address checking
1. Coordinate enumeration by responding to SETUP packets
2. Fill and empty the FIFOs
3. Suspend/Resume coordination
4. Verify and select DATA toggle values
10.1 USB Device Address
The USBADR register stores the device address. This register is reset to all 0 after chip reset or USB bus
Revision 1.2 - 18 - 2000/07/04
Page 19
MYSON
Endpoint 0 transmit FIFO (TX0FIFO) to the USB bus if the Endpoint 0 transmit ready flag (TX0rdy) is set and
(EP1Cfgd) is set. After detecting a valid Endpoint 1 IN token, MTV212M automatically transmit the data pre-
X'tal is stop, but CPU can be waken-up by the trigger of enabled INT 1's source. In
MTV212M64
TECHNOLOGY
reset. S/W must write this register a valid value after the USB enumeration process.
10.2 Endpoint 0 receive
After receiving a packet and placing the data into the Endpoint 0 receive FIFO (RC0FIFO), MTV212M
updates the Endpoint 0 status register (EP0STUS) to record the receive status and then g enerates an
Endpoint 0 receive interrupt (RC0I). S/W can read the EP0STUS register for the recent tra nsfer information,
which includes the data byte count (RC0cnt), data direction (EP0dir), SETUP token flag (EP0set) and data
valid flag (RC0err). The received data is always stored into RC0FIFO and the RC0cnt is always updated for
DATA packets following SETUP tokens. The data following an OUT tok en is written into th e RC0FIFO, and
the RC0cnt is updated unless Endpoint 0 STALL (EP0stall) or Endpoint 0 receive NAK (RC0nak) is set. The
RC0I interrupt will happen in case where the RC0cnt/RC0FIFO is updated.
10.3 Endpoint 0 transmit
After detecting a valid Endpoint 0 IN token, MTV212M automaticall y transmit the data pre-stored in the
the EP0stall is cleared. The number of byte to be transmitted is base on the Endpoint 0 tra nsmit byte count
register (TX0cnt). The DATA0/1 token to be transmitted is base on the Endpoint 0 transmit toggle control bit
(TX0tgl). After the TX0FIFO is updated, TX0rdy should be set to 1. This enables the MTV212M to respond to
an Endpoint 0 IN packet. TX0rdy is cleared and an Endpoint 0 transmit interrupt (TX0I) is generated once the
USB host acknowledges the data transmission. The interrupt service routine can check TX0rdy to confirm
that the data transfer was successful.
(Rev. 1.2)
10.4 Endpoint 1 transmit
Endpoint 1 is capable of transmit only. This endpoint is enable when the Endpoint1 configured control bit
stored in the Endpoint 1 transmit FIFO (TX1FIFO) to the USB bus if the Endpoint 1 transmit ready flag
(TX1rdy) is set and the EP1stall is cleared. The number of byte to be transmitted is base on the Endpoint 1
transmit byte count register (TX1cnt). The DATA0/1 token to be transmitted is base on the Endpoint 1
transmit toggle control bit (TX1tgl). After the TX1FIFO is updated, TX1rdy should be set to 1. This enables
the MTV212M to respond to an Endpoint 1 IN packet. TX 1rdy is cleared and an Endpoint 1 transmit interrupt
(TX1I) is generated once the USB host acknowledges the data transmission. The interrupt service routine
can check TX0rdy to confirm that the data transfer was successful.
10.5 USB Control and Status
Other USB control bits include the USB enable (ENUSB), SUSPEND (Susp), RESUME (RsmO), Control
Read (CtrRD), and corresponding interrupt enable bits. The CtrRD should be set when program detects the
current transfer is an Endpoint0 Control Read Transfer. Once this bit is set, the MTV212M will stall an
Endpoint0 OUT packet with DATA toggle 0 or byte count other than 0. Other US B status flag includes the
USB reset interrupt (USBrstI), RESUME interrupt (RsmI), and USB bus active flag (USBactv). The USBactv
flag is set once the MTV212M detect the USB bus activity. S/W should read and clear it every 3 ms to
identify the suspend condition. Writing a "1" to the USBactv flag will not change its value.
10.6 Suspend and Resume
Once the Suspend condition is asserted, S/W can set the Susp bit to stop the USBSIE's clock. In the mean
time, the 3.3V Regulator is operating in low power mode. S/W can further save the device power by force the
8051 CPU core into the Power Down or Idle mode by setting the PCON register in SFR area. In the Idel
mode, the X'tal keeps oscillating and CPU can be waken-up by the trigger of any enabled interrupt. In the
Power Down mode, the
short, S/W can keep the RsmI alive before enter the suspend mode.
INTFLG (w) :Interrupt flag. A interrupt event will set its individual flag, and, if the corresponding interrupt
this register while serve the interrupt routine.
USBrstI= 1→ No action.
= 0→ Clear USBrstI flag.
RC0I= 1→ No action.
= 0→ Clear RC0I flag.
TX1I= 1→ No action.
= 0→ Clear TX1I flag.
TX0I= 1→ No action.
= 0→ Clear TX0I flag.
RsmI= 1→ No action.
= 0→ Clear RsmI flag.
INTFLG (r) : Interrupt flag.
USBrstI= 1→ Indicates the USB bus reset condition.
RC0I= 1→ Endpoint 0 has completed a receive transfer and save the data in RC0FIFO.
TX1I= 1→ Endpoint 1 has completed a transmit transfer and empty TX1FIFO.
Revision 1.2 - 20 - 2000/07/04
Page 21
MYSON
Last transfer's receive byte count.
MTV212M detects USB bus activity, clear by S/W writing "0".
Endpoint 0 transmit byte count, write only.
Endpoint 1 transmit byte count, write only.
MTV212M64
TECHNOLOGY
TX0I= 1→ Endpoint 0 has completed a transmit transfer and empty TX0FIFO.
RsmI= 1→ Indicates the USB bus RESUME condition in suspend mode.
EP0dir = 1→ Last transfer is transmit direction (IN).
= 0→ Last transfer is receive direction (OUT, SETUP).
EP0set = 1→ Last transfer is a SETUP.
= 0→ Last transfer is not a SETUP.
RC0cnt :
(Rev. 1.2)
USBCTR (r/w) :USB control register.
Susp= 1→ S/W force USB interface into suspend mode.
RsmO = 1→ S/W force USB interface into send RESUME signal in suspend mode.
EP1cfgd = 1→ Endpoint 1 is configed.
RC0nak = 1→ Endpoint 0 will respond NAK to OUT token.
CtrRD = 1→ MTV212M will stall a invalid OUT token during Control Read transfer.
USBactv = 1→
TX0CTR (r/w) : Endpoint 0 transmit control register.
TX0rdy = 1→ Enable the Endpoint 0 to respond to IN token.
TX0tgl = 1→ Endpoint 0 will transmit DATA1 packet.
EP0stall = 1→ Endpoint 0 will stall OUT/IN packet.
TX0cnt :
TX1CTR (r/w) : Endpoint 1 transmit control register.
TX1rdy = 1→ Enable the Endpoint 1 to respond to IN token.
TX1tgl = 1→ Endpoint 1 will transmit DATA1 packet.
EP1stall = 1→ Endpoint 1 will stall IN packet.
TX1cnt :
= 0→ Endpoint 0 will respond NAK to IN token.
This bit can be set or cleared by S/W, clear by H/W while Host acknowledge the transfer.
= 0→ Endpoint 0 will transmit DATA0 packet.
= 0→ Endpoint 1 will respond NAK to IN token.
This bit can be set or cleared by S/W, clear by H/W while Host acknowledge the transfer.
VS input pulse Width
HSYNC to Hblank output jittertHHBJ5nS
H+V to Vblank output delaytVVBD fXtal=12MHz10uS
VS pulse width in H+V signal
SDA to SCL setup timetDCSU200ns
Voh3Ioh=-2mA4V
Active1824mA
Idd
fDAfXtal=12MHz46.87594.86KHz
Idle1.34.0mA
Power-Down5080uA
fXtal=12MHz3uS
FXtal=12MHz20uS
Revision 1.2 - 24 - 2000/07/04
Page 25
MYSON
MTV212M64
TECHNOLOGY
(Rev. 1.2)
SDA to SCL hold timetDCH100ns
SCL high timetSCLH500ns
SCL low timetSCLL500ns
START condition setup timetSU:STA500ns
START condition hold timetHD:STA500ns
STOP condition setup timetSU:STO500ns
STOP condition hold timetHD:STO500ns
t
SCKH
t
t
SU:STO
HD:STO
t
SU:STA
t
HD:STA
t
SCKL
t
DCSU
t
DCH
Data int er f ace ti min g (I2C)
Revision 1.2 - 25 - 2000/07/04
Page 26
MYSON
PACKAGE DIMENSION
0.254mm
MTV212M64
TECHNOLOGY
1. 40-pin PDIP 600 mil
1.981mm
+/-0.254
3.81mm
+/-0.127
3.302mm
+/-0.254
2. 42 pin SDIP Unit: mm
52.197mm +/-0.127
(Rev. 1.2)
2.540mm0.457mm +/-0.1271.270mm +/-0.254
15.494mm +/-0.254
1.778mm
+/-0.127
0.254mm
(min.)
13.868mm +/-0.102
5o~7
16.256mm +/-0.508
0
6o +/-3
o
0.254mm
+/-0.102
Symbol
Dimension in mm
MinNomMax
A3.9374.0644.2
A11.781.8421.88
B10.9141.2701.118
D36.7836.8336.88
E113.945 13.970 13.995
F15.19 15.24015.29
eB15.24 16.51017.78
0°7.5°15°
15.494mm +/-0.254
13.868mm +/-0.102
+/-0.102
0
5o~7
o
16.256mm +/-0.508
6o +/-3
Revision 1.2 - 26 - 2000/07/04
Page 27
MYSON
MTV212M64
TECHNOLOGY
3. 44 pin PLCC Unit:
0
0.045*45
0.050 TYP.
0.653 +/-0.003
0.690 +/-0.005
PIN #1 HOLE
0.026~0.032 TYP.
0.690 +/-0.005
0.653 +/-0.003
0.180 MAX.
0.013~0.021 TYP.
70TYP.
0.0700.070
(Rev. 1.2)
0.020 MIN.
0.610 +/-0.02
0.500
0.010
Ordering Inform ation
Standard configurations:
PrefixPart Typ ePackage TypeROM Size (K)USB Option
MTV 212M
N: PDIP
S:SDIP
64Non-USB: N/A
V: PLCC
Part Numbers:
PrefixPart TypePack age TypeROM Size (K)USB Option