attiny167-esxz ATMEL Corporation, attiny167-esxz Datasheet - Page 200

no-image

attiny167-esxz

Manufacturer Part Number
attiny167-esxz
Description
8-bit Avr 8-bit Microcontroller Microcontroller With 16k Bytes In-system Programmable Flash And Lin Controller
Manufacturer
ATMEL Corporation
Datasheet
17.11.5
200
ATtiny167
DIDR0 – Digital Input Disable Register 0
• Bit 7– BIN: Bipolar Input Mode
The gain stage is working in the unipolar mode as default, but the bipolar mode can be selected
by writing the BIN bit in the ADCSRB register. In the unipolar mode only one-sided conversions
are supported and the voltage on the positive input must always be larger than the voltage on
the negative input. Otherwise the result is saturated to the voltage reference. In the bipolar mode
two-sided conversions are supported and the result is represented in the two’s complement
form. In the unipolar mode the resolution is 10 bits and the bipolar mode the resolution is 9 bits +
1 sign bit.
• Bit 3 – Res: Reserved Bit
This bit is reserved for future use. For compatibility with future devices it must be written to zero
when ADCSRB register is written.
• Bits 2:0 – ADTS2:0: ADC Auto Trigger Source
If ADATE in ADCSRA register is written to one, the value of these bits selects which source will
trigger an ADC conversion. If ADATE is cleared, the ADTS2:0 settings will have no effect. A con-
version will be triggered by the rising edge of the selected Interrupt Flag. Note that switching
from a trigger source that is cleared to a trigger source that is set, will generate a positive edge
on the trigger signal. If ADEN in ADCSRA register is set, this will start a conversion. Switching to
Free Running mode (ADTS[2:0]=0) will not cause a trigger event, even if the ADC Interrupt Flag
is set
Table 17-7.
• Bits 7:0 – ADC7D:ADC0D: ADC7:0 Digital Input Disable
When this bit is written logic one, the digital input buffer on the corresponding ADC pin is dis-
abled. The corresponding PIN register bit will always read as zero when this bit is set. When an
analog signal is applied to the ADC7:0 pin and the digital input from this pin is not needed, this
bit should be written logic one to reduce power consumption in the digital input buffer.
Bit
Read/Write
Initial Value
ADTS2
.
0
0
0
0
1
1
1
1
ADC Auto Trigger Source Selections
ADC7D /
AIN1D
R/W
7
0
ADTS1
0
0
1
1
0
0
1
1
ADC6D /
AIN0D
R/W
6
0
ADC5D
R/W
5
0
ADTS0
0
1
0
1
0
1
0
1
ADC4D
R/W
4
0
Trigger Source
Free Running mode
Analog Comparator
External Interrupt Request 0
Timer/Counter1 Compare Match A
Timer/Counter1 Overflow
Timer/Counter1 Compare Match B
Timer/Counter1 Capture Event
Watchdog Interrupt Request
ADC3D
R/W
3
0
ADC2D
R/W
2
0
ADC1D
R/W
1
0
ADC0D
R/W
0
0
7728A–AUTO–07/08
DIDR0

Related parts for attiny167-esxz