ETC MTP805N

MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
8051 Embedded USB/PS2 Keyboard/Mouse
Controller
FEATURES
•
•
•
•
•
•
•
•
•
•
•
•
8051 core, 6MHz operating frequency.
256-byte RAM, 8K-byte program Flash-ROM.
Compliant with Low Speed USB Spec.1.1 including 3 Endpoints: one is Control endpoint (8-byte IN & 8byte OUT FIFOs), the other two are Interrupt endpoints (8-byte IN FIFOs).
Built-in 3.3V regulator for USB Interface.
Suspend / Resume operation.
Idle and Power down mode wake-up by interrupt.
8 dedicated Key scan input pins and 18/19 Key scan output pins.
Built-in low power reset circuit and Watchdog timer.
PS2 compatible mouse interface.
PS2 compatible keyboard interface share with USB interface.
CPU clock can be double by S/W setting.
40-pin DIP, 42-pin SDIP or 44-pin PLCC package.
GENERAL DESCRIPTIONS
The MTP805 micro-controller is an 8051 CPU core embedded device specially tailored to USB/PS2
Keyboard/Mouse applications. It includes an 8051 CPU core, 256-byte SRAM, Low Speed USB Interface
and an 8K-byte internal program Flash-ROM.
BLOCK DIAGRAM
V33
KSO0~7
P1.0~7
KSO8~15
P2.0~7
MSDATA
MSCLK
P3.0
P3.1
PS2CLK
PS2DATA
P3.4
P3.5
OSC2
OSC1
RESET
XCVR DP
DM
8051
WDT
P0.0~7
P3.7
P3.6
ALE
P3.2
P3.3
DBUS
/RD
/WR
ALE
/INT0
/INT1
SIE
XFR
KSO16~17
GPIO0~1
KSI0~7
LED0~2
GPO0
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 0.9
-1-
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
PIN CONNECTION
MTP805
40 Pin
PDIP #2
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
DP/PS2CLK
DM/PS2DATA
V33
VDD
LED0
LED1
LED2
GPO0
MSCLK
MSDATA
KSO17
KSO16
KSO15
KSO14
KSO13
KSO12
KSO11
KSO10
KSO9
KSO8
NC
VDD
V33
DM/PS2DATA
DP/PS2CLK
KSI2
KSI3
KSI4
KSI5
KSI6
KSI7
KSO0
KSO1
KSO2
KSO3
KSO4
7
8
9
10
11
12
13
14
15
16
17
39
38
37
36
35
34
33
32
31
30
29
MTP805
44 Pin
PLCC
LED0
LED1
LED2
GPO0
MSCLK
MSDATA
GPIO1
GPIO0
KSO17
KSO16
KSO15
-2-
KSO14
KSO13
KSO12
KSO11
KSO10
DP/PS2CLK
DM/PS2DATA
V33
VDD
LED0
LED1
LED2
GPO0
MSCLK
MSDATA
GPIO1
GPIO0
KSO17
KSO16
KSO15
KSO14
KSO13
KSO12
KSO11
KSO10
KSO9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
VSS
OSC1
Revision 0.9
MTP805
42 Pin
SDIP
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
VSS
OSC1
OSC2
RST
KSI0
KSI1
KSI2
KSI3
KSI4
KSI5
KSI6
KSI7
KSO0
KSO1
KSO2
KSO3
KSO4
KSO5
KSO6
KSO7
KSO9
KSO8
KSO7
KSO6
KSO5
NC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
DP/PS2CLK
DM/PS2DATA
V33
VDD
LED0
LED1
LED2
MSCLK
MSDATA
GPIO0
KSO17
KSO16
KSO15
KSO14
KSO13
KSO12
KSO11
KSO10
KSO9
KSO8
28
27
26
25
24
23
22
21
20
19
18
VSS
OSC1
OSC2
RST
KSI0
KSI1
KSI2
KSI3
KSI4
KSI5
KSI6
KSI7
KSO0
KSO1
KSO2
KSO3
KSO4
KSO5
KSO6
KSO7
KSO8
MTP805
40 Pin
PDIP #1
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
40
41
42
43
44
1
2
3
4
5
6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
OSC2
RST
KSI0
KSI1
VSS
OSC1
OSC2
RST
KSI0
KSI1
KSI2
KSI3
KSI4
KSI5
KSI6
KSI7
KSO0
KSO1
KSO2
KSO3
KSO4
KSO5
KSO6
KSO7
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
PIN DESCRIPTION
Name
Type
VSS
OSC1
OSC2
RST
KSI0
KSI1
KSI2
KSI3
KSI4
KSI5
KSI6
KSI7
KSO0
KSO1
KSO2
KSO3
KSO4
KSO5
KSO6
KSO7
KSO8
KSO9
KSO10
KSO11
KSO12
KSO13
KSO14
KSO15
KSO16
KSO17
GPIO0
GPIO1
MSDATA
MSCLK
GPO0
LED2
LED1
LED0
VDD
V33
DM/PS2DATA
DP/PS2CLK
I
O
I
I
I
I
I
I
I
I
I
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
O
I/O
I/O
I/O
I/O
I/O
I/O
O
O
O
O
O
I/O
I/O
Description
Ground.
Oscillator input.
Oscillator output.
Active high reset. (with internal pull-down resistor)
Key scan input 0. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 1. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 2. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 3. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 4. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 5. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 6. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan input 7. (Schmitt-trigger with 10K/33K/50K pull-up resistor)
Key scan output 0 (8051’s P1.0). (Pseudo open-drain)
Key scan output 1 (8051’s P1.1). (Pseudo open-drain)
Key scan output 2 (8051’s P1.2). (Pseudo open-drain)
Key scan output 3 (8051’s P1.3). (Pseudo open-drain)
Key scan output 4 (8051’s P1.4). (Pseudo open-drain)
Key scan output 5 (8051’s P1.5). (Pseudo open-drain)
Key scan output 6 (8051’s P1.6). (Pseudo open-drain)
Key scan output 7 (8051’s P1.7). (Pseudo open-drain)
Key scan output 8 (8051’s P2.0). (Pseudo open-drain)
Key scan output 9 (8051’s P2.1). (Pseudo open-drain)
Key scan output 10 (8051’s P2.2). (Pseudo open-drain)
Key scan output 11 (8051’s P2.3). (Pseudo open-drain)
Key scan output 12 (8051’s P2.4). (Pseudo open-drain)
Key scan output 13 (8051’s P2.5). (Pseudo open-drain)
Key scan output 14 (8051’s P2.6). (Pseudo open-drain)
Key scan output 15 (8051’s P2.7). (Pseudo open-drain)
Key scan output 16. (Pseudo open-drain)
Key scan output 17. (Pseudo open-drain)
General purpose I/O 0. (Pseudo open-drain)
General purpose I/O 1. (Pseudo open-drain)
Mouse data (8051’s P3.0). (Pseudo open-drain)
Mouse clock (8051’s P3.1). (Pseudo open-drain)
General purpose output 0. (Open-drain with 420 ohm serial resistor)
Output pin to drive LED 2. (Open-drain with 420 ohm serial resistor)
Output pin to drive LED 1. (Open-drain with 420 ohm serial resistor)
Output pin to drive LED 0. (Open-drain with 420 ohm serial resistor)
Positive Power Supply.
3.3 Volt USB regulator output. (Must connect to 1uF or larger capacitor)
USB DM / PS2 keyboard data (8051’s P3.5).
USB DP / PS2 keyboard clock (8051’s P3.4).
“Pseudo open-drain” pin is 8051 Port1’s standard. It can sink at least 4mA current when output low level, and
drive at least 4mA current for 2 X’tal cycle when output transit from low to high, then keep drive 100uA to
maintain the pin at high level.
Revision 0.9
-3-
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
FUNCTIONAL DESCRIPTIONS
1. 8051 CPU Core
MTP805 includes all 8051 functions with the following exceptions:
1.1 PSEN, ALE, #RD and #WR pins are disabled. The external RAM access is restricted to XFRs within the
MTP805.
1.2 Port0, port3.2, port3.3, port3.6 and port3.7 are not general-purpose I/O ports. They are dedicated to
special application.
1.3 #INT0 and #INT1 input pin is not provided, it is connected to special interrupt sources.
1.4 UART and Timer1 are not supported.
Note: All registers listed in this document reside in external RAM area (XFR). For internal RAM memory map
please refer to 8051 spec.
2. Memory Allocation
2.1 Internal Special Function Registers (SFR)
The SFR is a group of registers that are the same as standard 8051.
2.2 Internal RAM
There are total 256 bytes internal RAM in MTP805, same as standard 8052.
2.3 External Special Function Registers (XFR)
The XFR is a group of registers allocated in the 8051 external RAM area 00h - 2Fh. Most of the registers are
used for USB function. Program can initialize Ri value and use "MOVX" instruction to access these registers.
FFh
80h
7Fh
Internal RAM
SFR
Accessible by
indirect
addressing only
(Using
MOV A,@Ri
instruction)
Accessible by
direct addressing
2Fh
Internal RAM
Accessible by
indirect external
RAM addressing
(Using
MOVX A,@Ri
instruction
Accessible by
direct and indirect
addressing
00h
00h
Revision 0.9
XFR
-4-
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
3. I/O Pin Usage
3.1 KSO0~7
These pins are direct output from the 8051’s Port1 and dedicated for key scan output. The pin’s input
function is removed. Read 8051’s Port1 is only read the data in the Port1’s output register. These pins are
“Pseudo open-drain” structure.
3.2 KSO8~15
These pins are direct output from the 8051’s Port2 and dedicated for key scan output. The pin’s input
function is removed. Read 8051’s Port2 is only read the data in the Port2’s output register. These pins are
“Pseudo open-drain” structure.
4mA
Read
Data
50uA
2 OSC
period
delay
D
Write
Data
500uA
Pin
Q
4mA
Output
Register
CK
/WR
KSO0~15
3.3 KSO16~17, GPIO0~1
These pins are output from MTP805’s XFR. They can be used as key scan output or general purpose I/O.
Read these pins will read the data on pin. These pins are also “Pseudo open-drain” structure.
4mA
50uA
500uA
1 OSC
period
delay
D
Write
Data
Pin
Q
4mA
Output
Register
Read
Data
CK
/WR
KSO16~17, GPIO0~1
3.4 MSCLK, MSDATA
These pins are connected to 8051’s P3.1 and P3.0. The usage of these pins are the same as standard 8051
except the UART’s function being not provided. These pins are also “Pseudo open-drain” structure.
4mA
Read
Latch
Data
50uA
2 OSC
period
delay
D
Write
Data
500uA
Pin
Q
4mA
Output
Register
Read
Pin
Data
CK
/WR
MSCLK, MSDATA
Revision 0.9
-5-
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
3.5 PS2CLK, PS2DATA
These pins are shared with USB’s DP/DM pins. They are connected to 8051’s P3.4 and P3.5. In PS2 mode,
S/W should keep “ENUSB”=0 and “PS2KB”=1. In USB mode, S/W should keep “ENUSB”=1, “PS2KB”=0 and
P3.4/P3.5 output high. These pins are also “Pseudo open-drain” structure in PS2 mode.
3.3V
4mA
Read
Latch
Data
20uA
2 OSC
period
delay
D
Write
Data
Pin
Q
4mA
USBSIE
Output
Output
Register
CK
/WR
PS2KB
Read
Pin
Data
DP/PS2CLK, DM/PS2DATA
3.6 LED0~2, GPO0
These pins are used to drive LED. Basically, they are open-drain structure. Each one has a 420 ohm serial
resistor when sink pin to low, and has a 100K resistor when drive high. S/W may write data to “LED” register
to control these pins’status. Read “LED” only read the data in the “LED” register, instead of data on the pins.
50uA
Read
Data
D
Write
Data
Q
Pin
Output
Register
420
CK
/WR
4mA
LED0~2, GPO0
3.7 KSI0~7
These pins are used as key scan input. Reading “KSI” register of XFR reflect the data on the pin. These pins
are input only with pull-up resistor on each pin.
Read
Data
Pin
KSI0~7
Revision 0.9
-6-
2000/07/19
MYSON
TECHNOLOGY
MTP805
(Rev. 0.9)
4. USB and PS2 Mode Detection
After reset, the USB transceiver is disable, and the V33 pin is in high impedance state (no 3.3 volt output).
S/W can detect the application is USB mode or PS2 mode by reading P3.4/P3.5. At first, S/W can set
“PS2KB”=1. This control bit is used to enable the internal 250K pull-up resistor on DP/DM pin. If the chip is
connected to USB Hub, the P3.4/P3.5 is 0 because of the 15K pull-down resistor on Hub. Otherwise,
P3.4/P3.5 is 1.
5. Power-down and Idle Mode
The Power-down/Idle mode is activated by S/W setting the PD/IDL bit in 8051’s PCON register. In Powerdown mode, the MTP805’s X’tal stop oscillating. In Idle mode, the 8051’s instruction clock is stop. The
Power-down/Idle mode is released by any enable interrupt. For standard 8051, Power-down mode is
released only by chip reset.
6. Watch-Dog-Timer(WDT) and Low-Voltage-Reset(LVR)
The WDT is enable by setting the “WDTen” bit in XFR. The time out period is 0.64 second. S/W can clear
WDT by writing the WDT register.
The LVR can generate chip reset when VDD is below 3.0 volt, including both power-on and power-off
process.
7. Fast Clock Option
The CPU can run at double clock rate when S/W setting the “FCLKen” bit in XFR. Once setting, the 8051 is
running at the rate as if a 12MHz X’tal is on OSC pins. However, S/W must clear the FCLKen bit before
entering Power-down mode.
8. USB Engine
The USB engine includes the Serial Interface Engine (SIE), the low-speed USB I/O transceiver and the 3.3
Volt Regulator. The SIE block performs most of the USB interface function with only minimum support from
S/W. Three endpoints are supported. Endpoint 0 is used to receive and transmit control (including SETUP)
packets while Endpoint 1 and endpoint 2 are 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
4. TOKEN type identification
5. Address checking
S/W handles the following tasks:
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
8.1 USB Device Address
The USBADR register stores the device address. This register is reset to all 0 after chip reset or USB bus
reset. S/W must write this register a valid value after the USB enumeration process.
8.2 Endpoint 0 receive
After receiving a packet and placing the data into the Endpoint 0 receive FIFO (RC0FIFO), MTP805 updates
the Endpoint 0 status register (EP0STUS) to record the receive status and then generates an Endpoint 0
Revision 0.9
-7-
2000/07/19
MYSON
TECHNOLOGY
MTP805
(Rev. 0.9)
receive interrupt (RC0I). S/W can read the EP0STUS register for the recent transfer 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 token is written into the RC0FIFO, and the
RC0cnt is updated unless Endpoint 0 STALL (EP0stall) is set or Endpoint 0 receive ready (RC0rdy) is
cleared. The SIE clears the RC0rdy automatically and generates RC0I interrupt when the RC0cnt/RC0FIFO
is updated. As long as the RC0rdy is cleared, SIE keep responding NAK to Host’s Endpoint 0 OUT packet
request. S/W should set the RC0rdy flag after the RC0I interrupt is asserted and RC0FIFO is read out.
8.3 Endpoint 0 transmit
After detecting a valid Endpoint 0 IN token, MTP805 automatically transmit the data pre-stored in the
Endpoint 0 transmit FIFO (TX0FIFO) to the USB bus if the Endpoint 0 transmit ready flag (TX0rdy) is set and
the EP0stall is cleared. The number of byte to be transmitted is base on the Endpoint 0 transmit 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 MTP805 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.
8.4 Endpoint 1/2 transmit
Endpoint1 and Endpoint2 are capable of transmit only. These endpoints are enable when the Endpoint1/
Endpoint2 configured control bit (EP1cfgd/EP2cfgd) is set. After detecting a valid Endpoint 1/2 IN token,
MTP805 automatically transmit the data pre-stored in the Endpoint 1/2 transmit FIFO (TX1FIFO/TX2FIFO) to
the USB bus if the Endpoint 1/2 transmit ready flag (TX1rdy/TX2rdy) is set and the EP1stall/EP2stall is
cleared. The number of byte to be transmitted is base on the Endpoint 1/2 transmit byte count register
(TX1cnt/TX2cnt). The DATA0/1 token to be transmitted is base on the Endpoint 1/2 transmit toggle control
bit (TX1tgl/TX2tgl). After the TX1FIFO/TX2FIFO is updated, TX1rdy/TX2rdy should be set to 1. This enables
the MTP805 to respond to an Endpoint 1/2 IN packet. TX1rdy/TX2rdy is cleared and an Endpoint 1/2
transmit interrupt (TX1I/TXI2) is generated once the USB host acknowledges the data transmission. The
interrupt service routine can check TX1rdy/TX2rdy to confirm that the data transfer was successful.
8.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 MTP805 will stall an
Endpoint0 OUT packet with DATA toggle 0 or byte count other than 0. Other USB status flag includes the
USB reset interrupt (RstI), RESUME interrupt (RsmI), and USB Suspend interrupt (SusI).
8.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 X'tal is stop, but CPU can be waken-up by the trigger of enabled interrupt's source.
In short, S/W can keep the RsmI/KbdI/MsI alive before enter the suspend mode.
The MTP805 send Resume signaling to USB bus when Susp=1 and RSMO=1. In the suspend mode, if a
keyboard or mouse interrupt is asserted, S/W should send resume signal to wake up the USB bus.
Revision 0.9
-8-
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
MEMORY MAP of XFR
Reg name
USBADR
INTFLG0
INTEN0
INTFLG1
INTEN1
USBCTR
EP0STUS
TX0CTR
TX1CTR
TX2CTR
KSI
LED
GPIO
WDT
KSIMASK
RC0FIFO
RC0FIFO
RC0FIFO
RC0FIFO
RC0FIFO
RC0FIFO
RC0FIFO
RC0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX0FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX1FIFO
TX2FIFO
TX2FIFO
TX2FIFO
TX2FIFO
TX2FIFO
TX2FIFO
TX2FIFO
TX2FIFO
Revision 0.9
addr
bit7
00h (r/w) ENUSB
01h (r/w)
RC0I
02h (w)
RC0IE
03h (r/w)
04h (w)
PS2KB
05h (r/w)
Susp
06h (r)
RC0tgl
07h (r/w)
TX0rdy
08h (r/w)
TX1rdy
09h (r/w)
TX2rdy
0Ah (r)
KSI7
0Bh (r/w)
0Ch (r/w)
0Dh (w)
WDTen
0Eh (w)
KSImsk7
10h (r)
11h (r)
12h (r)
13h (r)
14h (r)
15h (r)
16h (r)
17h (r)
18h (w)
19h (w)
1Ah (w)
1Bh (w)
1Ch (w)
1Dh (w)
1Eh (w)
1Fh (w)
20h (w)
21h (w)
22h (w)
23h (w)
24h (w)
25h (w)
26h (w)
27h (w)
28h (w)
29h (w)
2Ah (w)
2Bh (w)
2Ch (w)
2Dh (w)
2Eh (w)
2Fh (w)
bit6
bit5
Bit4
TX0I
TX0IE
TX1I
TX1IE
TX2I
TX2IE
bit3
USBadr
RstI
RstIE
bit2
bit1
bit0
SusI
SusIE
RsmI
KbdI
MsI
FclkE
RsmIE
KbdIE
MsIE
RsmO EP1cfgd EP2cfgd RC0rdy CtrRD
RC0err EP0dir EP0set
RC0cnt
TX0tgl EP0stall
TX0cnt (write only)
TX1tgl EP1stall
TX1cnt (write only)
TX2tgl EP2stall
TX2cnt (write only)
KSI6
KSI5
KSI4
KSI3
KSI2
KSI1
KSI0
GPO0
LED2
LED1
LED0
GPIO1 GPIO0 KSO17 KSO16
KSImsk6 KSImsk5 KSImsk4 KSImsk3 KSImsk2 KSImsk1 KSImsk0
Endpoint 0 receive FIFO 1st byte
Endpoint 0 receive FIFO 2nd byte
Endpoint 0 receive FIFO 3rd byte
Endpoint 0 receive FIFO 4th byte
Endpoint 0 receive FIFO 5th byte
Endpoint 0 receive FIFO 6th byte
Endpoint 0 receive FIFO 7th byte
Endpoint 0 receive FIFO 8th byte
Endpoint 0 transmit FIFO 1st byte
Endpoint 0 transmit FIFO 2nd byte
Endpoint 0 transmit FIFO 3rd byte
Endpoint 0 transmit FIFO 4th byte
Endpoint 0 transmit FIFO 5th byte
Endpoint 0 transmit FIFO 6th byte
Endpoint 0 transmit FIFO 7th byte
Endpoint 0 transmit FIFO 8th byte
Endpoint 1 transmit FIFO 1st byte
Endpoint 1 transmit FIFO 2nd byte
Endpoint 1 transmit FIFO 3rd byte
Endpoint 1 transmit FIFO 4th byte
Endpoint 1 transmit FIFO 5th byte
Endpoint 1 transmit FIFO 6th byte
Endpoint 1 transmit FIFO 7th byte
Endpoint 1 transmit FIFO 8th byte
Endpoint 2 transmit FIFO 1st byte
Endpoint 2 transmit FIFO 2nd byte
Endpoint 2 transmit FIFO 3rd byte
Endpoint 2 transmit FIFO 4th byte
Endpoint 2 transmit FIFO 5th byte
Endpoint 2 transmit FIFO 6th byte
Endpoint 2 transmit FIFO 7th byte
Endpoint 2 transmit FIFO 8th byte
-9-
2000/07/19
MYSON
TECHNOLOGY
MTP805
(Rev. 0.9)
USBADR (r/w) :USB device address and enable.
ENUSB = 1
→ Enable USB function, clear while chip reset.
USBadr :
USB device address, clear while chip reset or USB bus reset.
INTFLG0 (w) : Interrupt flag. A interrupt event will set its individual flag, and, if the corresponding interrupt
enable bit is set, the 8051’s INT0 source will be driven by a zero level. Software MUST clear
this register while serve the interrupt routine.
RC0I = 1
→ No action.
=0
→ Clear RC0I flag.
TX0I = 1
→ No action.
=0
→ Clear TX0I flag.
TX1I = 1
→ No action.
=0
→ Clear TX1I flag.
TX2I = 1
→ No action.
=0
→ Clear TX2I flag.
RstI
=1
→ No action.
=0
→ Clear RstI flag.
SusI
=1
→ No action.
=0
→ Clear SusI flag.
INTFLG0 (r) :
RC0I
TX0I
TX1I
TX2I
RstI
SusI
Interrupt flag.
=1
→ Endpoint 0 has completed a receive transfer and save the data in RC0FIFO.
=1
→ Endpoint 0 has completed a transmit transfer and empty TX0FIFO.
=1
→ Endpoint 1 has completed a transmit transfer and empty TX1FIFO.
=1
→ Endpoint 2 has completed a transmit transfer and empty TX2FIFO.
=1
→ Indicates the USB bus reset condition.
=1
→ Indicates the USB bus suspend request (no bus activity for 3ms).
INTEN0 (w) :
RC0IE
TX0IE
TX1IE
TX2IE
RstIE
SusIE
Interrupt enable.
=1
→ Enable RC0I interrupt.
=1
→ Enable TX0I interrupt.
=1
→ Enable TX1I interrupt.
=1
→ Enable TX2I interrupt.
=1
→ Enable RstI interrupt.
=1
→ Enable SusI interrupt.
INTFLG1 (w) : Interrupt flag. A interrupt event will set its individual flag, and, if the corresponding interrupt
enable bit is set, the 8051’s INT1 source will be driven by a zero level. Software MUST clear
this register while serve the interrupt routine.
RsmI = 1
→ No action.
=0
→ Clear RsmI flag.
KbdI
=1
→ No action.
=0
→ Clear KbdI flag.
MsI
=1
→ No action.
=0
→ Clear MsI flag.
INTFLG1 (r) :
RsmI
KbdI
MsI
Interrupt flag.
=1
→ Indicates the USB bus RESUME condition in suspend mode.
=1
→ Indicates a low input has been detected on anyone of the KSI pins.
=1
→ Indicates a low input has been detected on the MSCLK pin.
INTEN1 (w) : Interrupt enable.
PS2KB = 1
→ Enable the pull up resistors on DP/PS2CLK and DM/PS2DATA pins.
FclkE = 1
→ Enable the CPU’s faster clock, MUST be cleared before power-down.
Revision 0.9
- 10 -
2000/07/19
MYSON
TECHNOLOGY
RsmIE = 1
KbdIE = 1
MsIE = 1
MTP805
(Rev. 0.9)
→ Enable RsmI interrupt.
→ Enable KbdI interrupt.
→ Enable MsI interrupt.
USBCTR (r/w) : USB control register.
Susp = 1
→ S/W force USB interface into suspend mode.
RsmO = 1
→ S/W force USB interface send RESUME signal in suspend mode.
EP1cfgd = 1
→ Endpoint 1 is configed.
EP2cfgd = 1
→ Endpoint 2 is configed.
RC0rdy = 1
→ Enable the Endpoint 0 to respond to OUT token.
=0
→ Endpoint 0 will respond NAK to OUT token.
This bit can be set or cleared by S/W, clear by H/W while RC0I occurs.
CtrRD = 1
→ MTP805 will stall an invalid OUT token during Control Read transfer.
EP0STUS (r) : Endpoint 0 status.
RC0tgl = 1
→ Receive a DATA1 packet.
=0
→ Receive a DATA0 packet.
RC0err = 1
→ Receive DATA packet error.
=0
→ Receive DATA packet good.
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 :
Last transfer's receive byte count.
TX0CTR (r/w) : Endpoint 0 transmit control register.
TX0rdy = 1
→ Enable the Endpoint 0 to respond to IN token.
=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 ack the transfer.
TX0tgl = 1
→ Endpoint 0 will transmit DATA1 packet.
=0
→ Endpoint 0 will transmit DATA0 packet.
EP0stall = 1
→ Endpoint 0 will stall OUT/IN packet.
TX0cnt (w) :
Endpoint 0 transmit byte count, write only.
TX1CTR (r/w) : Endpoint 1 transmit control register.
TX1rdy = 1
→ Enable the Endpoint 1 to respond to IN token.
=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 ack the transfer.
TX1tgl = 1
→ Endpoint 1 will transmit DATA1 packet.
=0
→ Endpoint 1 will transmit DATA0 packet.
EP1stall = 1
→ Endpoint 1 will stall IN packet.
TX1cnt (w) :
Endpoint 1 transmit byte count, write only.
TX2CTR (r/w) : Endpoint 1 transmit control register.
TX2rdy = 1
→ Enable the Endpoint 2 to respond to IN token.
=0
→ Endpoint 2 will respond NAK to IN token.
This bit can be set or cleared by S/W, clear by H/W while Host ack the transfer.
TX2tgl = 1
→ Endpoint 2 will transmit DATA1 packet.
=0
→ Endpoint 2 will transmit DATA0 packet.
EP2stall = 1
→ Endpoint 2 will stall IN packet.
TX2cnt (w) :
Endpoint 1 transmit byte count, write only.
KSI (r) :
KSI7~0’s read result.
LED (w) :
Data load into the GPO0 / LED2~0 output latch.
Revision 0.9
- 11 -
2000/07/19
MYSON
TECHNOLOGY
LED (r) :
Data read from the GPO0 / LED2~0 output latch.
GPIO (w) :
Data load into the GPIO1~0 / KSO17~16 output latch.
GPIO (r) :
Data read from the GPIO1~0 / KSO17~16 pin.
MTP805
(Rev. 0.9)
WDT (w) :
Write this register to clear Watch-Dog-Timer.
WDTen = 1
→ Enable Watch-Dog-Timer.
KSIMASK (w) : Determine whether the key scan input can generate interrupt or not.
KSImsk(n) = 1 → KSI(n) can not generate keyboard interrupt.
KSImsk(n) = 0 → KSI(n) can generate keyboard interrupt.
RC0FIFO (r) :
Endpoint 0 receive FIFO registers.
TX0FIFO (w) : Endpoint 0 transmit FIFO registers.
TX1FIFO (w) : Endpoint 1 transmit FIFO registers.
TX2FIFO (w) : Endpoint 2 transmit FIFO registers.
Revision 0.9
- 12 -
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
ELECTRICAL PARAMETERS
1. Absolute Maximum Ratings
at: Ta= 0 to 70 oC, VSS=0V
Name
Maximum Supply Voltage
Maximum Input Voltage
Maximum Output Voltage
Maximum Operating Temperature
Maximum Storage Temperature
Symbol
VDD
Vin
Vout
Topg
Range
-0.3 to +6.0
-0.3 to VDD+0.3
-0.3 to VDD+0.3
0 to +70
Unit
V
V
V
oC
Tstg
-25 to +125
oC
2. Allowable Operating Conditions
at: Ta= 0 to 70 oC, VSS=0V
Name
Supply Voltage
Input "H" Voltage
Input "L" Voltage
Operating Freq.
Symbol
VDD
Vih1
Vil1
Fosc
Min.
4.5
0.7 x VDD
-0.3
6
Max.
5.5
VDD +0.3
0.15 x VDD
6
Unit
V
V
V
MHz
Min.
Max.
6
20
3. DC Characteristics
at: Ta= 25 oC, VSS=0V, VDD=5V, Fosc=6MHz
Name
Symbol
Active current
Icc
Power Down current
Ipd
Output High Voltage @ Ioh=-100u
Voh
Output Low Voltage @ Iol=4mA
Vol
LED sink current @ Vol=3.2V
Iled
RST pin pull down resistor
Rrst
KSI pin pull up resistor
Rksi
V33 output voltage
V33
6.2
50
50
3.2
150
100
3.4
Unit
mA
uA
V
V
mA
Kohm
Kohm
V
Min.
75
75
1.3
Max.
300
300
2.0
Unit
ns
ns
V
4.0
0.45
4. AC Characteristics
at: Ta= 25 oC, VSS=0V, VDD=5V, Fosc=6MHz
Name
Symbol
DP/DM rise time
Trise
DP/DM fall time
Tfall
DP,DM cross point
Vx
* note: all USB transceiver characteristic can meet USB 1.1 spec
Revision 0.9
- 13 -
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
PACKAGE DIMENSION
1. 40-pin PDIP 600 mil
52.197mm +/-0.127
1.981mm
+/-0.254
1.270mm +/-0.254
0.457mm +/-0.127
2.540mm
15.494mm +/-0.254
13.868mm +/-0.102
0.254mm
+/-0.102
1.778mm
+/-0.127
3.81mm
+/-0.127
0.254mm
(min.)
3.302mm
+/-0.254
5o~70
6o +/-3o
16.256mm +/-0.508
2. 42 pin SDIP Unit: mm
Symbol
A
A1
B1
D
E1
F
eB
θ
Dimension in mm
Min
3.937
1.78
0.914
36.78
13.945
15.19
15.24
0°
15.494mm +/0.254
13.868mm +/0.102
Nom
4.064
1.842
1.270
36.83
13.970
15.240
16.510
7.5°
Max
4.2
1.88
1.118
36.88
13.995
15.29
17.78
15°
0.254m
m
+/-0.102
5o~7
0
6o +/o
16.256mm +/- 3
0.508
Revision 0.9
- 14 -
2000/07/19
MTP805
(Rev. 0.9)
MYSON
TECHNOLOGY
3. 44 pin PLCC Unit:
PIN #1 HOLE
0.045*450
0.180 MAX.
0.020 MIN.
0.013~0.021 TYP.
0.690 +/-0.005
0.610 +/-0.02
0.653 +/-0.003
0.500
70TYP.
0.010
0.050 TYP.
0.026~0.032 TYP.
0.070
0.070
0.653 +/-0.003
0.690 +/-0.005
Ordering Information
Standard configurations:
Prefix
Part Type
MTP
Part Numbers:
Prefix
MTP
MTP
MTP
Revision 0.9
805
Part Type
805
805
805
Package Type
N: PDIP
S: SDIP
V: PLCC
Package Type
N
S
V
- 15 -
2000/07/19