
Universal Serial Bus
Specifications in this manual are tentative and subject to change
Rev. E
MITSUBISHI MICROCOMPUTERS
M30245 Group
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
96
Bit Symbol
Bit Name
Function
R W
Symbol
EPxI (x = 0 - 4)
Address
02E0
16, 02E416,
02E8
16, 02EC16, 02F016
When reset
N/A
USB Endpoint x IN FIFO Data register
b7
(b15)
(b8)
b0
DATA_15-0
b7
b0
EP0 IN FIFO Data
X O
Note 1: Data is undefined if this register is read.
Note 2: Write only to this register with a Word command or a Byte command to the lower 8 bits.
Do not write a byte of data to the upper 8 bits. (b8 - b15)
USB Endpoint x OUT FIFO configuration Register (x = 1 to 4)
The USB Endpoint x OUT FIFO Configuration Register, shown in Figure 1.64, is used to select various
FIFO configurations. When double buffer bit is set, the effective buffer size = 2 x BUF_SIZ. Therefore other
EP FIFO buffer’s starting locations have to be 2 x BUF_SIZ apart.
The user should ensure:
Buffer Starting Location + Buffer Size do not exceed the 3K byte boundary.
Endpoint buffers do not overlap with each other.
Figure 1.64. USB Endpoint x OUT FIFO register (EPxOFC)
USB Endpoint x IN FIFO Data Registers (x = 0 to 4)
The USB Endpoint x IN FIFO Data Registers, shown in Figure 1.65 are the USB IN (transmit) FIFO data
registers. The CPU writes data to these registers for the respective Endpoint IN FIFO.
Bit Symbol
Bit Name
Function
R W
O O
Symbol
EPxOFC (x = 1 - 4)
Address
02BC
16, 02C416,
02CC
16, 02D416
When reset
0000
16
USB Endpoint x OUT FIFO Configuration register
b7
(b15)
(b8)
b0
BUF_NUM
BUF_SIZ
DBL_BUF
CONTINUE
Reserved
b7
b0
00 0
FIFO buffer
start number
FIFO buffer size
Double buffer mode
Continuous transfer
mode
O O
0
Select the starting number for the EPx OUT FIFO
(in units of 64 bytes)
000000 : buffer starting location = 0
000001 : buffer starting location = 64
000010 : buffer starting location = 128
......
101111 : buffer starting location = 3008 (last starting number)
Select the buffer size for the EPx OUT FIFO
(in units of 64 bytes)
0000 : buffer size = 64
0001 : buffer size = 128
0010 : buffer size = 192
......
1111 : buffer size = 1024 (largest buffer size)
0 : Disabled
1 : Enabled
0 : Disabled (Note)
1 : Enabled
Must always be set to "0"
O O
Note: Valid for bulk transfer type only
Figure 1.65. USB Endpoint x IN FIFO Data register (EPxI)