ATtiny25 Automotive Atmel Corporation, ATtiny25 Automotive Datasheet - Page 108

no-image

ATtiny25 Automotive

Manufacturer Part Number
ATtiny25 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATtiny25 Automotive

Flash (kbytes)
2 Kbytes
Pin Count
8
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
4
Hardware Qtouch Acquisition
No
Max I/o Pins
6
Ext Interrupts
6
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
4
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.12
Eeprom (bytes)
128
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
5
Pwm Channels
6
32khz Rtc
No
Calibrated Rc Oscillator
Yes
17. Analog Comparator
17.1
17.2
108
ADC Control and Status Register B – ADCSRB
Analog Comparator Control and Status Register – ACSR
ATtiny25/45/85
The Analog Comparator compares the input values on the positive pin AIN0 and negative 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 can trigger a separate inter-
rupt, exclusive to the Analog Comparator. The user can select Interrupt triggering on comparator
output rise, fall or toggle. A block diagram of the comparator and its surrounding logic is shown
in
Figure 17-1. 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 Comparator. For a detailed
description of this bit, see
• Bit 7 – ACD: Analog Comparator Disable
When this bit is written logic one, the power to the Analog Comparator is switched off. This bit
can be set at any time to turn off the Analog Comparator.
Bit
Read/Write
Initial Value
Bit
Read/Write
Initial Value
Figure
ADC MULTIPLEXER
1. See
2. Refer to
17-1.
REFERENCE
ACME
ADEN
BANDGAP
OUTPUT
placement.
Table 17-2 on page
ACD
R/W
(1)
BIN
R
7
0
7
0
Figure 1-1 on page 2
ACBG
ACBG
ACME
R/W
R/W
“Analog Comparator Multiplexed Input” on page
6
0
6
0
110.
ACO
N/A
IPR
R
5
R
5
0
and
Table 10-5 on page 57
R/W
ACI
4
0
R
4
0
(2)
ACIE
R/W
3
0
R
3
0
ADTS2
R/W
R
2
0
2
0
for Analog Comparator pin
ADTS1
ACIS1
R/W
R/W
1
0
1
0
110.
ADTS0
ACIS0
R/W
R/W
0
0
0
0
7598H–AVR–07/09
ADCSRB
ACSR

Related parts for ATtiny25 Automotive