USBN9604-28M National Semiconductor, USBN9604-28M Datasheet - Page 16
![Special Function IC](/photos/19/0/190076/3833506_sml.gif)
USBN9604-28M
Manufacturer Part Number
USBN9604-28M
Description
Special Function IC
Manufacturer
National Semiconductor
Datasheet
1.USBN9604-28M.pdf
(60 pages)
Specifications of USBN9604-28M
Peak Reflow Compatible (260 C)
No
Leaded Process Compatible
No
Mounting Type
Surface Mount
Package / Case
28-WSOIC
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
USBN9604-28M
Manufacturer:
NS/国半
Quantity:
20 000
Company:
Part Number:
USBN9604-28M/NOPB
Manufacturer:
Freescale
Quantity:
2 314
Part Number:
USBN9604-28M/NOPB
Manufacturer:
TI/德州仪器
Quantity:
20 000
Part Number:
USBN9604-28MX
Manufacturer:
NS/国半
Quantity:
20 000
Company:
Part Number:
USBN9604-28MX/NOPB
Manufacturer:
NS21
Quantity:
1 495
Part Number:
USBN9604-28MX/NOPB
Manufacturer:
TI/德州仪器
Quantity:
20 000
www.national.com
4.0 Direct Memory Access (DMA) Support
The device supports DMA transfers with an external DMA controller from/to endpoints 1 to 6. This mode uses the device
pins DRQ and DACK in addition to the parallel interface pins RD or WR and D7-0 data pins. DMA mode can only be used
with parallel interface mode (MODE1 must be grounded). The read or write address is generated internally and the state of
the A0/ALE pin is ignored during a DMA cycle.
The DMA support logic has a lower priority than the parallel interface. CS must stay inactive during a DMA cycle. If CS be-
comes active, DACK is ignored and a regular read/write operation is performed. Only one endpoint can be enabled at any
given time to issue a DMA request when data is received or transmitted.
Two different DMA modes are supported: standard and automatic.
4.1 STANDARD DMA MODE (DMA)
To enable DMA transfers in standard DMA mode, the following steps must be performed:
1. The local CPU programs the DMA controller for fly-by demand mode transfers. In this mode, transfers occur only when
2. The DMA address counter is programmed to point to the destination memory block in the local shared memory, and the
3. The DMA Enable bit and DMA Source bits are set in the DMACNTRL register.
4. The USB host can now perform USB bulk or isochronous data transfers over the USB bus to the receive FIFO or from
5. If the FIFOs warning limit is reached or the transmission/reception is completed, a DMA request/acknowledge sequence
6. After the DMA controller has granted control of the bus, it drives a valid memory address and asserts DACK and RD or
7. After the programmed amount of data is transferred, the firmware must do one of the following (depending on the transfer
The DMA transfer can be halted at any time by resetting the DMA Request Enable bit. If the DMA Request Enable bit is
cleared during the middle of a DMA cycle, the current cycle is completed before the DMA request is terminated.
See Figures 8 and 9 for the transmit and receive sequences using standard DMA mode.
the device requests them via the DRQ pin. The data is read/written from/to the device receive/transmit FIFO and writ-
ten/read into/from local memory during the same bus transaction.
Byte Count register is programmed with the number of bytes in the block to be transferred. If required the automatic error
handling should be enabled at this point along with the error handling counter. In addition the user needs to set the re-
spective Endpoint enable bit.
the transmit FIFO in the device.
is initiated for the predetermined number of bytes. The time at which a DMA request is issued depends on the selected
DMA mode (controlled by the DMOD bit in the DMACNTRL register), the current status of the endpoint FIFO, and the
FIFO warning enable bits. A DMA request can be issued immediately.
WR, thus transferring a byte from the receive FIFO to memory, or from memory to the transmit FIFO. This process con-
tinues until the DMA byte count, within the DMA controller, reaches zero.
direction and mode):
— Queue the new data for transmission by setting the TX_EN bit in the TXCx register.
— Set the End Of Packet marker by setting the TX_LAST bit in the TXCx register. Re-enable reception by setting the
— Check if the last byte of the packet was received (RX_LAST bit in the RXSx register).
RX_EN bit in the RXCx register.
Microcontroller
MIcrocontroller
Set up DMA
Set up DMA
Figure 8. Transmit Operation in Standard DMA Mode
Figure 9. Receive Operation in Standard DMA Mode
Microcontroller
Enable RX
Fill FIFO
DMA
Microcontroller
Enable TX
Transaction
USB
16
Transaction
Read FIFO
DMA
USB
Enable RX
Microcontroller
Fill FIFO
DMA
time
time