Renesas M16C Series User Manual page 179

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

Advertisement

M30245 Group
USB Function Address register
(b15)
b7
0 0 0 0 0 0 0 0 0
www.DataSheet4U.com
Figure 2.8.31. USB address register
USB endpoint 0 control and status register
USB endpoint 0 control and status register consists of the bits concerning control information and
status information of endpoint 0.
• OUT_BUF_RDY Flag
This flag shows the status of OUT FIFO.
The OUT_BUF_RDY flag is set to "1" in the following cases:
- The setup packet is received.
- One data packet is received from the host CPU in the data phase.
Set the OUT_BUF_RDY flag to "0" by setting "1" to CLR_OUT_BUF_RDY bit after reading the
OUT FIFO.
• IN_BUF_RDY Flag
This flag shows the status of IN FIFO.
When this flag is set to "1", shows that data to be transmitted to the host CPU exists in FIFO.
When transmission of the IN FIFO data is completed or when the SETUP_END flag is set to "1", this
flag is cleared to "0".
• SETUP Flag
When the setup packet is received from the host CPU, this flag is set to "1".
The OUT_BUF_RDY flag is also set to "1" at this time.
This flag is cleared by setting "1" to CLR_SETUP bit.
• DATA_END Flag
This flag shows the status phase control of control transfer.
After the status phase is started or when a new SETUP packet is received, this flag is automatically
set to "0".
When DATA_END_MASK bit is set to "1" (at the time of resetting), the DATA_END flag is always set
to "0", and endpoint 0 interrupt factor does not occur by clearing the DATA_END flag to "0".
• FORCE_STALL Flag
This flag shows the error occurrence in control transfer.
This flag is set to "1" for reporting an error when at least one of the following conditions occurs:
- IN token without SETUP stage is received.
- An incorrect data toggle is received in the STATUS stage. (DATA0 is used.)
- An incorrect data toggle is received in the SETUP stage. (DATA1 is used.)
- Data exceeding the one specified in the SETUP stage are required. (IN token is received after the
DATA_END flag is set.)
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
(b8)
b0
b7
b0
page 170 of 354
Symbol
Address
USBA
0280
16
Bit Symbol
Bit Name
Function address
FUNAD6-0
Reserved
2. USB function
When reset
0000
16
Function
R W
7-bit programmable
O O
function address
O O
Must always be "0"

Advertisement

Table of Contents
loading

Table of Contents