Preparing for Transfers
13-85
USB Function Module
Figure 13–13. Prepare for TX Transfer on Endpoint n Routine
Prepare for USB
TX Transfer on
Endpoint n routine
Write EP_NUM register:
– EP_NUM.EP_Num = n
– EP_NUM.EP_Dir = 1
– EP_NUM.EP_Sel = 1
– EP_NUM.Setup_Sel = 0
Set CTRL.
Set_FIFO_En
bit
Write one packet
(Size <=
EPn_TX_Size).
This does not apply to TX
endpoints using DMA, which
are enabled when TXDMAn.Start
is set by the LH.
End of prepare for
USB TS transfer for
Endpoint n routine
At this point, TX data is
written in response to
EPn_TX interrupts.
Write EP_NUM register:
– EP_NUM.EP_Num = n
– EP_NUM.Dir = 1
– EP_NUM.EP_Sel = 0
– EP_NUM.Setup_Sel = 0
6 WAIT
STATES
Note:
No double buffering in non-DMA TX mode.