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