ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 5
![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
ATtiny40
The resulting architecture is compact and code efficient while achieving throughputs up to ten
times faster than conventional CISC microcontrollers.
The ATtiny40 provides the following features: 4K bytes of In-System Programmable Flash, 256
bytes of SRAM, twelve general purpose I/O lines, 16 general purpose working registers, an 8-bit
Timer/Counter with two PWM channels, a 8/16-bit Timer/Counter, Internal and External Inter-
rupts, an eight-channel, 10-bit ADC, a programmable Watchdog Timer with internal oscillator, a
slave two-wire interface, a master/slave serial peripheral interface, an internal calibrated oscilla-
tor, and four software selectable power saving modes.
Idle mode stops the CPU while allowing the SRAM, Timer/Counter, ADC, Analog Comparator,
and interrupt system to continue functioning. ADC Noise Reduction mode minimizes switching
noise during ADC conversions by stopping the CPU and all I/O modules except the ADC. In
Power-down mode registers keep their contents and all chip functions are disabled until the next
interrupt or hardware reset. In Standby mode, the oscillator is running while the rest of the
device is sleeping, allowing very fast start-up combined with low power consumption.
The device is manufactured using Atmel’s high density non-volatile memory technology. The on-
chip, in-system programmable Flash allows program memory to be re-programmed in-system by
a conventional, non-volatile memory programmer.
The ATtiny40 AVR is supported by a suite of program and system development tools, including
macro assemblers and evaluation kits.
5
8263AS–AVR–08/10