The DMA engine works with the Protocol engine to process endpoints, periodic elements, queue heads, and other transfer descriptors. Software writes these data structures into the system memory. The DMA engine fetches these data structures and copies them into the controller’s local dual-ported RAM (DPRAM). The controller reads and writes the data structures in the DPRAM as the data structures are processed. The descriptors are written back to memory by the DMA engine when a transfer is complete.
In addition to the context information of the data structures, the dual-port RAM is also used by the controller to implement RX and TX data FIFOs. These FIFOs decouple the system processor memory bus transfers from the real-time requirements of the USB.
The use of the FIFOs differs between host and device mode operation. In Host mode, a single data channel is maintained in each direction through the dual-port RAM. In Device mode, RX and TX data FIFO channels are maintained for each of the active device endpoints and these FIFO channels can operate simultaneously and asynchronously.