Usb Operation (Interface With Dmac Transfer) - Renesas M16C Series User Manual

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

Advertisement

M30245 Group

2.8.8 USB Operation (Interface with DMAC Transfer)

The M30245 group can select a USB (USB0/USB1/USB2/USB3) as the DMA request factor. The USB0
corresponds to DMA0, USB1 to DMA1, USB2 to DMA2, and USB3 to DMA3. The DMA request factor
origin of USB0/USB1/USB2/USB3 is also set by setting any one of endpoints 1 to 4 IN/OUT factors to
USB DMAx(x=0 to 3) request register .
The DMA request factor of USB0/USB1/USB2/USB3 occurs, under particular conditions, not only on
occurrence of an interrupt request of each endpoint but also on write/read to/from IN/OUT FIFO.
(1) Related Registers
www.DataSheet4U.com
USB DMAx(x=0 to 3) request register
This register sets the DMA request factor origin of USB0/USB1/USB2/USB3. When, under particular
conditions, write/read to/from the FIFO of the endpoint selected by this register or an event such as
the endpoint's interrupt request occurs, a DMA request occurs. This register can be set "1" only to 1
bit. When multiple bits are simultaneously set to "1", the setting becomes invalid. Other DMA related
registers also need to be set before a valid value is set; for example, "00011
USB3) is set to DMA request cause select bits (b4,b3,b2,b1,b0) of DMAx(x=0 to 3) request cause
select register (addresses 03B8
The configuration of USB DMAx(x=0 to 3) request register is shown in Figure 2.8.50.
USB DMAx Request registers
(b15)
b7
0 0 0 0 0
Figure 2.8.50. USB DMAx(x=0 to 3) request register
Rev.2.00 Oct 16, 2006
REJ09B0340-0200
, 03BA
16
(b8)
b0
b7
0
0
page 207 of 354
, 03B0
, 03B2
).
16
16
16
b0
Symbol
0
0290
USBDMAx (x=0 to 3)
0294
Bit Symbol
Bit Name
Reserved
DMAxR1
EP1 IN FIFO write request select bit
DMAxR2
EP2 IN FIFO write request select bit
DMAxR3
EP3 IN FIFO write request select bit
DMAxR4
EP4 IN FIFO write request select bit
Reserved
DMAxR6
EP1 OUT FIFO read request select bit
DMAxR7
EP2 OUT FIFO read request select bit
DMAxR8
EP3 OUT FIFO read request select bit
DMAxR9
EP4 OUT FIFO read request select bit
Reserved
" (USB0/USB1/USB2/
2
Address
When reset
, 0292
,
16
16
0000
16
, 0296
16
16
Function
Must always be set to "0"
1 : Selected
0 : Not selected
Must always be set to "0"
1 : Selected
0 : Not selected
Must always be set to "0"
2. USB function
R W
O O
O O
O O
O O
O O

Advertisement

Table of Contents
loading

Table of Contents