Datasheet
196
7734Q–AVR–02/12
AT90PWM81/161
Figure 16-2. Comparator PSC links.
16.3 Shared pins between Analog Comparator and ADC
Several Analog comparators input pins can also be used as ADC inputs, so it is possible to mea-
sure the comparison voltages. However, when a comparator input is selected as the ADC input,
a spike occurs during the sampling phase of the ADC. This may lead to an unwanted transition
on the comparator output. So it is a safe software practice to devalidate the comparator output
before measuring the voltage on one of the inputs.
16.4 Analog Comparator Register Description
Each analog comparator has its own control register.
A dedicated register has been designed to consign the outputs and the flags of the three analog
comparators.
+
-
+
-
ACMP1
ACMP2
AC2EN
ACMPM3
AC1EN
+
-
AC3EN
ACMP3
ACMPM2
ACMPM1
PSC2
PSCIN2A
PSCR
PSCINr
PSCIN2
PSCINrA
PSCINrB