Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 121 of 157
Apr 1, 2013
2. Pipe definition item 2
Specify the values to be set in the pipe configuration register.
Transfer type : Specify either USB_BULK or USB_INT.
BRDY operation designation : Specify USB_BFREOFF.
Double buffer mode : Specify either USB_DBLBON or USB_DBLBOFF.
Continuous transmit/receive mode : Specify either USB_CNTMDON or USB_CNTMDOFF.
SHTNAK operation designation : Specify either USB_SHTNAKON or USB_SHTNAKOFF.
Transfer direction : Specify either USB_DIR_H_OUT or USB_DIR_H_IN.
Endpoint number : Specify the endpoint number (EP1 to EP15).
Restrictions
(1). The values that can be set for the transfer type differ according to the selected pipe. For details, refer to the
hardware manual of the corresponding device.
(2). For a pipe set to the receive direction, specify USB_SHTNAKON
(3). The continuous transfer mode setting is only valid for R8A66597.
(4). The same endpoint number may not be set for pipes with different direction settings
3. Pipe definition item 3
Only for R8A66597. Specify the settings for the pipe buffer designation register.
Buffer size : Specify the pipe buffer size in 64-byte units.
Buffer start number : Specify the buffer start number.
Restrictions
(1). Make settings such that buffer areas in use at the same time do not overlap
(2). When the USB_DBLBON setting is used, twice the area is needed
4. Pipe definition item 4
Specify the settings for the pipe maximum packet size register
Maximum packet size : Specify the maximum packet size for the pipe.
Restrictions
(1). The Max packet size which can be specified changes with devices. For details, please refer to the hardware
manual of each device
5. Pipe definition item 5
Specify the settings for the pipe period control register.
In-buffer flush : specify USBC_IFISOFF.
Interval duration : Specify the interval value (0 to 7).
Restrictions
(1). When a transmission type is set up in addition to USB_ISO, the ISO IN buffer flash should set up
USB_IFISOFF.
(2). When selecting pipes 3 to 5, specify value 0 for the interval duration.