ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 104

no-image

ATtiny40

Manufacturer Part Number
ATtiny40
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of ATtiny40

Flash (kbytes)
4 Kbytes
Pin Count
20
Max. Operating Frequency
12 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
Yes
Max I/o Pins
18
Ext Interrupts
18
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
12
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.25
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
4
Input Capture Channels
1
Pwm Channels
2
32khz Rtc
No
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATtiny40-MMHR
Quantity:
6 000
14.2.3
104
ATtiny40
DIDR0 – Digital Input Disable Register 0
• Bit 6 – HLEV: Hysteresis Level
When enabled via the HSEL bit, the level of hysteresis can be set using the HLEV bit, as shown
in
Table 14-3.
• Bit 5 – ACLP
This bit is reserved for QTouch, always write as zero.
• Bit 4 – Reserved
This bit is reserved and will always read as zero.
• Bit 3 – ACCE
This bit is reserved for QTouch, always write as zero.
• Bit 2 – 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 1 – ACIRS1
This bit is reserved for QTouch, always write as zero.
• Bit 0 – ACIRS0
This bit is reserved for QTouch, always write as zero.
• Bits 2:1 – ADC2D, ADC1D: ADC[2:1] Digital Input Buffer Disable
When this bit is written logic one, the digital input buffer on the AIN[1:0] pin is disabled. The cor-
responding PIN Register bit will always read as zero when this bit is set. When used as an
analog input but not required as a digital input the power consumption in the digital input buffer
can be reduced by writing this bit to logic one.
Bit
0x0D
Read/Write
Initial Value
Table
HSEL
0
1
14-3.
Selecting Level of Analog Comparator Hysteresis
ADC7D
R/W
7
0
HLEV
X
0
1
ADC6D
R/W
“Analog Comparator Multiplexed Input” on page
6
0
ADC5D
Hysteresis of Analog Comparator
Not enabled
20 mV
50 mV
R/W
5
0
ADC4D
R/W
4
0
ADC3D
R/W
3
0
ADC2D
R/W
2
0
ADC1D
R/W
1
0
102.
ADC0D
R/W
0
0
8263A–AVR–08/10
DIDR0

Related parts for ATtiny40