9.4.7.2 ADC Mode Register

This register can only be written if the WPEN bit is cleared in the ADC Write Protection Mode Register.

Name: ADC_MR
Offset: 0x04
Reset: 0x20000000
Property: Read/Write

Bit 3130292827262524 
 USEQMAXSPEEDTRANSFER[1:0]TRACKTIM[3:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00100000 
Bit 2322212019181716 
 ANACH   STARTUP[3:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 
Bit 15141312111098 
 PRESCAL[7:0] 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
  FWUPSLEEP TRGSEL[2:0]  
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bit 31 – USEQ User Sequence Enable

ValueNameDescription
0NUM_ORDERNormal mode: the controller converts channels in a simple numeric order depending only on the channel index.
1REG_ORDERUser Sequence mode: the sequence respects what is defined in ADC_SEQR1 and can be used to convert the same channel several times.

Bit 30 – MAXSPEED Maximum Sampling Rate Enable in Freerun Mode

This bit should always be set to 1.

Bits 29:28 – TRANSFER[1:0] Transfer Time

The TRANSFER field must be set to 2 to guarantee the optimal transfer time.

Bits 27:24 – TRACKTIM[3:0] Tracking Time

ADC_EMR.TRACK4XTRACKTIM
0 to 34 to 1415
06 × tADCCLK7 × tADCCLK
16 × tADCCLK([4 × (TRACKTIM + 1)] - 10) × tADCCLK

Bit 23 – ANACH Analog Change

ValueNameDescription
0NONENo analog change on channel switching: DIFF0 is used for all channels.
1ALLOWEDAllows different analog settings for each channel. .

Bits 19:16 – STARTUP[3:0] Start-Up Time

ValueNameDescription
0SUT00 periods of ADCCLK
1SUT88 periods of ADCCLK
2SUT1616 periods of ADCCLK
3SUT2424 periods of ADCCLK
4SUT6464 periods of ADCCLK
5SUT8080 periods of ADCCLK
6SUT9696 periods of ADCCLK
7SUT112112 periods of ADCCLK
8SUT512512 periods of ADCCLK
9SUT576576 periods of ADCCLK
10SUT640640 periods of ADCCLK
11SUT704704 periods of ADCCLK
12SUT768768 periods of ADCCLK
13SUT832832 periods of ADCCLK
14SUT896896 periods of ADCCLK
15SUT960960 periods of ADCCLK

Bits 15:8 – PRESCAL[7:0] Prescaler Rate Selection

PRESCAL = (fperipheral clock / (2 × fADCCLK)) – 1.

Bit 6 – FWUP Fast Wake-Up

ValueNameDescription
0OFFIf SLEEP is 1, then both ADC core and reference voltage circuitry are off between conversions.
1ONIf SLEEP is 1, then Fast Wake-Up Sleep mode: the voltage reference is on between conversions and ADC core is off.

Bit 5 – SLEEP Sleep Mode

ValueNameDescription
0NORMALNormal mode: the ADC core and reference voltage circuitry are kept on between conversions.
1SLEEPSleep mode: the wake-up time can be modified by programming the FWUP bit.

Bits 3:1 – TRGSEL[2:0] Trigger Selection

The trigger selection can be performed only if ADC_TRGR.TRGMOD = 1, 2 or 3.
ValueNameDescription
0ADC_TRIG0ADTRG
1ADC_TRIG1TIOA0
2ADC_TRIG2TIOA1
3ADC_TRIG3TIOA2
4ADC_TRIG4RTCOUT1
5ADC_TRIG5Reserved
6ADC_TRIG6Reserved
7ADC_TRIG7Reserved