•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 specia lly 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.
BL OCK DIAGRAM
This datasheet contains new product information. Myson Technology reserv es 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.
OGeneral purpose output 0. (Open-drain with 420 ohm serial resistor)
OOutput pin to drive LED 2. (Open-drain with 420 ohm serial resistor)
OOutput pin to drive LED 1. (Open-drain with 420 ohm serial resistor)
OOutput pin to drive LED 0. (Open-drain with 420 ohm serial resistor)
-Positive Power Supply.
O3.3 Volt USB regulator output. (Must connect to 1uF or larger capacitor)
“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
Page 4
MYSON
MTP805
TECHNOLOGY
(Rev. 0.9)
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 Allo cati on
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
Internal RAM
Accessible by
addressing only
MOV A,@Ri
instruction)
80h
7Fh
Internal RAM
Accessible by
direct and indirect
addressing
00h
indirect
(Using
SFR
Accessible by
direct addressing
2Fh
Accessible by
indirect external
RAM addressing
MOVX A,@Ri
00h
XFR
(Using
instruction
Revision 0.9 - 4 - 2000/07/19
Page 5
MYSON
MTP805
TECHNOLOGY
(Rev. 0.9)
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.
Read
Data
Write
Data
/WR
Output
Register
CK
4mA50uA
2 OSC
period
delay
QD
4mA
500uA
Pin
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.
Write
Data
/WR
Output
Register
CK
4mA50uA
1 OSC
period
delay
QD
4mA
Read
Data
500uA
Pin
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.
Read
Latch
Data
Write
Data
/WR
Output
Register
CK
4mA50uA
2 OSC
period
delay
QD
4mA
Read
Pin
Data
500uA
Pin
MSCLK, MSDATA
Revision 0.9 - 5 - 2000/07/19
Page 6
MYSON
MTP805
TECHNOLOGY
(Rev. 0.9)
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
Read
Latch
Data
Write
Data
/WR
Output
Register
CK
2 OSC
period
delay
QD
PS2KB
4mA20uA
4mA
USBSIE
Output
Read
Pin
Data
Pin
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.
Read
Data
Write
Data
/WR
Output
Register
CK
QD
50uA
Pin
420
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
Page 7
MYSON
MTP805
TECHNOLOGY
4. USB and PS2 Mode Detecti o n
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 firs t, 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-dow n 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 Lo w-Volt age-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.
(Rev. 0.9)
7. Fast Clock Optio n
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 af ter chip rese t 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
Page 8
MYSON
MTP805
TECHNOLOGY
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 a lways 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 ena ble when the Endpoint1/
Endpoint2 configured control bit (EP1cfgd/EP2cfgd) is set. After detecting a valid Endp oint 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 (TX1rd y/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 tra nsmit 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 dat a transmission. The
interrupt service routine can check TX1rdy/TX2rdy to confirm that the data transfer was successful.
(Rev. 0.9)
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 MTP8 05 will stall an
Endpoint0 OUT packet with DATA toggle 0 or byte count other than 0. Other US B stat us 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.
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) : Interrupt flag.
RC0I= 1→ Endpoint 0 has completed a receive transfer and save the data in RC0FIFO.
TX0I= 1→ Endpoint 0 has completed a transmit transfer and empty TX0FIFO.
TX1I= 1→ Endpoint 1 has completed a transmit transfer and empty TX1FIFO.
TX2I= 1→ Endpoint 2 has completed a transmit transfer and empty TX2FIFO.
RstI= 1→ Indicates the USB bus reset condition.
SusI= 1→ Indicates the USB bus suspend request (no bus activity for 3ms).
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) : Interrupt flag.
RsmI= 1→ Indicates the USB bus RESUME condition in suspend mode.
KbdI= 1→ Indicates a low input has been detected on anyone of the KSI pins.
MsI= 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.
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.
(Rev. 0.9)
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.
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
Page 12
MYSON
MTP805
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.
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.
Maximum Supply VoltageVDD-0.3 to +6.0V
Maximum Input VoltageVin-0.3 to VDD+0.3V
Maximum Output VoltageVout-0.3 to VDD+0.3V
Maximum Operating TemperatureTopg0 to +70o
Maximum Storage TemperatureTstg-25 to +125o
2. Allowable Operating Condit io n s
at: Ta= 0 to 70 oC, VSS=0V
NameSymbolMin.Max.Unit
Supply VoltageVDD4.55.5V
Input "H" VoltageVih10.7 x VDDVDD +0.3V
Input "L" VoltageVil1-0.30.15 x VDDV
Operating Freq.Fosc66MHz
C
C
3. DC Characteri s t i c s
at: Ta= 25 oC, VSS=0V, VDD=5V, Fosc=6MHz
NameSymbolMin.Max.Unit
Active currentIcc6mA
Power Down currentIpd20uA
Output High Voltage @ Ioh=-100uVoh4.0V
Output Low Voltage @ Iol=4mAVol0.45V
LED sink current @ Vol=3.2VIled6.2m A
RST pin pull down resistorRrst50150Kohm
KSI pin pull up resistorRksi50100Kohm
V33 output voltageV333.23.4V
4. AC Characterist ic s
at: Ta= 25 oC, VSS=0V, VDD=5V, Fosc=6MHz
NameSymbolMin.Max.Unit
DP/DM rise timeTrise75300ns
DP/DM fall timeTfall75300ns
DP,DM cross pointVx1.32.0V
* note: all USB transceiver characteristic can meet USB 1.1 spec
Revision 0.9 - 13 - 2000/07/19
Page 14
MYSON
MTP805
TECHNOLOGY
PACKAGE DIMENSION
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
2.540mm0.457mm +/-0.1271.270mm +/-0.254
(Rev. 0.9)
15.494mm +/-0.254
1.778mm
+/-0.127
0.254mm
(min.)
13.868mm +/-0.102
5o~7
16.256mm +/-0.508
0
6o +/-3
0.254mm
o
+/-0.102
Symbol
Dimension in mm
MinNomMax
A3.9374.0644.2
A11.781.8421.88
B10.9141.2701.118
D36.7836.8336.88
E113.9 4513.97013.995
F15.1915.24015.29
eB15.2416.51017.78
θ 0° 7.5° 15°
15.494mm +/-
0.254
13.868mm +/-
0.102
5o~7
16.256mm +/-
0.508
0
6o +/-
3
0.254m
m
+/-0.102
o
Revision 0.9 - 14 - 2000/07/19
Page 15
MYSON
MTP805
3. 44 pin PLCC Unit:
0
0.045*45
0.050 TYP.
0.653 +/-0.003
0.690 +/-0.005
TECHNOLOGY
PIN #1 HOLE
0.690 +/-0.005
0.653 +/-0.003
0.026~0.032 TYP.
(Rev. 0.9)
0.180 MAX.
0.013~0.021 TYP.
70TYP.
0.0700.070
0.020 MIN.
0.610 +/-0.02
0.500
0.010
Ordering Inform ation
Standard configurations:
PrefixPart Typ ePackage Type
N: PDIP
MTP 805
Part Numbers:
PrefixPart TypePackage Type
MTP805N
MTP805S
MTP805V
S: SDIP
V: PLCC
Revision 0.9 - 15 - 2000/07/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.