Instruction manual
Renesas USB MCU and USB ASSP USB Basic Host and Peripheral firmware
R01AN0512EJ0210 Rev.2.10 Page 58 of 157
Apr 1, 2013
1). Pipe definition item 1
Specify the value to be set in the Pipe Window select register.
Pipe select : Specify the selected pipe (USB_PIPE1 to USB_PIPE9)
Restrictions
-
2). Pipe definition item 2
Specify the values to be set in the Pipe Configuration register. This item consists of 7 bit-fields and is set by OR-ing
together the respective field values (macros) below:
Transfer type : Specify one among USB_BULK, USB_INT
BRDY operation designation : Specify either USB_BFREON or USB_BFREOFF
Double buffer mode : Specify either USB_DBLBON or USB_DBLBOFF
Continuous transmit/receive mode : Specify USB_CNTMDOFF
SHTNAK operation designation : Specify either USB_SHTNAKON or USB_SHTNAKOFF
Transfer direction : Specify either USB_DIR_P_OUT or USB_DIR_P_IN.
Endpoint number : Specify the endpoint number (EP1 to EP15)
Restrictions
• 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.
• For a pipe set to the receive direction, specify USBC_SHTNAKON.
• The continuous transfer mode setting is only valid for R8A66597/R8A66593.
• The same endpoint number may not be set for pipes with different direction settings.
3). Pipe definition item 3
Specify the settings for the Pipe Buffer Designation register. This item is only for R8A66597/R8A66593.
Buffer size : Specify the pipe buffer size in 64-byte units
Buffer number : Specify the buffer start number
Restrictions
• Make settings such that buffer areas in use at the same time do not overlap.
• 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
• The values that can be set for the maximum packet size differ according to the device.
For details, refer to the hardware manual of the corresponding device.
5). Pipe definition item 5
Specify the settings for the Pipe Period Control register. See the HW manual for more information.
In-buffer flush : Specify USBC_IFISOFF.
Interval duration : Specify the interval value (0 to 7).
Restrictions
• When transfer type other than USB_ISO is used, set USB_IFISOFF to ISO IN buffer flash.
• When selecting pipes 3 to 5, specify value 0 for the interval duration.
6). Pipe definition item 6
Specify the FIFO port for the pipe to use, and how to access it.