Usb Endpoint X(X = 0 - 4) Fifo Register; Usb Transmit - Renesas M16C Series User Manual

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

Advertisement

M30240 Group
3.2.2.19 USB Endpoint x(x = 0- 4) FIFO Register
This is the USB IN (transmission) FIFO and USB OUT (receive) FIFO data register. Data should be
written to this register at the time of transmission. Data should be read from this register at time of
receipt.
Figure 3.25 shows the structure of the USB Endpoint x(x = 0-4) FIFO Register.
USB Endpoint x FIFO Register
b7
b6
b5
b4
Figure 3.25: USB Endpoint x FIFO Register

3.2.3 USB Transmit

Endpoints 0-4 have separate IN (transmit) FIFOs. The Endpoint IN FIFO structure is:
• Endpoint 0: 32 bytes
• Endpoint 1: 128 bytes
• Endpoint 2: 32 bytes
• Endpoint 3: 32 bytes
• Endpoint 4: 32 bytes
When Endpoint 0 is used:
The transmitted data are written to the IN FIFO, the IN_PKT_RDY bit should be set to "1". The
IN_PKT_RDY bit automatically becomes "0" when the transmission of one data packet has been
completed or when the SETUP_END bit becomes "1".
When Endpoints 1-4 are used :
If the AUTO_SET is "1"
• When data of equal size to the setting of the USB Endpoint x (x=1-4) IN MaxP register (0031B
00323
, 0032B
16
16
ically.
If the AUTO_SET is "0" or when a short packet less than the MaxP size is to be transmitted
• IN_PKT_RDY should be set to "1" with software after the transmission data is written to the IN FIFO.
The IN_PKT_RDY bit is cleared to "0" after the packet is successfully transmitted to the host.
When Endpoint 0 is used, the DATA_END bit should be set to "1" at the same time as the last data
packet is written to the IN FIFO. When DATA_END becomes "1", the USB Function Control Unit
progresses to the next status phase. When the status phase completes, the FCU clears this bit to "0".
The USB transmission default is a bulk transfer. Initialize each endpoint if another transfer mode is used.
Rev.1.00 Sep 24, 2003 Page 309 of 360
b3
b2
b1
b0
Symbol
EPx (x=1-4)
Bit Symbol
DATA0 to
DATA7
and 0333
) is written to the IN FIFO, the IN_PKT_RDY bit becomes "1" automat-
16
Address
0338
, 0339
, 033A
, 03B4
, 03B4
16
16
16
16
Bit Name
FIFO data bits
Endpoint x IN/OUT FIFO
Universal Serial Bus
When reset
00
16
16
R W
Function
O O
,
16

Advertisement

Table of Contents
loading

Table of Contents