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. Block …
Read more →MCHP_ADC_HighSpeed_SAR_dsPIC - dsPIC-style interface (this block) MCHP_ADC_HighSpeed_SAR - PIC32-style interface Both blocks configure the same …
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 Supported Device Families SAM RH707x Key Features …
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 …
Read more →