SLAU929A April 2024 – June 2025 MSPM0C1104 , MSPM0G3505 , MSPM0G3506 , MSPM0G3507 , MSPM0H3216 , MSPM0L1105 , MSPM0L1227 , MSPM0L1227-Q1 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L1304 , MSPM0L1305 , MSPM0L1306 , MSPM0L2227 , MSPM0L2227-Q1 , MSPM0L2228 , MSPM0L2228-Q1
Microchip 8-bit AVR and MSPM0 both offer ADC peripherals to convert analog signals to a digital equivalent. Both device families feature either a 10-bit or 12-bit ADC. The following tables compare the different features and modes of the ADCs.
| Feature | Microchip ATMega | Microchip ATtiny | MSPM0 |
|---|---|---|---|
| Resolution (Bits) | 10 | 12 | 12/10/8 |
| Conversion Rate (Msps) (12-bit) | 15ksps | 375ksps | MSPM0Gx - 4 |
| MSPM0Lx - 1.68 | |||
| MSPM0Cx - 1.68 | |||
| Oversampling (Bits) | No | 17 | 14 |
| Hardware Oversampling | No | Yes | 128x |
| FIFO | No | No | Yes |
| ADC Reference (V) | Internal: 1.1 AVCC | Internal: 1.024, 2.048, 2.500, 4.096 VDD | Internal:1.4,2.5 VDD |
| External: 1.0 ≤ VREF ≤ VDD | External: 1.0 ≤ VREF ≤ VDD | External: 1.4 ≤ VREF ≤ VDD | |
| Operating Power Modes | Active, Idle, ADC noise reduction | Active, Idle, ADC noise reduction | Run, Sleep, Stop, Standby(1) |
| Auto Power Down | No | No | Yes |
| External Input Channels (2) | Up to 8 | Up to 15 | MSPM0Gx/Cx- up to 27 |
| MSPM0Lx - up to 26 | |||
| Internal Input Channels | Temperature Sensor, VREF, VBAT | No | Temperature Sensor, Supply Monitoring, Analog Signal Chain |
| DMA Support | Yes | No | Yes |
| ADC Window Comparator Unit | No | No | Yes |
| Simultaneous Sampling | No | No | MSPM0Gx - Yes |
| MSPM0Lx/Cx - No | |||
| Number of ADCs(3) | 1 | 1 | MSPM0Gx -2 |
| MSPM0Lx/Cx - 1 |
| Mode | Microchip ATMega | Microchip ATtiny | MSPM0 | Comments |
|---|---|---|---|---|
| Single Conversion Mode | Yes | Yes | Single Channel Single Conversion | ADC samples and converts a single channel once |
| Scan a Sequence of Channels | No | No | Sequence of Channels Conversion | ADC samples a sequence of channels and converts once. |
| Continuous Conversion Mode | Yes | Yes | Repeat Single Channel Conversion | Repeat single channel continuously samples and converts one channel |
| No | No | Repeat Sequence of Channels Conversion | Samples and converts a sequence of channels then repeats the same sequence | |
| Discontinuous Mode | No | No | Repeat Sequence of Channels Conversion | Samples and converts a discontinuous set of channels. This can be done on MSPM0 by mapping the MEMCTRLx to different channels. |
ADC code examples
Information about ADC code examples can be found in the MSPM0 SDK examples guide.