12. Analog digital converter (ADC)
The STM32WL31xx and STM32WL33xx embed a 12-bit ADC. The ADC is not available on STM32WL30xx devices.
The ADC consists in a 12-bit successive approximation analog-to-digital converter (SAR) with 2 x 8 multiplexed channels allowing measurements of up to eight external sources and up to three internal sources.
12.1 Features
- • Conversion frequency is up to 1 Msps.
- • Three input voltage ranges are supported (0 → 1.2V, 0 → 2.4 V, 0 → 3.6 V)
- • Up to eight analog single ended channels or four analog differential inputs or a mix of both.
- • Temperature sensor conversion
- • Battery level conversion up to 3.6 V.
- • Continuous or single acquisition.
- • ADC Mode conversion only available, programmable in continuous or single mode.
- • ADC Down Sampler for multi-purpose applications to improve analog performance while off-loading the CPU (ratio adjustable from 1 to 128).
- • A watchdog feature to inform when data is outside thresholds.
- • DMA capability.
- • Interrupt sources with flags.
12.2 ADC presentation
The Figure 22 shows the top level diagram of the ADC.
The analog ADC is designed to support sixteen possible inputs:
- • External signals through ADC_VINPx and ADC_VINMx, where x=0,1,2 or 3
- – Up to 4 differential inputs
- – Up to 8 single-ended inputs one single ended input to interface with a temperature sensor in a range up to 1.2 V
- • One single ended input connected to VBAT for battery level detector in a range up to 3.6 V
- • Two single ended inputs connected to GND for calibration
- • Two single ended inputs connected to 1.2 V for calibration
- • One single ended input connected to Temperature Sensor
Figure 22. ADC top level diagram
![ADC top level diagram showing Analog and Digital subsystems. The Analog ADC Subsystem (blue) includes VDDA, GND, TEMP SENSOR, VBAT, SELN_VINP[3:0], SELN_VINM[3:0], VINP, VINM, Muxing, Reference, and SAR ADC 12bits. The Digital ADC Subsystem (orange) includes ADC Offset Correction, Bit Inversion, Down Sampler, ADC CONTROLLER (with CONF REG, CONTROL REG, WD TRIG REG, INT REG, STATUS REG, WD Block, Sequencer Block), DATA REG1, and APB MEMORY PORT. Interfacing includes APB, INT to CPU, and connections to CPU or DMA.](/RM0511-STM32WL30-31-33/8579e6ff712a88fe7ae237a5ec602f12_img.jpg)
The diagram illustrates the ADC architecture, divided into Analog and Digital subsystems. The Analog ADC Subsystem (blue) handles inputs like VDDA, GND, TEMP SENSOR, VBAT, and various voltage inputs (SELN_VINP, SELN_VINM, VINP, VINM) through a Muxing block to a SAR ADC 12bits. The Digital ADC Subsystem (orange) includes an ADC CONTROLLER with various registers (CONF REG, CONTROL REG, WD TRIG REG, INT REG, STATUS REG), a WD Block, and a Sequencer Block. It also features an ADC Offset Correction and Bit Inversion block, a Down Sampler, and DATA REG1. The system interfaces with the APB bus, which connects to the CPU or DMA for data transfer, and includes an INT to CPU signal.
The input of the data path can come from the analog ADC through the possible inputs mentioned previously.
The conversion data path can go through a down sampler (for static or low frequency input signals).
Caution: Do not change the configuration registers related to the function in use. Any change done by the user on the different bits are applied immediately, with an immediate effect on the on-going process (conversion, decimator filter or downsampler). This action can lead to unexpected results.
Caution: For VBAT < 2.7V, the IO Booster needs to be activated to maintain linearity.
12.2.1 Temperature sensor subsystem (STM32WL31xx/33xx only)
The temperature sensor can be used to measure the junction temperature (\(T_j\)) of the device. The temperature sensor is internally connected to the ADC input channels which are used to convert the sensor output voltage to a digital value.
The temperature sensor output voltage changes linearly with temperature. The offset of this line varies from chip to chip due to process variation. The uncalibrated internal temperature sensor is more suited for applications that detect temperature variations instead of absolute temperatures. To improve the accuracy of the temperature sensor measurement, calibration values are stored in system memory for each device by ST during production. During the manufacturing process, the calibration data of the temperature sensor and the internal voltage reference are stored in the system memory area. The user application can then read them and use them to improve the accuracy of the temperature sensor or the internal reference. In this way the temperature can be calculated with this formula:
Where:
TCK is the chuck temperature in 0.1°C (e.g. 30°C = 300) readable @0x10001E5C.
C30 is the temperature sensor calibration value acquired at 30°C readable @0x10001E60.
Cmeas is the actual temperature sensor output value converted by ADC.
Note: ADC gain and offset calibrations are left as default values, 0xFFF.
12.2.2 ADC input modes conversion
The ADC is designed to deliver a digital value corresponding to the ratio between the voltage applied on the converted channel and the reference voltage, VDDA. Note that
VDDA is also the ADC's power supply. The formula for ADC digital converted data after calibration and offset is the following:
- • Single ended input mode
Code = Integer(Slope * VIN) [clamped at 4095] where Slope for single ended input mode has the following value:- 3.6 V mode: Slope = 4096/3.6 [calibrated gain = 1/3]
- 2.4 V mode: Slope = 4096/2.4 [calibrated gain = 1/2]
- 1.2 V mode: Slope = 4096/1.25 [calibrated gain = 0.96, gain clamped at 1]
- • Differential input mode
Code = Integer(Slope * (VINP - VINN)) + 2048 [clamped at 4095] where Slope for differential input mode has the following value:- 3.6 V mode: Slope = 2048/3.6 [calibrated gain = 1/3]
- 2.4 V mode: Slope = 2048/2.4 [calibrated gain = 1/2]
- 1.2 V mode: Slope = 2048/1.25 [calibrated gain = 0.96, gain clamped at 1]
Steady state input impedance
As the input nature of the ADC is a switched-capacitor, its steady state input impedance is defined as the impedance seen in DC. It depends only on the analog sampling frequency, \(F_s\), and the input capacitor, \(C_{in}\): \(Z_{in} = 1/(C_{in} \cdot F_s)\).
Input signal sampling transient response
As represented on Figure 24, the analog signal path consists of a series resistance (\(R_{ext}\)) between source and pin, the internal switch resistor (\(R_{in}\)) and the internal sampling capacitor (\(C_{in}\)). The charging of the capacitor is controlled by \(R_{in}\). When there is \(R_{ext}\) in series, the effective value of charging of \(C_{in}\) is governed by \(R_{in} + R_{ext}\). So the charging time constant is \((R_{in} + R_{ext}) \cdot C_{in}\) and the necessary time to reach a given accuracy is longer. The ADC sampling time \(T_{sw}\) is a function of ADC frequency which is \(1/T_s\) as shown in Figure 23.
Figure 23. ADC sampling time \(T_{sw}\) and sampling period \(T_s\)

