How-To Guide

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 870 of 1852
Nov 30, 2020
RX23W Group 32. USB 2.0 Host/Function Module (USBc)
FIFO Port Bit
Accessing the FIFO port bits allows reading the received data from the FIFO buffer or writing the transmit data to the
FIFO buffer.
Each FIFO port register can be accessed only while the FRDY flag in each FIFO port control register (CFIFOCTR,
D0FIFOCTR, or D1FIFOCTR) is 1.
The valid bits in a FIFO port register depend on the settings of the corresponding MBW bit of the FIFO port select
register (CFIFOSEL, D0FIFOSEL, or D1FIFOSEL).
When the MBW bit is 1 (16-bit width), the data arrangement may differ from the data arrangement on the RAM
depending on the value of the MDE.MDE[2:0] bits and the setting of the BIGEND bit (CFIFOSEL.BIGEND,
D0FIFOSEL.BIGEND, or D1FIFOSEL.BIGEND).
Table 32.5 lists the endian operation in 16-bit access. Note that if
the total number of transmit data bytes is odd, access the lower byte in bytes when writing the last data.
When the MBW bit is 0 (8-bit width), access the lower byte in bytes.
Table 32.5 Endian Operation in 16-Bit Access
MDE.MDE[2:0] bits
CFIFOSEL.BIGEND Bit
D0FIFOSEL.BIGEND Bit
D1FIFOSEL.BIGEND Bit Bits 15 to 8 Bits 7 to 0 Remarks
000b (big endian) 0 (little endian) Data in address N + 1 Data in address N Bytes reversed
1 (big endian) Data in address N Data in address N + 1
111b (little endian) 0 (little endian) Data in address N + 1 Data in address N
1 (big endian) Data in address N Data in address N + 1 Bytes reversed