![](http://datasheet.mmic.net.cn/30000/M30245MC-XXXGP_datasheet_2358670/M30245MC-XXXGP_91.png)
M30245 Group
Universal Serial Bus
Rev.2.00
Oct 16, 2006
page 89 of 264
REJ03B0005-0200
Bit Symbol
Bit Name
Function
R W
Symbol
EPxOCS (x = 1 - 4)
Address
02B6
16, 02BE16,
02C6
16, 02CE16
When reset
0000
16
USB Endpoint x OUT Control and Status register
b7
(b15)
(b8)
b0
OUTxCSR0
OUTxCSR1
OUTxCSR2
OUTxCSR3
OUTxCSR4
OUTxCSR5
OUTxCSR6
OUTxCSR7
OUTxCSR8
OUTxCSR9
OUTxCSR10
OUTxCSR11
OUTxCSR12
OUTxCSR13
Reserved
b7
b0
OUT_BUF_STS0 flag
OUT_BUF_STS1 flag
OVER-RUN flag
FORCE_STALL flag
DATA_ERR flag
CLR_OUT_BUF_RDY
CLR_OVER_RUN
CLR_FORCE_STALL
CLR_DATA_ERR
TOGGLE_INIT
FLUSH
ISO
SEND_STALL
AUTO_CLR
O X
0
O O
O X
O O
These two bits indicate the EPx OUT buffer status:
Bit1
Bit0
0
0 : No data set in the OUT buffer
0
1 : Single buffer mode: N/A
Double buffer mode: N/A
1
0 : Single buffer mode: N/A
Double buffer mode: one data set in the OUT buffer
1
1 : Single buffer mode: one data set in the OUT buffer
Double buffer mode: two data sets in the OUT buffer
0 : No over run detected
1 : Over run detected
0 : No packet size larger than MAXP violation detected
1 : Packet size larger than MAXP violation detected
0 : No data error detected
1 : Data error detected
0 : No action
1 : Data set unloaded from the OUT buffer (updates status flags)
0 : No action
1 : Clears OVER_RUN flag
0 : No action
1 : Clears FORCE_STALL flag
0 : No action
1 : Clears DATA_ERR flag
0 : No action
1 : Initialize the next data PID as a DATA0 for reception
0 : No action
1 : Flush out one data set
0 : Select non-isochronous endpoint
1 : Select isochronous endpoint
0 : No STALL by CPU
1 : STALL by CPU
0 : AUTO_CLR disabled
1 : AUTO_CLR enabled
Must always be set to "0"
Note
Note: Always read a "0" when writing to this bit
0
O X
O O
Note
O O
Note
O O
Note
O O
Note
Figure 1.55. USB Endpoint 0 Control and Status register (EP0CS)
USB Endpoint 0 MAXP Register
The USB Endpoint 0 MAXP Register, shown in Figure 1.56, indicates the maximum packet size (MAXP) of an EP0 IN/
OUT packet. The default value for EP0 MAXP is 8 bytes. It also contains the enable bits for Control write continuous
transfer and control read continuous transfer.
Figure 1.56. USB Endpoint 0 MAXP register (EP0MP)
Bit Symbol
Bit Name
Function
R W
Must always be "0"
O O
Symbol
EP0MP
Address
029A
16
When reset
0008
16
USB Endpoint 0 MAXP register
b7
(b15)
(b8)
b0
EP0MP6-0
b7
b0
0 0000 0
Maximum packet size
O O
0
WRT_CONT
RD_CONT
Reserved
Control Write continuous transfer mode
Control Read continuous transfer mode
0 : Disabled
1 : Enabled
0 : Disabled
1 : Enabled
O O