ATTINY15 ATMEL [ATMEL Corporation], ATTINY15 Datasheet - Page 47

no-image

ATTINY15

Manufacturer Part Number
ATTINY15
Description
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATTINY15L
Manufacturer:
ATMEL
Quantity:
5 510
Part Number:
ATTINY15L
Manufacturer:
SIEMENS
Quantity:
5 510
Part Number:
ATTINY15L-1PC
Quantity:
1 670
Part Number:
ATTINY15L-1PI
Manufacturer:
AIMEL
Quantity:
5 510
Part Number:
ATTINY15L-1PI
Manufacturer:
VISHAY
Quantity:
5 510
Part Number:
ATTINY15L-1PI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY15L-1SC
Manufacturer:
ATMEL
Quantity:
3 447
Part Number:
ATTINY15L-1SC
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY15L-1SI
Manufacturer:
ATMEL
Quantity:
8
Part Number:
ATTINY15L-1SI
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATTINY15L-1SU
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
The ADC Control and Status
Register – ADCSR
1187D–12/01
• Bits 4..3 – Res: Reserved Bits
These bits are reserved bits in the ATtiny15L and always read as zero.
• Bits 2..0 – MUX2..MUX0: Analog Channel and Gain Selection Bits 2..0
The value of these bits selects which analog input is connected to the ADC. In case of
differential input (PB3 - PB4), gain selection is also made with these bits. Selecting PB3
as both inputs to the differential gain stage enables offset measurements. Refer to Table
20 for details. If these bits are changed during a conversion, the change will not go into
effect until this conversion is complete (ADIF in ADCSR is set).
Table 20. Input Channel and Gain Selections
Note:
• Bit 7 – ADEN: ADC Enable
Writing a logical “1” to this bit enables the ADC. By clearing this bit to zero, the ADC is
turned off. Turning the ADC off while a conversion is in progress will terminate this
conversion.
• Bit 6 – ADSC: ADC Start Conversion
In Single Conversion mode, a logical “1” must be written to this bit to start each conver-
sion. In Free Running mode, a logical “1” must be written to this bit to start the first
conversion.
When the conversion completes, ADSC returns to zero in Single Conversion mode and
stays high in Free Running mode.
Writing a “0” to this bit has no effect.
• Bit 5 – ADFR: ADC Free Running Select
When this bit is set (one), the ADC operates in Free Running mode. In this mode, the
ADC samples and updates the data registers continuously. Clearing this bit (zero) will
terminate Free Running mode. If active channels are used (MUX2 in ADMUX set), the
channel must be selected before entering Free Running mode. Selecting an active
channel after entering Free Running mode may result in undefined operation from the
ADC.
Bit
$06
Read/Write
Initial Value
MUX2..0
100
101
000
001
010
011
110
111
(1)
(1)
1. For offset calibration only. See “Operation” on page 42.
Single-ended
ADEN
ADC0 (PB5)
ADC1 (PB2)
ADC2 (PB3)
ADC3 (PB4)
R/W
7
0
Input
N/A
ADSC
R/W
6
0
ADFR
R/W
5
0
Differential Input
ADC2 (PB3)
ADC2 (PB3)
ADC2 (PB3)
ADC2 (PB3)
Positive
ADIF
R/W
4
0
ADIE
R/W
3
0
ADPS2
R/W
N/A
2
0
Differential Input
ADC2 (PB3)
ADC2 (PB3)
ADC3 (PB4)
ADC3 (PB4)
ADPS1
Negative
R/W
1
0
ATtiny15L
ADPS0
R/W
0
0
ADCSR
Gain
20x
20x
1x
1x
47

Related parts for ATTINY15