7.6.6.1 Gain

A gain can be defined for each channel by programming the Gain register (PDMC_GAIN). This gain is applied regardless of the selected filtering and sampling rates.

The gain is defined by the following formula:

GAIN(dB)=12-GAINx*0.5

The default GAINx value is 0x18, which corresponds to 0dB gain.

In case a positive gain is applied and a saturation event occurs on channel x, a saturation flag rises in PDMC_ISR.SATx. This flag is reset once PDMC_ISR is read.