MDT13P02
(18) EP0RXS: R2A
USB Endpoint 0 receive status
Bit
0
1
2
3
4
5
6
7
Symbol
SETUP
OUT
IN
DATA 1/0
COUNT0
COUNT1
COUNT2
COUNT3
Function
Bit 0 is set to 1 when a SETUP packet is received
Bit 1 is set to 1 when a OUT packet received
Bit 2 is set to 1 when a IN packet received
DATA Toggle status
The number of bytes received in DATA packet
The number of bytes received in DATA packet
The number of bytes received in DATA packet
The number of bytes received in DATA packet
(19) INTCON1: R2B
Interrupt control register1
Bit
0
1
2
3
4
5
6
7
Symbol
EP0IF
EP1IF
EP2IF
--
EP0IE
EP1IE
EP2IE
--
Endpoin 0 interrupt flag
Endpoin 1 interrupt flag
Endpoin 2 interrupt flag
Read as “0”
Function
Endpoint 0 interrupt enable bit, 0: Disable/1: Enable
Endpoint 1 interrupt enable bit, 0: Disable/1: Enable
Endpoint 2 interrupt enable bit, 0: Disable/1: Enable
Read as “0”
(20) STATUS1: R2C
Status register1
Bit
0
1
2
3
4
5
7~6
Symbol
PS2CLK
Function
PS2 CLK pull-up, 0: Disable/1: Enable
PB5/CLKO 0: PB5/1: CLKO
USBPS2
0: USB mode/1: PS2 mode
SUSPEND 0: Normal mode/1: Sleep mode
POR
USBR
--
Power on reset
USB reset
Read as “0”
This specification are subject to be changed without notice. Any latest information
please preview http;//www.mdtic.com.tw
P. 10
2007/8 Ver. 1.0