5.4.5 Operational Amplifiers (Op Amp)
Some PIC16F, PIC18F and PIC32CM MCUs have integrated Operational Amplifier (Op Amp) peripherals designed for flexible, low-power analog signal conditioning. The op amp peripherals provide up to three individually configurable op amps with rail-to-rail inputs, internal resistor ladders for feedback and gain control, and a wide range of selectable configurations. The PIC16F, PIC18F and PIC32CM op amps enable complex analog signal processing with minimal or no external components. Table 5-18 provides a comparison of features between PIC16F, PIC18F and PIC32CM.
| Feature/Aspect | PIC16F OPA | PIC18F OPA | PIC32CM OPAMP |
|---|---|---|---|
| Number of Op Amps | Up to four | Up to two | Up to three |
| Input Selection |
I/O pins, DAC Basic OPA: FVR Enhanced OPA: internal resistor ladder |
I/O pins, DAC Internal resistor ladder | I/O pins, DAC, ground Other op amps Internal resistor ladder |
| Output Selection | I/O pin | I/O pins, ADC, AC | I/O pins, ADC, AC Other op amps |
| Internal Resistor Ladder | Configurable for internal feedback/programmable gain | Configurable for internal feedback/programmable gain | Configurable for internal feedback/programmable gain |
| Configurations |
Stand-alone Unity gain buffer Inverting/non-inverting PGA Comparator |
Stand-alone Unity gain buffer Inverting/non-inverting PGA Comparator |
Stand-alone Unity gain buffer Inverting/non-inverting PGA Cascaded PGAs Instrumentation amplifier Comparator with hysteresis |
| Calibration | Automatic input or adjustable input offset voltage calibration | Automatic input or adjustable input offset voltage calibration | Offset/gain measurement with ADC |
| Power Modes | Standard | Standard | Four selectable modes (speed vs. power), on-demand start-up |
| Event System Integration | N/A | N/A | On-demand start-up for ADC/AC |
| Special Features | — | Built-in hardware peak detect |
Voltage doubler Programmable hysteresis |
| Low Power Operation | Supported | Supported | Supported |
| Output to Pin | Supported | Supported | Supported |
