13.4.11.6 Ping-Pong Receive Initialization
The following description serves only as a guideline for the firmware implementation.
Receive data as an initiator:
- User’s SW sets up peripheral for receive.
- User’s SW sets up DMA Channel 0 and Channel 1.
- User’s SW enables DMA Channel 0 and sets INTOEN (DMA0CH).
- User’s SW gets INT1 when DMA Channel 0 fills up Buffer 1.
- User’s SW reads from Buffer 1 while DMA Channel 1 writes to Buffer 2.
- See the steady-state description in Ping-Pong Receive Steady State.
Receive 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 receive, part of a boot-up or initialization routine.
- User’s SW enables DMA Channel 0 and sets INTOEN (DMA0CH).
- User’s SW gets INT1 when DMA Channel 0 fills up Buffer 1.
- User’s SW reads from FIFO1 while DMA Channel 1 writes to Buffer 2.
- See the steady-state description in Ping-Pong Receive Steady State.