7.7.5.3 Sampling Frequencies and Oversampling

The ASRC converts an input audio stream with a sampling frequency defined either internally or externally to an audio stream at a configurable output sampling frequency generated either internally or externally.

Internal input or output sampling frequency is generated by a programmable division of GCLK. The division for input sampling frequency is defined in ASRC_MRx.INRATIO; the division for output sampling frequency is defined in ASRC_MRx.OUTRATIO.

The selection of the external trigger event for the input sampling frequency is made by configuring ASRC_TRIG.TRIGSELINx; the selection of the external trigger event for the output sampling frequency is made by configuring ASRC_TRIG.TRIGSELOUTx

If the input and output ratio are integer multiples, the ASRC behaves as a “synchronous” sample rate conversion.

The ASRC oversamples the incoming signal and then decimates the oversampled signal at the output sampling rate. The total oversampling ratio of the ASRC is 32768.

The input and output audio frequencies do not need to be synchronous.

Input and output sampling rates are defined by a division of the GCLK or by one of the signals in the table below.

Table 7-16. Trigger List
Trigger IndexTrigger Name
0Internal trigger, a configurable division of GCLK
1I2SMCC0
2I2SMCC1
3PDMC0
4PDMC1
5SSC0 RX
6SSC0 TX
7SSC1 RX
8SSC1 TX
9SPDIFTX
10SPDIFRX
11
12
13
14
15