
Universal Serial Bus
89
Specifications in this manual are tentative and subject to change
Rev. E
MITSUBISHI MICROCOMPUTERS
M30245 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
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.
Bit Symbol
Bit Name
Function
R W
Must always be "0"
Symbol
EP0CS
Address
0298
16
When reset
2000
16
USB Endpoint 0 Control and Status register
b7
(b15)
(b8)
b0
EP0CSR0
EP0CSR1
EP0CSR2
EP0CSR3
EP0CSR4
EP0CSR5
EP0CSR6
EP0CSR7
EP0CSR8
EP0CSR9
EP0CSR10
EP0CSR11
EP0CSR12
EP0CSR13
b7
b0
OUT_BUF_RDY flag
IN_BUF_RDY flag
SETUP flag
DATA_END flag
FORCE_STALL flag
SETUP_END flag
CLR_OUT_BUF_RDY
SET_IN_BUF_RDY
CLR_SETUP
SET_DATA_END
CLR_FORCE_STALL
CLR_SETUP_END
SEND_STALL
DATA_END_MASK
O X
Reserved
0
O O
0 : No setup packet or data set ready for unload
1 : Setup packet or data set ready for unload
O X
O O
0 : No data set ready for transmit
1 : Data set ready for transmi
t
0 : No setup packet ready for unload
1 : Data set ready for transmit
0 : DATA_END not set by CPU or DATA-END is set by CPU
then status phase starts
1 : DATA-END set by CPU
0 : No protocol violation detected
1 : Protocol violation detected
0 : No premature completion of control transfer
1 : Premature completion of control transfer
0 : No action
1 : Data set unloaded from the OUT buffer
0 : No action
1 : Data set loaded in IN buffer (sets IN_BUF_RDY flag)
0 : No action
1 : Clears SETUP flag
0 : No action
1 : Last data pcket transferred to/from buffer
0 : No action
1 : Clears FORCE_STALL flag
0 : No action
1 : Clears SETUP_END flag
0 : No EP0 STALL by CPU
1 : EP0 STALL by CPU
0 : Clearing DATA_END event causing EP0 interrupt is
unmasked
1 : Clearing DATA_END event causing EP0 interrupt is
masked
Note
Note: Always read a "0"
0
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