13.4.11.3 Ping-Pong Transmit Initialization
The following description serves only as a guideline for the firmware implementation.
Transmit data as an initiator:
- User’s SW sets up peripheral for transmit.
- User’s SW sets up DMA Channel 0 and Channel 1.
- User’s SW writes Buffer 1.
- User’s SW enables DMA Channel 0.
- User’s SW enables peripheral which later triggers for transmit data.
- DMA Channel 0 reads from Buffer 1 while user’s SW writes to Buffer 2.
- See the steady-state description in Ping-Pong Transmit Steady State.
Transmit data as a responder:
- User’s SW sets up DMA Channel 0 and Channel 1, part of a boot-up or initialization routine.
- User’s SW sets up peripheral for transmit, part of a boot-up or initialization routine.
- User’s SW writes Buffer 1, part of a boot-up or initialization routine.
- User’s SW gets INT when peripheral triggers DMA for transmit data (in response to the host requesting data).
- DMA Channel 0 reads from Buffer 1 while user’s SW writes to Buffer 2.
- See the steady-state description in Ping-Pong Transmit Steady State.