The figure shows a square wave signal. The high pulse duration is labeled \(T_{sw}\). The total period of the square wave is labeled \(T_s\). A dashed line indicates the relationship \(T_{sw} = T_s - 875 \times 10^{-9}\). The diagram is labeled MSv58343V1.
Figure 24. Effect of analog source resistance

Knowing that: \(R_{in} = 550\ \Omega\), \(C_{in} = 4\ \text{pF}\), and imposing a maximum sampling error of 1/2 LSB, we can determine the maximum input resistance as below:
12.2.3 Down sampler (DS)
This Down Sampler is a simple averaging filter which can divide the ADC frequency by 1 to 128 by power of 2.
The goal is to handle multiple ADC samples and average then into a single data with increased data width ranging from 12-bit to 16-bit.
The Down Sampler increases the data precision but reduces the output data rate.
Note: A constraint on the ratio between APB system clock (\(F_{PCLK}\)) and the output data rate (\(DR_{out}\)) must be respected:
- In ADC mode, the ratio to respect is \(F_{PCLK} / DR_{out} \geq 4\).
Example: \(F_{PCLK}\) must be at least 2 MHz to have a \(DR_{out} = 500\ \text{kHz}\).
If the DMA is not used to get the data output by the decimation filter path, the CPU needs to be clocked at a frequency ratio high enough (taking into account bus matrix latency) to avoid missing samples.
12.3 Interrupts
There are 5 maskable interrupts generated by the ADC block. These interrupts are combined to produce one single interrupt output which is the only interrupt line from the ADC to the CPU.
Table 32. ADC interrupt requests
| Interrupt event | Event flag | Interrupt / flag clearing method | Interrupt enable control bit |
|---|---|---|---|
| ADC end of conversion | EOC_IRQ | Write 1 on EOC_IRQ bit | EOC_IRQ_ENA |
| Down Sampler end of conversion | EODS_IRQ | Write 1 on EODS_IRQ bit | EODS_IRQ_ENA |
| End of conversion sequence | EOS_IRQ | Write 1 on EOS_IRQ bit | EOS_IRQ_ENA |
| Analog Watchdog event | AWD_IRQ | Write 1 on AWD_IRQ bit | AWD_IRQ_ENA |
| Down Sampler overrun | OVR_DS_IRQ | Write 1 on OVR_DS_IRQ bit | OVR_DS_IRQ_ENA |
12.4 DMA interface
The ADC has one DMA channel interface to get Down Sampler data output value.
The DMA feature is enabled by software through CONF register by DMA_DS_ENA bit.
When DMA feature is disabled, the data can be read by the CPU through the corresponding APB register.
12.5 ADC mode
ADC mode is the only conversion mode available for STM32WL30xx/31xx/33xx devices. As a consequence no concurrent mode is also available.
The input signal can come from:
- • 8 single external channels (4 positive + 4 negative, or 4 differential when coupled).
- • VBAT: negative single ended input to 3,6 V
- • Temperature Sensor: positive single ended input to 1,2 V
The conversion can be continuous or single mode.
12.5.1 ADC mode overview
Presentation
The ADC mode has the following characteristics:
- • The input in the ADC mode can be the eight external channels and the two internal sources (VBAT and Temperature sensor).
- • The data path goes from the ADC to the down sampler.
- • The converted data is output in the DS_DATAOUT register.
- • The output data rates are in the range 117 sps to 1 Msps.
- • The 12-bit converted data can be extended up to 16-bit data thanks to the down sampler. However, in this case, the output data rate is decreased.
- • A regular sequence of conversion can be executed in single or continuous mode.
- – A regular sequence consists in chaining ADC conversions on any ADC input channel and in any order.
- – A regular sequence can chain up to 16 conversions.
- – The source of the input for each conversion of the sequence is selected through SEQx bit field in SEQ_1 and SEQ_2 registers.
- – This regular sequence can be run once or repeated continuously by setting the CONT bit in CONF register.
ADC mode usage
This paragraph describes the process to use the ADC mode:
- • Power on the ADC if not yet done by setting the ADC_ON_OFF bit in the CTRL register.
- • Program the targeted data rate through SAMPLE_RATE and DS_CONF registers.
- • Program the input voltage selections through SWITCH register.
- • Program the COMP_1 to COMP_4 and the COMP_SEL registers.
- • Program the ADC mode through the OP_MODE bit field in the CONF register.
- • Program the targeted regular sequence (up to 16 chained conversions) through SEQ_1 and SEQ_2 registers.
- • Specify the length of the sequence in SEQ_LEN bit field in CONF (from 0 for one conversion to 0xF for sixteen conversions).
Note: To have more than one conversion, ensure the bit SEQUENCE is well at 1 in CONF register.
- • Program the CONT bit and the SEQ_LEN bit field in the CONF register, considering SEQUENCE bit is always set) depending on the wished sequence:
- – CONT = 0 and SEQ_LEN = 0 to have a single conversion on a single channel.
- – CONT = 0 and SEQ_LEN > 0 to have a single run of a sequence chaining several conversions on different channels/sources.
- – CONT = 1 and SEQ_LEN = 0 to have a continuous conversion of a single channel/source.
- – CONT = 1 and SEQ_LEN > 0 to have a continuous run of sequence chaining several conversions on different channels/sources.
- • Launch the programmed regular sequence by setting the START_CONV bit in CTRL register.
- • Each time a data is available at the output of the Sown Sampler, the data is stored in the DS_DATAOUT register and the EODS flag is set (as analog mode goes through the Down Sampler).
- • To get the converted values:
- – Either the DMA is enabled on DS data path (through DMA_DS_ENA bit in CONF register) and DMA copies the converted data in RAM at the end of each data conversion
- – Or the software has enabled the EODS_IRQ interrupt and is able to get the data from DS_DATAOUT register before a new converted data is generated.
Note: If the CPU does not manage to get the converted data before a new converted data is generated, the OVR_DS_IRQ flag is raised to inform a data has been lost.
The software can program the hardware behavior in case of overrun through the OVR_DS_CFG bit in CONF register:
if 0, the previous data is kept, the new one is lost.
if 1, the previous data is lost, the new one is kept.
- • Each time the regular sequence is completed, the EOS_IRQ flag is raised (and may generate an interrupt if enabled).
- • If the sequence is a single sequence (SEQ_LEN=0), the ADC stops at the end of the sequence and does not restart until START_CONV bit is not set again.
- • The data conversion goes on until the software stops it by setting the STOP_OP_MODE bit in the CTRL register: in this case, the conversion stops immediately and on-going conversion data is not issued.
12.6 ADC registers description
12.6.1 Version register (VERSION_ID)
Address offset: 0x00
Reset value: 0x0000 0021
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VERSION_ID[7:0] | |||||||
| r | |||||||||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bit 7:0 VERSION_ID[7:0]: version of the embedded IP.
12.6.2 ADC configuration register (CONF)
Address offset: 0x04
Reset value: 0x0002 0002
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SAMPLE_RATE_MSB | Res. | ADC_CONT_1V2 | BIT_INVERT_DIFF | BIT_INVERT_SN | Res. | OVR_DS_CFG | Res. | DMA_DS_ENA | SAMPLE_RATE[1:0] | Res. | Res. | Res. | Res. | SMPS_SYNCHRO_ENA | SEQ_LEN[3:0] | SEQUENCE | CONT | ||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||||||||||||||||
Bits 31: 24 Reserved
Bits 23:21 SAMPLE_RATE_MSB: sample rate most significant bit
This field is an extension of SAMPLE_RATE definition in bits 12,11 of CONF register. It impacts the conversion rate of ADC (F_ADC). See SAMPLE_RATE bits for the full description
Bit 20 Reserved, must be kept at reset value.
Bit 19 ADC_CONT_1V2: select the input sampling method:
- – 0: Sampling time is 125 ns regardless of the sampling period.
- – 1: Sampling time is a function of the sampling period.
Bit 18 BIT_INVERT_DIFF: invert bit to bit the ADC data output (1's complement) when a differential input is connected to the ADC:
- – 0: no inversion (default)
- – 1: enable the inversion
- Bit 17 BIT_INVERT_SN: invert bit to bit the ADC data output (1's complement) when a single negative input is connected to the ADC:
- – 0: no inversion (default)
- – 1: enable the inversion
- Bit 16 Reserved, must be kept at reset value.
- Bit 15 OVR_DS_CFG: Down Sampler overrun configuration:
- – 0: the previous data is kept, the new one is lost
- – 1: the previous data is lost, the new one is kept
- Bit 14 Reserved, must be kept at reset value.
- Bit 13 DMA_DS_EN: enable the DMA mode for the Down Sampler data path:
- – 0: DMA mode is disabled
- – 1: DMA mode is enabled
- Bits 12:11 SAMPLE_RATE[1:0]: conversion rate of ADC (\(F_{ADC}\)):
- \[F_{ADC} = F_{ADC\_CLK} / (16 + 16 * SAMPLE\_RATE\_MSB + 4 * SAMPLE\_RATE)\]
- where \(F_{ADC\_CLK}\) is the analog ADC clock frequency. By default \(F_{ADC\_CLK}\) is 16 MHz frequency.
- Bits 10:7 Reserved, must be kept at reset value.
- Bit 6 SMPS_SYNCHRO_ENA: synchronize the ADC start conversion with a pulse generated by the SMPS:
- – 0: SMPS synchronization is disabled for all ADC clock frequencies
- – 1: SMPS synchronization is enabled
- Note: SMPS_SYNCHRO_ENA must be 0 when PWR_CR5.NOSMPS = 1.
- Bits 5:2 SEQ_LEN[3:0]: number of conversions in a regular sequence:
- – 0000: 1 conversion, starting from SEQ0
- – 0001: 2 conversions, starting from SEQ0
- – ...
- – 1111: 16 conversions, starting from SEQ0
- Bit 1 SEQUENCE: enable the sequence mode (active by default):
- – 0: sequence mode is disabled, only SEQ0 is selected
- – 1: sequence mode is enabled, conversions from SEQ0 to SEQx with x = SEQ_LEN
- Note: clearing this bit is equivalent to SEQUENCE=1 and SEQ_LEN=0000. Ideally, this bit can be kept high as redundant with keeping high and setting SEQ_LEN=0000.
- Bit 0 CONT: regular sequence runs continuously when ADC mode is enabled:
- – 0: enable the single conversion: when the sequence is over, the conversion stops
- – 1: enable the continuous conversion: when the sequence is over, the sequence starts again until the software sets the CTRL.STOP_OP_MODE bit.
12.6.3 ADC control register (CTRL)
Address offset: 0x08
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | STOP_OP_MODE | START_CONV | ADC_ON_OFF |
| t | t | rw |
Bits 31:5 Reserved, must be kept at reset value.
Bit 4 Reserved, must be kept at reset value.
Bit 3 Reserved, must be kept at reset value.
Bit 2 STOP_OP_MODE(1): stop the on-going OP_MODE (ADC mode):
– 0: no effect
– 1: stop on-going ADC mode
Note: this bit is set by software and cleared by hardware.
Bit 1 START_CONV(1): generate a start pulse to initiate an ADC conversion:
– 0: no effect
– 1: start the ADC conversion
Note: this bit is set by software and cleared by hardware.
Bit 0 ADC_ON_OFF:
– 0: power off the ADC
– 1: power on the ADC
- 1. When setting the STOP_MODE_OP, the user has to wait around 10 us before to start a new ADC conversion by setting the START_CONV bit.
12.6.4 ADC input voltage switch selection register (SWITCH)
Address offset: 0x14
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SE_VIN_7[1:0] | SE_VIN_6[1:0] | SE_VIN_5[1:0] | SE_VIN_4[1:0] | SE_VIN_3[1:0] | SE_VIN_2[1:0] | SE_VIN_1[1:0] | SE_VIN_0[1:0] | ||||||||
| rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:14 SE_VIN_7[1:0]: input voltage for VINP[3]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 13:12 SE_VIN_6[1:0]: input voltage for VINP[2]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 11:10 SE_VIN_5[1:0]: input voltage for VINP[1]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 9:8 SE_VIN_4[1:0]: input voltage for VINP[0]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 7:6 SE_VIN_3[1:0]: input voltage for VINM[3] / VINP[3]-VINM[3]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 5:4 SE_VIN_2[1:0]: input voltage for VINM[2] / VINP[2]-VINM[2]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 3:2 SE_VIN_1[1:0]: input voltage for VINM[1] / VINP[1]-VINM[1]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
Bits 1:0 SE_VIN_0[1:0]: input voltage for VINM[0] / VINP[0]-VINM[0]
- – 00: Vinput = 1.2 V
- – 01: reserved (not used for this cut)
- – 10: Vinput = 2.4 V
- – 11: Vinput = 3.6 V
12.6.5 Down sampler configuration register (DS_CONF)
Address offset: 0x1C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DS_WIDTH[2:0] | DS_RATIO[2:0] | ||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:3 DS_WIDTH[2:0]: program the Down Sampler width of data output (DSDTATA)
- – 000: DS_DATA output on 12-bit (default)
- – 001: DS_DATA output on 13-bit
- – 010: DS_DATA output on 14-bit
- – 011: DS_DATA output on 15-bit
- – 100: DS_DATA output on 16-bit
- – 1xx: reserved
Bits 2:0 DS_RATIO[2:0]: program the Down Sampler ratio (N factor)
- – 000: ratio = 1, no down sampling (default)
- – 001: ratio = 2
- – 010: ratio = 4
- – 011: ratio = 8
- – 100: ratio = 16
- – 101: ratio = 32
- – 110: ratio = 64
- – 111: ratio = 128

12.6.6 ADC sequence programming 1 register (SEQ_1)
Address offset: 0x20
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SEQ7[3:0] | SEQ6[3:0] | SEQ5[3:0] | SEQ4[3:0] | SEQ3[3:0] | SEQ2[3:0] | SEQ1[3:0] | SEQ0[3:0] | ||||||||||||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||||||||||||||||||
- Bits 31:28 SEQ7[3:0]: channel number code for 8th conversion of the sequence.
See SEQ0 for code detail. - Bits 27:24 SEQ6[3:0]: channel number code for 7th conversion of the sequence.
See SEQ0 for code detail. - Bits 23:20 SEQ5[3:0]: channel number code for 6th conversion of the sequence.
See SEQ0 for code detail. - Bits 19:16 SEQ4[3:0]: channel number code for 5th conversion of the sequence.
See SEQ0 for code detail. - Bits 15:12 SEQ3[3:0]: channel number code for 4th conversion of the sequence.
See SEQ0 for code detail. - Bits 11:8 SEQ2[3:0]: channel number code for 3rd conversion of the sequence.
See SEQ0 for code detail. - Bits 7:4 SEQ1[3:0]: channel number code for second conversion of the sequence.
See SEQ0 for code detail. - Bits 3:0 SEQ0[3:0]: channel number code for first conversion of the sequence
- – 0000: VINM[0] to ADC single negative input
- – 0001: VINM[1] to ADC single negative input
- – 0010: VINM[2] to ADC single negative input
- – 0011: VINM[3] to ADC single negative input
- – 0100: VINP[0] to ADC single positive input
- – 0101: VINP[1] to ADC single positive input
- – 0110: VINP[2] to ADC single positive input
- – 0111: VINP[3] to ADC single positive input
- – 1000: VINP[0]-VINM[0] to ADC differential input
- – 1001: VINP[1]-VINM[1] to ADC differential input
- – 1010: VINP[2]-VINM[2] to ADC differential input
- – 1011: VINP[3]-VINM[3] to ADC differential input
- – 1100: VBAT - Battery level detector
- – 1101: Temperature sensor
- – 111x: reserved
12.6.7 ADC sequence programming 2 register (SEQ_2)
Address offset: 0x24
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SEQ15[3:0] | SEQ14[3:0] | SEQ13[3:0] | SEQ12[3:0] | SEQ11[3:0] | SEQ10[3:0] | SEQ9[3:0] | SEQ8[3:0] | ||||||||||||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||||||||||||||||||
- Bits 31:28 SEQ15[3:0]: channel number code for 16th conversion of the sequence.
See SEQ8 for code detail. - Bits 27:24 SEQ14[3:0]: channel number code for 15th conversion of the sequence.
See SEQ8 for code detail. - Bits 23:20 SEQ13[3:0]: channel number code for 14th conversion of the sequence.
See SEQ8 for code detail. - Bits 19:16 SEQ12[3:0]: channel number code for 13th conversion of the sequence.
See SEQ8 for code detail. - Bits 15:12 SEQ11[3:0]: channel number code for 12th conversion of the sequence.
See SEQ8 for code detail. - Bits 11:8 SEQ10[3:0]: channel number code for 11th conversion of the sequence.
See SEQ8 for code detail. - Bits 7:4 SEQ9[3:0]: channel number code for 10th conversion of the sequence.
See SEQ8 for code detail. - Bits 3:0 SEQ8[3:0]: channel number code for 9th conversion of the sequence
- – 0000: VINM[0] to ADC single negative input
- – 0001: VINM[1] to ADC single negative input
- – 0010: VINM[2] to ADC single negative input
- – 0011: VINM[3] to ADC single negative input
- – 0100: VINP[0] to ADC single positive input
- – 0101: VINP[1] to ADC single positive input
- – 0110: VINP[2] to ADC single positive input
- – 0111: VINP[3] to ADC single positive input
- – 1000: VINP[0]-VINM[0] to ADC differential input
- – 1001: VINP[1]-VINM[1] to ADC differential input
- – 1010: VINP[2]-VINM[2] to ADC differential input
- – 1011: VINP[3]-VINM[3] to ADC differential input
- – 1100: VBAT - Battery level detector
- – 1101: temperature sensor
- – 111x: reserved
12.6.8 ADC gain and offset correction 1 register (COMP_1)
Address offset: 0x28
Reset value: 0x0000 0555
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OSFFSET1[7:0] | GAIN1[11:0] | ||||||||||||||||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:20 Reserved, must be kept at reset value.
Bits 19:12 OFFSET1[7:0]: first calibration point: signed offset compensation[7:0]
Bits 11:0 GAIN1[11:0]: first calibration point: gain AUXADC_GAIN_1V2[11:0]
12.6.9 ADC gain and offset correction 2 register (COMP_2)
Address offset: 0x2C
Reset value: 0x0000 0555
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OSFFSET2[7:0] | GAIN2[11:0] | ||||||||||||||||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:20 Reserved, must be kept at reset value.
Bits 19:12 OFFSET2[7:0]: first calibration point: signed offset compensation[7:0]
Bits 11:0 GAIN2[11:0]: second calibration point: gain AUXADC_GAIN_1V2[11:0]
12.6.10 ADC gain and offset correction 3 register (COMP_3)
Address offset: 0x30
Reset value: 0x0000 0555
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OSFFSET3[7:0] | GAIN3[11:0] | ||||||||||||||||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:20 Reserved, must be kept at reset value.
Bits 19:12 OFFSET3[7:0]: first calibration point: signed offset compensation[7:0]
Bits 11:0 GAIN3[11:0]: third calibration point: gain AUXADC_GAIN_1V2[11:0]
12.6.11 ADC gain and offset correction 4 register (COMP_4)
Address offset: 0x34
Reset value: 0x0000 0555
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OSFFSET4[7:0] | GAIN4[11:0] | ||||||||||||||||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:20 Reserved, must be kept at reset value.
Bits 19:12 OFFSET4[7:0]: first calibration point: signed offset compensation[7:0]
Bits 11:0 GAIN4[11:0]: fourth calibration point: gain AUXADC_GAIN_1V2[11:0]
12.6.12 ADC gain and offset selection register (COMP_SEL)
Address offset: 0x38
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | OFFSET_GAIN8[1:0] | OFFSET_GAIN7[1:0] | OFFSET_GAIN6[1:0] | OFFSET_GAIN5[1:0] | OFFSET_GAIN4[1:0] | OFFSET_GAIN3[1:0] | OFFSET_GAIN2[1:0] | OFFSET_GAIN1[1:0] | OFFSET_GAIN0[1:0] | |||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | |||||||||||||||||||||||
Bits 31:18 Reserved, must be kept at reset value.
Bits 17:16 OFFSET_GAIN8[1:0]: gain / offset used in ADC differential mode with \(V_{input\ range} = 3.6\ V\):
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
Bits 15:14 OFFSET_GAIN7[1:0]: gain / offset used in ADC single positive mode with \(V_{input\ range} = 3.6\ V\):
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
Bits 13:12 OFFSET_GAIN6[1:0]: gain / offset used in ADC single negative mode with \(V_{input\ range} = 3.6\ V\). This field also selects the gain/offset for VBAT inp:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 11:10 OFFSET_GAIN5[1:0]: gain / offset used in ADC differential mode with Vinput range = 2.4 V:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 9:8 OFFSET_GAIN4[1:0]: gain / offset used in ADC single positive mode with Vinput range = 2.4 V:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 7:6 OFFSET_GAIN3[1:0]: gain / offset used in ADC single negative mode with Vinput range = 2.4 V:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 5:4 OFFSET_GAIN2[1:0]: gain / offset used in ADC differential mode with Vinput range = 1.2 V:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 3:2 OFFSET_GAIN1[1:0]: gain / offset used in ADC single positive mode with Vinput range = 1.2 V. This field also selects the gain/offset for Temperature Sensor input:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
- Bits 1:0 OFFSET_GAIN0[1:0]: gain / offset used in ADC single negative mode with Vinput range = 1.2 V:
- – 00: OFFSET1 and GAIN1 from COMP_1
- – 01: OFFSET2 and GAIN2 from COMP_2
- – 10: OFFSET3 and GAIN3 from COMP_3
- – 11: OFFSET4 and GAIN4 from COMP_4
12.6.13 ADC watchdog threshold register (WD_TH)
Address offset: 0x3C
Reset value: 0x0FFF 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | WD_HT[11:0] | Res | Res | Res | Res | WD_LT[11:0] | ||||||||||||||||||||||
| rw | rw | ||||||||||||||||||||||||||||||
Bits 31:28 Reserved, must be kept at reset value.
Bits 27:16 WD_HT[11:0]: analog watchdog high level threshold.
Bits 15:12 Reserved, must be kept at reset value.
Bits 11:0 WD_LT[11:0]: analog watchdog low level threshold.
12.6.14 ADC watchdog configuration register (WD_CONF)
Address offset: 0x40
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | AWD_CHX[15:0] | |||||||||||||||
| rw | |||||||||||||||||||||||||||||||
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 AWD_CHX[15:0]: analog watchdog channel selection to define which input channel(s) need to be guarded by the watchdog.
- – Bit0: VINM[0] to ADC negative input
- – Bit1: VINM[1] to ADC negative input
- – Bit2: VINM[2] to ADC negative input
- – Bit3: VINM[3] to ADC negative input
- – Bit4: GND to ADC negative input
- – Bit5: VBAT to ADC negative input
- – Bit6: GND to ADC negative input
- – Bit7: VDDA to ADC negative input
- – Bit8: VINP[0] to ADC positive input
- – Bit9: VINP[1] to ADC positive input
- – Bit10: VINP[2] to ADC positive input
- – Bit11: VINP[3] to ADC positive input
- – Bit12: VBAT to ADC positive input
- – Bit13: TEMP to ADC positive input
- – Bit14: GND to ADC positive input
- – Bit15: VDDA to ADC positive input
12.6.15 Down Sampler data out register (DS_DATAOUT)
Address offset: 0x44
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DS_DATA[15:0] | |||||||||||||||
| r | |||||||||||||||||||||||||||||||
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:0 DS_DATA[15:0]: contain the converted data at the output of the Down Sampler.
12.6.16 ADC Interrupt status register (IRQ_STATUS)
Address offset: 0x4C
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | OVR_DS_IRQ | AWD_IRQ | EOS_IRQ | Res. | EODS_IRQ | EOC_IRQ |
| rc_w1 | rc_w1 | rc_w1 | rc_w1 | rc_w1 |
Bits 31:6 Reserved, must be kept at reset value.
Bit 5 OVR_DS_IRQ: set to indicate a Down Sampler overrun (at least one data is lost)
When read, provide the status of the interrupt:
- – 0: no overrun occurred
- – 1: overrun occurred
Writing this bit clears the status of the interrupt:
- – 0: no effect
- – 1: clear the interrupt
Bit 4 AWD_IRQ: set when an analog watchdog event occurs.
When read, provide the status of the interrupt:
- – 0: no analog watchdog event occurred
- – 1: analog watchdog event has occurred
Writing this bit clears the status of the interrupt:
- – 0: no effect
- – 1: clear the interrupt
Bit 3 EOS_IRQ: set when a sequence of conversion is completed.
When read, provide the status of the interrupt:
- – 0: sequence of conversion is not completed
- – 1: sequence of conversion is completed
Writing this bit clears the status of the interrupt:
- – 0: no effect
- – 1: clear the interrupt
Bit 2 Reserved, must be kept at reset value.
Bit 1 EODS_IRQ: set when the Down Sampler conversion is completed.
- When read, provide the status of the interrupt:
- – 0: Down Sampler conversion is not completed
- – 1: Down Sampler conversion is completed
- Writing this bit clears the status of the interrupt:
- – 0: no effect
- – 1: clear the interrupt
Bit 0 EOC_IRQ: set when the ADC conversion is completed.
- When read, provide the status of the interrupt:
- – 0: ADC conversion is not completed
- – 1: ADC conversion is completed
- Writing this bit clears the status of the interrupt:
- – 0: no effect
- – 1: clear the interrupt
12.6.17 ADC Interrupt enable register (IRQ_ENABLE)
Address offset: 0x50
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | OVR_DS_IRQ_EN | AWD_IRQ_ENA | EOS_IRQ_ENA | Res. | EODS_IRQ_ENA | EOC_IRQ_ENA |
| rw | rw | rw | rw | rw |
Bits 31:6 Reserved, must be kept at reset value.
Bit 5 OVR_DS_IRQ_ENA: Down Sampler overrun interrupt enable:
- – 0: Down Sampler interrupt is disabled
- – 1: Down Sampler interrupt is enabled
Bit 4 AWD_IRQ_ENA: analog watchdog interrupt enable:
- – 0: analog watchdog interrupt is disabled
- – 1: analog watchdog interrupt is enabled
Bit 3 EOS_IRQ_ENA: End of regular sequence interrupt enable:
- – 0: EOS interrupt is disabled
- – 1: EOS interrupt is enabled
Bit 2 Reserved, must be kept at reset value.
Bit 1 EODS_IRQ_ENA: End of conversion interrupt enable for the Down Sampler output:
- – 0: EODF interrupt is disabled
- – 1: EODF interrupt is enabled
Bit 0 EOC_IRQ_ENA: End of ADC conversion interrupt enable:
- – 0: EOC interrupt is disabled
- – 1: EOC interrupt is enabled
12.7 ADC register map
Refer to Table 3: Memory map and peripheral register boundary addresses for the ADC base address location in STM32WL30xx/31xx/33xx devices.
Table 34. ADC register map and reset values
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x00 | VERSION_ID | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | VERSION_ID[7:0] | |||||||
| Reset value | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | |||||||||||||||||||||||||
| 0x04 | CONF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SAMPLE_RATE_MSB | Res. | Res. | ADC_CONT_1V2 | BIT_INVERT_DIFF | BIT_INVERT_SN | Res. | OVR_DS_CFG | Res. | DMA_DS_ENA | SAMPLE_RATE[1:0] | Res. | Res. | Res. | Res. | SMPS_SYNCHRO_ENA | SEQ_LEN[3:0] | SEQUENCE | CONT. | ||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | ||||||||||||||||
| 0x08 | CTRL | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | STOP_OP_MODE | START_CONV | ADC_ON_OFF |
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x14 | SWITCH | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SE_VIN_7[1:0] | SE_VIN_6[1:0] | SE_VIN_5[1:0] | SE_VIN_4[1:0] | SE_VIN_3[1:0] | SE_VIN_2[1:0] | SE_VIN_1[1:0] | SE_VIN_0[1:0] | ||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||
| 0x1C | DS_CONF | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DS_WIDTH[2:0] | DS_RATIO[2:0] | ||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x20 | SEQ_1 | SEQ7[3:0] | SEQ6[3:0] | SEQ5[3:0] | SEQ4[3:0] | SEQ3[3:0] | SEQ2[3:0] | SEQ1[3:0] | SEQ0[3:0] | ||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x24 | SEQ_2 | SEQ15[3:0] | SEQ14[3:0] | SEQ13[3:0] | SEQ12[3:0] | SEQ11[3:0] | SEQ10[3:0] | SEQ9[3:0] | SE80[3:0] | ||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| 0x28 | COMP_1 | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | OFFSET1[7:0] | GAIN1[11:0] | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | |||||||||||||

Table 34. ADC register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x2C | COMP_2 | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OFFSET2[7:0] | GAIN2[11:0] | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | ||||||||||||||
| 0x30 | COMP_3 | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OFFSET3[7:0] | GAIN3[11:0] | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | ||||||||||||||
| 0x34 | COMP_4 | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | OFFSET4[7:0] | GAIN4[11:0] | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | ||||||||||||||
| 0x38 | COMP_SEL | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x3C | WD_TH | Res | Res | Res | Res | WD_HT[11:0] | Res | Res | Res | Res | WD_LT[11:0] | ||||||||||||||||||||||
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||
| 0x40 | WD_CONF | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | AWD_CHX[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x44 | DS_DATAOUT | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | DS_DATA[15:0] | |||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||
| 0x4C | IRQ_STATUS | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | |
| Reset value | |||||||||||||||||||||||||||||||||
| 0x50 | IRQ_ENABLE | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | |
| Reset value | |||||||||||||||||||||||||||||||||