5.4.2 Digital-to-Analog Converter (DAC)
AVR and PIC32CM DAC peripherals generate analog voltages from digital values. The DAC features high drive capabilities, the ability to route DAC output to other internal analog peripherals (like comparators), and support for real-time analog signal generation. These DACs are suitable for applications such as waveform generation, audio output, and analog control.
Some PIC32CM device families have 12-bit DAC controllers with higher speed, dual-channel, and differential output options. Table 5-15 shows a comparison of features between AVR and PIC32CM.
| Feature | AVR® DAC | PIC32CM DAC (10-bit/12-bit) |
|---|---|---|
| Resolution | 10-bit |
10-bit 12-bit (16-bit with dithering) |
| Max Conversion Rate | Up to 350 ksps |
10-bit: Up to 350 ksps 12-bit: Up to 1 Msps |
| Number of Channels | One |
10-bit: One 12-bit: Two (independent) or one (differential mode) |
| Output Range | GND to selected VREF | GND to selected VREF |
| Trigger Sources | Enable Bit |
Enable Bit Event-driven |
| Internal Routing | Output can be used by other analog blocks | Output can be used by other analog blocks |
