
Rev.2.00 Oct 16, 2006 page 191 of 354
REJ09B0340-0200
M30245 Group
2. USB function
(4) Interrupt Transfer: Endpoints 1 to 4 Receive
●
Setting of Transfer Type
When endpoints 1 to 4 OUT are used for interrupt transfer, ISO bit of USB endpoint x(x=1 to 4) OUT
control and status register is set to “0” for interrupt transfer setting.
Also, for initialization of toggle sequence bit in interrupt transfer, set TOGGLE_INIT bit to “1” and
initialize PID to DATA0.
●
Receive Operation
The endpoint x OUT receive operation in the interrupt transfer is same as the bulk transfer.
Refer to “
●
Receive Operation” of “(2) Bulk Transfer: Endpoints 1 to 4 Receive”.
●
Fetch of Receive Data
The fetch procedure of endpoint x OUT receive data in the interrupt transfer is same as the bulk
transfer.
Refer to “
●
Fetch of Receive Data” of “(2) Bulk Transfer: Endpoints 1 to 4 Receive”. (Although
continuous transfer is valid for the bulk transfer only.)
(5) Precautions for Receive
●
Read from OUT FIFO
Be sure to confirm the OUT_BUF_STS1 and OUT_BUF_STS0 flags states when reading data from
the OUT FIFO. Based on these flags states, judge whether there are receive data in the OUT FIFO.
Be sure to read the byte count of data specified by USB endpoint x OUT write count register value
before setting CLR_OUT_BUF_RDYbitto “1” when reading data from the OUT FIFO. If the
CLR_OUT_BUF_RDY bit is set to “1” during fetching of data from the OUT FIFO, the setting can
cause malfunction of the internal read pointer.
●
PID Initialization
When TOGGLE_INIT bit is set to “1”, the read/write counter inside the FIFO is initialized. To initialize
the PID, set TOGGLE_INIT bit to “1” when the OUT FIFO is empty (the OUT_BUF_STS0 and
OUT_BUF_STS1 flags are “00
2
”).
Single buffer
[Specify OUT FIFO size
by the BUF_SIZ
*1
]
No data
Space equal to one buffer
Invalid
Invalid
One data set in the OUT FIFO
No space in the OUT FIFO
Table 2.8.3. Status on Endpoint 1 to 4 OUT FIFOs
OUT_BUF_STS1
0
0
1
1
Double buffer [OUT FIFO size =
(The number of bytes specified
by the BUF_SIZ
*1
)
✕
2]
No data
Space equal to two buffer
Invalid
One data set in the OUT FIFO
Space equal to one buffer
Two data set in the OUT FIFO
No space in the OUT FIFO
OUT_BUF_STS0
0
1
0
1
*1: Bits 6 to 9 of EPxOFC.
Содержание M16C FAMILY
Страница 12: ...Chapter 1 Hardware...
Страница 13: ...See M30245 group datasheet...
Страница 14: ...Chapter 2 Peripheral Functions Usage...
Страница 303: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 304: ...Chapter 3 Examples of Peripheral Functions Applications...
Страница 340: ...Chapter 4 External Buses...
Страница 361: ...THIS PAGE IS BLANK FOR REASONS OF LAYOUT...
Страница 362: ...Chapter 5 Standard Characteristics...
Страница 369: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M30245 Group REJ09B0340 0200 User s Manual...