2.3 Comparator (CMP)

Comparators are used to interface analog circuits to a digital circuit by comparing two analog voltages and providing a digital indication of their relative magnitudes. Comparators are very useful mixed signal building blocks because they provide analog functionality independent of program execution.

Figure 2-3 shows simplified diagram of the CMP module interconnections to the other peripherals of PIC16F17146 family of microcontrollers.

Figure 2-3. Comparator Module Interconnections to Other Peripherals of the PIC16F17146 Family of Microcontrollers