ADC (Analog-to-Digital Converter) blocks provide high-performance data acquisition for motor control, power conversion, and sensor applications. The MPLAB Blockset offers ADC blocks optimized for different device families, from 10-bit converters to 12-bit SAR ADCs with multiple dedicated cores, hardware sequencing, and PWM synchronization.
| Device Family | Recommended ADC Block | Key Advantage |
|---|---|---|
| dsPIC30F / dsPIC33F | ADC | dsPIC30F/33F support, proven reliability |
| dsPIC33E (non-GS) | ADC | 10/12-bit, simultaneous sampling |
| dsPIC33C (CH/CK/CDV) | ADC_HighSpeed_SAR_dsPIC | Dedicated cores, 3.25 Msps |
| dsPIC33A (33AK) | ADC_HS_12b | Software sequencing, 12-bit precision |
| PIC24 | ADC | Compatible with PIC24 peripherals |
| PIC32MK / PIC32MZ | ADC_HighSpeed_SAR | High-speed, special inputs (VBat, Temp) |
| SAM E5x / D5x / C2x | ADC_SAME5x | Dual ADC, oversampling |
| SAM E7x / S7x / V7x | AFEC_SAM7x | Programmable gain, offset compensation |
| SAM RH707x | ADC_SAMRH707x | Radiation hardened, aerospace-grade |
| Application | Block Choice | Why? |
|---|---|---|
| 3-Phase FOC (dsPIC33A) | ADC_HS_12b | 12-bit precision, flexible sequencing |
| 3-Phase FOC (dsPIC33C) | ADC_HighSpeed_SAR_dsPIC | Dedicated cores for simultaneous sampling |
| 3-Phase FOC (dsPIC33E/F) | ADC | Simultaneous sampling mode |
| Dual Motor Control | ADC_HighSpeed_SAR_dsPIC | 6 dedicated cores |
| Precision Measurement | AFEC_SAM7x | Programmable gain, offset compensation |
| High-Speed Multi-Channel | ADC_HighSpeed_SAR | 3.25 Msps per core |
| Battery Monitoring | ADC_HighSpeed_SAR | VBat special input |
| Temperature Sensing | ADC_HighSpeed_SAR | Internal temperature sensor |
| Aerospace Applications | ADC_SAMRH707x | Radiation hardening, fault detection |
๐ข 10-bit (Good for fast sampling, noise-tolerant applications)
๐ก 12-bit (Standard for motor control, precision sensing)
๐ด Enhanced Resolution (Oversampling for ultra-precision)
Critical for motor control and power conversion - ADC sampling must be synchronized with PWM to avoid sampling during switching transients.
Synchronization Methods:
| Method | Description | Use Case |
|---|---|---|
| PWM Special Event (SEVTCMP) | Trigger at specific point in PWM period | Center-aligned PWM (valley sampling) |
| PWM Trigger Outputs | Up to 8 independent triggers (dsPIC33A) | Multi-phase, multi-motor |
| Timer Compare | Periodic trigger from timer | Edge-aligned PWM, general DAQ |
| External Trigger | Hardware trigger input | Synchronization with external events |
Best Practices:
| ADC Block | dsPIC30F | dsPIC33F | dsPIC33E | dsPIC33C | dsPIC33A | PIC24 | PIC32MK | PIC32MZ | SAM E5x | SAM E7x | SAM RH707x |
|---|---|---|---|---|---|---|---|---|---|---|---|
| ADC | โ | โ | โ (non-GS) | โ | โ | โ | โ | โ | โ | โ | โ |
| ADC_HighSpeed_SAR_dsPIC | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
| ADC_HS_12b | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
| ADC_HighSpeed_SAR | โ | โ | โ | โ ๏ธ | โ | โ | โ | โ | โ | โ | โ |
| ADC_SAME5x | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
| AFEC_SAM7x | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
| ADC_SAMRH707x | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ | โ |
Legend: โ Full Support | โ ๏ธ Shared with PIC32 | โ Not Available
Related Block Categories:
Application Notes:
Example Projects:
๐ก Quick Selection Guide:
Standard ADC block supporting up to 32 analog inputs with 10-bit or 12-bit resolution, simultaneous or sequential sampling, DMA transfers, and โฆ
Read more โHigh-speed SAR ADC with dedicated cores for simultaneous multi-channel acquisition. Ideal for motor control and high-throughput applications. When to โฆ
Read more โHigh-speed SAR ADC with dedicated cores for dsPIC33C families. dsPIC-style parameter interface with per-core configuration tabs. Overview The โฆ
Read more โAdvanced 12-bit high-speed ADC with flexible software sequencing for dsPIC33A. Each ADC core supports 6 independent sequences with 6 conversions per โฆ
Read more โSAM E5x - High-performance Cortex-M4F (SAME51, SAME53, SAME54) - SAM D5x - Cost-optimized Cortex-M4F (SAMD51) - SAM C2x - Motor control focused โฆ
Read more โSAMRH707 - 300 MHz Arm Cortex-M7 with radiation hardening - SAMRH70 - Radiation-tolerant variant When to use: When to use: SAM RH707x target device โฆ
Read more โSAM E70 - High-performance Cortex-M7 (up to 300 MHz) - SAM S70 - Secure Cortex-M7 with TrustZone - SAM V70/V71 - Automotive-qualified Cortex-M7 When โฆ
Read more โ