ADuCM320 Hardware Reference Manual
UG-498
Rev. C | Page 35 of 196
ANALOG COMPARATOR
ANALOG COMPARATOR FEATURES
The analog comparator compares two analog signals and gives an output indicating which of the input signals is bigger. This output can
generate an interrupt
ANALOG COMPARATOR OVERVIEW
The positive input of the comparator is shared with AIN6.
The negative input of the comparator can be set by software to AVDD/2, AIN5, or DAC7.
The comparator output is connected to the interrupt logic and can be used as described in the System Exceptions and Peripheral
Interrupts section.
ANALOG COMPARATOR OPERATION
If required, change the hysteresis with AFECOMP[0], the comparator speed with AFECOMP[1:2], and the output polarity with AFECOMP[3].
Select the input source with AFECOMP[6:7].
Power up and enable the comparator with AFECOMP[8] and AFECOMP[4:5].