AT90PWM216-16SE ATMEL [ATMEL Corporation], AT90PWM216-16SE Datasheet - Page 229

no-image

AT90PWM216-16SE

Manufacturer Part Number
AT90PWM216-16SE
Description
8-bit Microcontroller with 16K Bytes In-System Programmable flash
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet
20. Analog Comparator
20.1
7710D–AVR–08/09
Overview
The Analog Comparator compares the input values on the positive pin ACMPx and negative pin
ACMPM.
The AT90PWM216/316 features three fast analog comparators.
Each comparator has a dedicated input on the positive input, and the negative input can be con-
figured as:
When the voltage on the positive ACMPn pin is higher than the voltage selected by the ACnM
multiplexer on the negative input, the Analog Comparator output, ACnO, is set.
The comparator is a clocked comparator. A new comparison is done on the falling edge of
CLK
tus Register – ACSR” on page
Each comparator can trigger a separate interrupt, exclusive to the Analog Comparator. In addi-
tion, the user can select Interrupt triggering on comparator output rise, fall or toggle.
The interrupt flags can also be used to synchronize ADC or DAC conversions.
Moreover, the comparator’s output of the comparator 1 can be set to trigger the Timer/Counter1
Input Capture function.
The comparator as no hysterisis on the rising edge (0 > 1) and a hlaf -hysterisis on the falling
edge (1 -> 0).
A block diagram of the three comparators and their surrounding logic is shown in
• a steady value among the 4 internal reference levels defined by the Vref selected thanks to
• a value generated from the internal DAC
• an external analog input ACMPM.
the REFS1:0 bits in ADMUX register.
I/O
or CLK
I/O
/2 ( Depending on ACCKDIV fit of ACSR register,
233.).
AT90PWM216/316
See “Analog Comparator Sta-
Figure
20-1.
229

Related parts for AT90PWM216-16SE