ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 2
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATtiny40
Manufacturer Part Number
ATtiny40
Description
Manufacturer
Atmel Corporation
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
1. Pin Configurations
1.1
1.1.1
1.1.2
1.1.3
2
Pin Description
ATtiny40
VCC
GND
RESET
Figure 1-1.
Supply voltage.
Ground.
Reset input. A low level on this pin for longer than the minimum pulse length will generate a
reset, even if the clock is not running and provided the reset pin has not been disabled. The min-
imum pulse length is given in
generate a reset.
The reset pin can also be used as a (weak) I/O pin.
Pinout of ATtiny40
(PCINT5/ADC5/OC0B) PA5
(PCINT2/ADC2/AIN1) PA2
(PCINT4/ADC4/T0) PA4
(PCINT5/ADC5/OC0B) PA5
(PCINT2/ADC2/AIN1) PA2
(PCINT1/ADC1/AIN0) PA1
(PCINT6/ADC6) PA6
(PCINT3/ADC3) PA3
(PCINT4/ADC4/T0) PA4
NOTE: Bottom pad should be soldered to ground.
(PCINT8/ADC8) PB0
(PCINT7/ADC7) PA7
(PCINT6/ADC6) PA6
(PCINT3/ADC3) PA3
(PCINT0/ADC0) PA0
Table 21-4 on page
GND
1
2
3
4
5
SOIC/TSSOP
MLF/VQFN
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
15
14
13
12
11
PB1 (ADC9/PCINT9)
PB2 (ADC10/PCINT10)
PB3 (ADC11/PCINT11)
PC0 (OC0A/SS/PCINT12)
PC1 (SCK/SCL/ICP1/T1/PCINT13)
PC2 (INT0/CLKO/MISO/PCINT14)
PC3 (RESET/PCINT15)
PC4 (MOSI/SDA/TPIDATA/PCINT16)
PC5 (CLKI/TPICLK/PCINT17)
VCC
168. Shorter pulses are not guaranteed to
PC0 (OC0A/SS/PCINT12)
PC1 (SCK/SCL/ICP1/T1/PCINT13)
PC2 (INT0/CLKO/MISO/PCINT14)
PC3 (RESET/PCINT15)
PC4 (MOSI/SDA/TPIDATA/PCINT16)
8263AS–AVR–08/10