7.6.7.2 PDMC Mode Register

This register can only be written if the WPEN bit is cleared in PDMC_WPMR.

Name: PDMC_MR
Offset: 0x04
Reset: 0x10300000
Property: Read/Write

Bit 3130292827262524 
 CHUNK[3:0]SINC_OSR[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00010000 
Bit 2322212019181716 
 SINCORDER[3:0]  OSR[1:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 001100 
Bit 15141312111098 
 RHRJUSTIFRHRMSB DST     
Access R/WR/WR/W 
Reset 000 
Bit 76543210 
     PDMCEN3PDMCEN2PDMCEN1PDMCEN0 
Access R/WR/WR/WR/W 
Reset 0000 

Bits 31:28 – CHUNK[3:0] Chunk Size

Defines the DMA chunk size for RX channels.

Chunk size optimizes the number of trigger events sent to DMA for audio data transfer. Allowed values are 1, 2, 4, 8. Refer to section "DMA Controller (XDMAC)" for possible chunk sizes.

When the number of received data equals the value configured in PDMC_MR.CHUNK, the RXCHUNK flag rises.

Bits 27:24 – SINC_OSR[3:0] SINC Filter Oversampling Ratio

ValueNameDescription
0 DISABLE Audio Filtering mode. The SINC filter OSR is implicitly defined by the PDMC_MR.OSR field.
1 OSR8 The SINC filter OSR is 8.
2 OSR16 The SINC filter OSR is 16.
3 OSR32 The SINC filter OSR is 32.
4 OSR64 The SINC filter OSR is 64.
5 OSR128 The SINC filter OSR is 128.
6 OSR256 The SINC filter OSR is 256.

Bits 23:20 – SINCORDER[3:0] SINC Filter Order

Defines the SINC filter order.

Values outside those defined in the following table are forbidden.

SINCORDER must be set to 3 when in Audio Filtering mode (SINC_OSR=0), as the audio filtering compensates the droop of the third order SINC filter.

ValueNameDescription
1 ORDER1 The SINC filter order is 1.
2 ORDER2 The SINC filter order is 2.
3 ORDER3 The SINC filter order is 3. Recommended if SINC_OSR=0.
4 ORDER4 The SINC filter order is 4.
5 ORDER5 The SINC filter order is 5.

Bits 17:16 – OSR[1:0] Audio Oversampling Ratio

Oversampling ratio between the frequency of the clock sent to the PDMC and the output sampling rate when SINC_OSR=0. Audio filtering is performed in addition to SINC filtering.

ValueNameDescription
0 Reserved
1 OSR64 OSR is 64.
2 OSR128 OSR is 128.
3 OSR256 OSR is 256.

Bit 15 – RHRJUSTIF RHR Justification Mode

ValueNameDescription
0 RIGHT The audio sample data is right-justified in PDMC_RHR.
1 LEFT The audio sample data is left-justified in PDMC_RHR.

Bit 14 – RHRMSB RHR MSB Mode

ValueNameDescription
0 CH_INDEX The MSB section of PDMC_RHR contains the index of the microphone channel where the audio data sample.
1 ZERO_OR_DATA When RHRJUSTIF=0, the MSB section of PDMC_RHR contains the sign extension. PDMC_RHR carries the audio samples of all the enabled channels in a round robin manner.

Bit 12 – DST Audio Data Destination

ValueNameDescription
0 DMA_SOFT Audio data are read through PDMC_RHR by the DMA or software.
1 DIRECT_TO_ASRC Audio data are transferred directly to the ASRC without DMA intervention or software.

Bits 0, 1, 2, 3 – PDMCENx PDMC Channel x Enable

ValueNameDescription
0 DISABLE PDMC is disabled.
1 ENABLE PDMC is enabled.