Perform the following steps in the
indicated order to begin I2S module operation:
- Set up dependencies
- Configure the pins
- Configure the serial format
- Configure the clock
- Configure the sample word length
- Configure the channel mapping
- Perform the DMA start-up sequence
- Set up the samplestamp generator:
- Set the STMPWPER register.
- Set the STMPINTRIG and STMPOUTTRIG > STMPWPER to avoid false DMA start
triggers.
- Set STMPCTL.EN = 1
- If needed, follow the guidelines for achieving constant audio
latency.
- Otherwise, just set STMPINTRIG and STMPOUTTRIG to match the current
(STMPWCNT + 2) % STMPWPER.
Note:
DMA interrupts will begin after the DMA has completed the first sample block or
blocks.