AT90CAN128-16AE ATMEL Corporation, AT90CAN128-16AE Datasheet - Page 260

no-image

AT90CAN128-16AE

Manufacturer Part Number
AT90CAN128-16AE
Description
8-bit Avr Microcontroller With 128K Bytes of Isp Flash And CAN Controller.flash (Kbytes) 128 Vcc (V) 2.7-5.5 EEPROM (Kbytes) 4 SRAM (bytes) 4K CAN (mess. Obj.) 15
Manufacturer
ATMEL Corporation
Datasheet
Analog Comparator
Overview
Analog Comparator
Register Description
ADC Control and Status
Register B – ADCSRB
Analog Comparator Control
and Status Register – ACSR
260
AT90CAN128
The Analog Comparator compares the input values on the positive pin AIN0 and nega-
tive pin AIN1.
When the voltage on the positive pin AIN0 is higher than the voltage on the negative pin
AIN1, the Analog Comparator output, ACO, is set. The comparator’s output can be set
to trigger the Timer/Counter1 Input Capture function. In addition, the comparator can
trigger a separate interrupt, exclusive to the Analog Comparator. The user can select
Interrupt triggering on comparator output rise, fall or toggle. A block diagram of the com-
parator and its surrounding logic is shown in Figure 123
Figure 123. Analog Comparator Block Diagram
Notes:
• Bit 6 – ACME: Analog Comparator Multiplexer Enable
When this bit is written logic one and the ADC is switched off (ADEN in ADCSRA is
zero), the ADC multiplexer selects the negative input to the Analog Comparator. When
this bit is written logic zero, AIN1 is applied to the negative input of the Analog Compar-
ator. For a detailed description of this bit, see “Analog Comparator Multiplexed Input” on
page 262.
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
MULTIPLEXER
REFERENCE
ACME
ADEN
BANDGAP
OUTPUT
ADC
1. ADC multiplexer output: see Table 97 on page 262.
2. Refer to Figure 2 on page 4 and Table 41 on page 79 for Analog Comparator pin
placement.
ACBG
ADHSM
ACD
R/W
R/W
7
0
7
0
ACBG
ACME
R/W
R/W
6
0
6
0
ACO
N/A
R
5
R
5
0
R/W
ACI
4
0
R
4
0
ACIE
R/W
(1)(2)
3
0
R
3
0
ADTS2
.
ACIC
R/W
R/W
2
0
2
0
ACIS1
ADTS1
R/W
R/W
1
0
1
0
ACIS0
ADTS0
R/W
T/C1 INPUT CAPTURE
R/W
0
0
0
0
4250C–CAN–03/04
ADCSRB
ACSR

Related parts for AT90CAN128-16AE