C8051F340/1/2/3/4/5/6/7
7.Comparators
C8051F340/1/2/3/4/5/6/7 devices include two
Each Comparator offers programmable response time and hysteresis, an analog input multiplexer, and two outputs that are optionally available at the Port pins: a synchronous “latched” output (CP0, CP1), or an asynchronous “raw” output (CP0A, CP1A). The asynchronous signal is available even when the system clock is not active. This allows the Comparators to operate and generate an output with the device in STOP mode. When assigned to a Port pin, the Comparator outputs may be configured as open drain or
The Comparator0 inputs are selected in the CPT0MX register (SFR Definition 7.2). The
Important Note About Comparator Inputs: The Port pins selected as Comparator inputs should be con- figured as analog inputs in their associated Port configuration register, and configured to be skipped by the Crossbar (for details on Port configuration, see Section “15.3. General Purpose Port I/O” on page 154).
Rev. 0.5 | 59 |