Renesas M16C Series User Manual page 196

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30245 Group
USB endpoint x(x=1 to 4) OUT FIFO configuration register
This register sets endpoint x(x=1~4) OUT FIFO.
•BUF_NUM
This bit sets the starting location of the endpoint x(x= 1~4) OUT FIFO per 64 bytes. For example,
when OUT FIFO is allocated, starting at the 320th byte, the set value is "000101
•BUF_SIZ
This bit sets one buffer size of the endpoint x(x= 1~4) OUT FIFO per 64 bytes. For example, when
256 bytes is set, the set value is "0100
•DBL_BUF
www.DataSheet4U.com
With this bit being set to "1", OUT FIFO of the corresponding endpoint is changed into double buffer
mode. The byte count for a valid OUT FIFO becomes twice as much as the value specified by the
BUF_SIZ at the time of double buffer. Set carefully not to overlap with the FIFO start position of other
endpoints.
•CONTINUE
This bit enables continuous transfer mode.
Set this bit to "1" when continuous transfer is enabled. The bit is valid only in bulk transfer.
The USB function control unit writes the receive data from the host PC in OUT FIFO sequentially by
one packet size (the maximum packet size set in the EPxOMP) and receives continuously until one
buffer full or a short packet is received.
When continuous receive mode is enabled, the BUF_SIZ has to be equal to an integral multiple of
the EPxOMP. Further, the user's system has to be comprehended beforehand that the receive data
from the host PC are equal to the buffer size or includes a short packet.
Pay attention to the following when setting the BUF_NUM/BUF_SIZ:
- Not exceed 3072 bytes in OUT FIFO starting location + OUT FIFO size.
- Not overlap Endpoint FIFOs each other.
USB Endpoint x OUT FIFO register
(b15)
b7
0 0 0 0
Figure 2.8.43. USB endpoint x(x=1 to 4) OUT FIFO configuration register
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
(b8)
b0
b7
b0
Bit Symbol
BUF_NUM
BUF_SIZ
DBL_BUF
CONTINUE
Reserved
Note: Valid for bulk transfer type only
page 187 of 354
".
2
Symbol
Address
02BC
, 02C4
EPxOFC (x = 1 - 4)
16
02CC
, 02D4
16
Bit Name
Select the starting number for the EPx OUT FIFO
FIFO buffer
(in units of 64 bytes)
start number
000000 : buffer stating location = 0
000001 : buffer stating location = 64
000010 : buffer stating location = 128
......
101111 : buffer stating location = 3008 (last starting number)
Select the buffer size for the EPx OUT FIFO
FIFO buffer size
(in units of 64 bytes)
0000 : buffer stating location = 64
0001 : buffer stating location = 128
0010 : buffer stating location = 192
......
1111 : buffer stating location = 1024 (largest buffer size)
0 : Disabled
Double buffer mode
1 : Enabled
Continuous transfer
0 : Disabled (Note)
mode
1 : Enabled
Must always be "0"
2. USB function
".
2
When reset
,
0000
16
16
16
Function
R W
O O
O O
O O
O O
O O

Advertisement

Table of Contents
loading

Table of Contents