Rev.2.00 Oct 16, 2006 page 198 of 354
REJ09B0340-0200
M30245 Group
2. USB function
-AUTO_SET bit
This bit controls setting of SET_IN_BUF_RDY bit.
With this bit being set to “1”, when one data packet whose is equal to the maximum packet size
(EPxIMP set value) has been written to IN FIFO in continuous transmit disable, or, when data equal
to the buffer size (byte count set in the BUF_SIZ of the EPxIFC) have been written to IN FIFO in
continuous transmit enable, the IN_BUF_STS1 and IN_BUF_STS0 flags are updated without
SET_IN_BUF_RDY bit being set to “1”.
However, when a short packet (data whose size is smaller than the EPxIMP value in continuous
transfer disable or the BUF_SIZ value in continuous transfer enable) has been written,
IN_BUF_STS1 and IN_BUF_STS0 flags are not automatically updated. In such cases, set
SET_IN_BUF_RDY bit to “1” by software.
With this bit being set to “0”, set SET_IN_BUF_RDY bit to “1” by software after the transmit data are
written to IN FIFO.
The configuration of USB endpoint x (x=1 to 4) IN control and status register is shown in Figure 2.8.46.
Figure 2.8.46. USB endpoint x(x=1 to 4) IN control and status register
Bit Symbol
Bit Name
Function
R W
Symbol
EPxICS (x = 1 - 4)
Address
When reset
USB Endpoint x IN Control and Status register
b7
(b15)
(b8)
b0
INxCSR0
INxCSR1
INxCSR2
INxCSR3
INxCSR4
INxCSR5
INxCSR6
INxCSR7
INxCSR8
INxCSR9
INxCSR10
Reserved
b7
b0
IN_BUF_STS0 flag
IN_BUF_STS1 flag
UNDER-RUN flag
SET_IN_BUF_RDY
CLR_UNDER_RUN
TOGGLE_INT
FLUSH
INTPT
ISO
SEND_STALL
AUTO_SET
O X
O O
O X
O O
O O
O O
O O
O O
O O
O O
O O
These two bits indicate the EPx IN buffer status
Bit1
Bit0
0
0 : No data set in the IN buffer
0
1 : Single buffer mode: N/A
Double buffer mode: one data set in the IN buffer
1
0 : Single buffer mode: N/A
Double buffer mode: N/A
1
1 : Single buffer mode: one data set in the IN buffer
Double buffer mode: two data sets in the IN buffer
0 : No underrun detected
1 : Underrun detected
0 : No action
1 : Data set loaded to the IN buffer (updates IN buffer status flags)
0 : No action
1 : Clears UNDER_RUN flag
0 : No action
1 : Initialize the next data PID as a DATA0 for transmission
0 : No action
1 : Flush out one data set
0 : Select non-rate feedback interrupt transfer
1 : Select rate feedback interrupt transfer
0 : Select non-isochronous endpoint
1 : Select isochronous endpoint
0 : No STALL by CPU
1 : STALL by CPU
0 : AUTO_SET disabled
1 : AUTO_SET enabled
Note
Note
Note
Note
Note: Always read a “0”.
O x
0
0
0
0
0
029E
16
, 02A4
16
,
02AA
16
, 02B0
16
0003
16
Must always be set to “0”
Содержание 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...