This chapter introduces the PIC24F series analog comparator module, including module introduction, control register, working principle, reference voltage, response time, output, interrupt, initialization and electrical specifications.
The chapter introduces the comparator module of PIC24F microcontrollers, explaining its flexible configuration options, input sources, and reference voltage selections. It details the CMCON control register, individual bits for enabling comparators, setting output polarity, and selecting input pins.
Operational aspects such as comparator response time, output behavior, interrupt handling, and power‑saving modes are explained, along with recommended electrical limits for input source impedance, leakage current, and input capacitance. A list of related application notes and the document version history conclude the chapter. This manual is written in Chinese.
| Maximum recommended source impedance | 10 kΩ |
|---|
Set the C1EN and C2EN bits in the CMCON register to 1; each bit enables the corresponding comparator.
Set the C1INV or C2INV bits in the CMCON register to 1 to invert the output of Comparator 1 or Comparator 2 respectively.