SLAAEI9 December 2023 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1 , MSPM0G1105 , MSPM0G1106 , MSPM0G1107 , MSPM0G1505 , MSPM0G1506 , MSPM0G1507 , MSPM0G1519 , MSPM0G3105 , MSPM0G3105-Q1 , MSPM0G3106 , MSPM0G3106-Q1 , MSPM0G3107 , MSPM0G3107-Q1 , MSPM0G3505 , MSPM0G3505-Q1 , MSPM0G3506 , MSPM0G3506-Q1 , MSPM0G3507 , MSPM0G3507-Q1 , MSPM0G3519 , MSPM0L1105 , MSPM0L1106 , MSPM0L1227 , MSPM0L1228
STM8 and MSPM0 both offer ADC peripherals to convert analog signals to a digital equivalent. For STM8, STM8L001XX and STM8L101XX do not have ADC module. STM8S series and the rest of STM8L series offer 10-bit or 12-bit ADC, respectively. For MSPM0, both device series feature a 12-bit ADC. Table 5-1 and Table 5-2 compare the different features and modes of the ADCs.
Feature | STM8S | STM8L | MSPM0L | MSPM0C |
---|---|---|---|---|
Resolution (Bits) | 10 | 12 | 12, 10, 8 | 12, 10, 8 |
Conversion Rate | 0.43 Msps | 1 Msps | 1.68 Msps | 1.5 Msps |
Hardware Averaging | No | No | Yes | Yes |
FIFO | No | No | Yes | Yes |
ADC Reference (V) | Internal: 1.224 | Internal: 1.48, VDD | Internal: 1.4, 2.5, VDD | Internal: 1.4, 2.5, VDD |
External: 2.75 V ≤ VREF ≤ VDDA | External: 2.4 V ≤ VREF ≤ VDDA | External: 1.4 ≤ VREF ≤ VDD | External: 1.4 ≤ VREF ≤ VDD | |
Operating Power Modes | Wait/Low power wait | Wait | Run, Sleep, Stop, Standby 1 | Run, Sleep, Stop, Standby 1 |
Auto Power Down | No | No | Yes | Yes |
External Input Channels | Up to 16 | Up to 28 | Up to 16 | Up to 10 |
Internal Input Channels | Temperature Sensor,internal reference voltage | Temperature Sensor,internal reference voltage | Temperature Sensor, Supply Monitoring, Analog Signal Chain | Temperature Sensor, Supply Monitoring, Analog Signal Chain |
DMA Support | No | Yes | Yes | Yes |
ADC Window Comparator Unit | No | No | Yes | Yes |
Number of ADCs | Up to 1 | Up to 1 | Up to 1 | Up to 1 |
STM8 | MSPM0 | Comments |
---|---|---|
Single Conversion Mode | Single Channel Single Conversion | ADC samples and converts a single channel once |
Single scan mode | Sequence of Channels Conversion | ADC samples a sequence of channels and converts once. |
Continuous and buffered continuous modes | Repeat Single Channel Conversion | The one selected channel is repeatedly sampled and converted |
Continuous scan mode | Repeat Sequence of Channels Conversion | The group of channels are sampled and converted repeatedly |
ADC Code Examples
Information about ADC code examples can be found in the MSPM0 SDK examples guide.