220
AT90PWM216/316 [DATASHEET]
7710H–AVR–07/2013
register is set. Anyway, this bit is cleared by writing a logical one on it.
This bit can also be used to synchronize ADC or DAC conversions.
Bit 4– AC0IF: Analog Comparator 0 Interrupt Flag Bit
This bit is set by hardware when comparator 0 output event triggers off the interrupt mode defined by AC0IS1 and
AC0IS0 bits in AC0CON register.
This bit is cleared by hardware when the corresponding interrupt vector is executed in case the AC0IE in AC0CON
register is set. Anyway, this bit is cleared by writing a logical one on it.
This bit can also be used to synchronize ADC or DAC conversions.
Bit 3– CLKPLL: PLL Output Clock selection
Set this bit to select the 8MHz or the 16Mhz I/O clock from the 32/64 MHz PLL
as clock for Analog Comparator:
8 MHz if PLL=32MHz
16MHz if PLL=64MHz
If CKSEL Fuse is already set, a Read of this bit will confirm that PLL/4 clock is the source of the clock.
Clear this bit to select the clk
I/O standard clock.
Bit 2– AC2O: Analog Comparator 2 Output Bit
AC2O bit is directly the output of the Analog comparator 2.
Set when the output of the comparator is high.
Cleared when the output comparator is low.
Bit 1– AC1O: Analog Comparator 1 Output Bit
AC1O bit is directly the output of the Analog comparator 1.
Set when the output of the comparator is high.
Cleared when the output comparator is low.
Bit 0– AC0O: Analog Comparator 0 Output Bit
AC0O bit is directly the output of the Analog comparator 0.
Set when the output of the comparator is high.
Cleared when the output comparator is low.
19.2.5
Digital Input Disable Register 0 – DIDR0
Bit 3:2 – ACMPM and ACMP2D: ACMPM and ACMP2 Digital Input Disable
When this bit is written logic one, the digital input buffer on the corresponding Analog pin is disabled. The corre-
sponding PIN Register bit will always read as zero when this bit is set. When an analog signal is applied to one of
these pins and the digital input from this pin is not needed, this bit should be written logic one to reduce power con-
sumption in the digital input buffer.
Bit
76543210
ADC7D
ADC6D
ADC5D
ADC4D
ADC3D
ACMPM
ADC2D
ACMP2D
ADC1D
ADC0D
DIDR0
Read/Write
R/W
Initial Value
00000000