ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 40

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
9. Interrupts
9.1
40
Interrupt Vectors
ATtiny40
This section describes the specifics of the interrupt handling as performed in ATtiny40. For a
general explanation of the AVR interrupt handling, see
11.
The interrupt vectors of ATtiny40 are described in
Table 9-1.
1.
In case the program never enables an interrupt source, the Interrupt Vectors will not be used
and, consequently, regular program code can be placed at these locations.
The most typical and general setup for interrupt vector addresses in ATtiny40 is shown in the
program example below.
Vector No.
Address Labels Code
0x0000
0x0001
0x0002
10
11
12
13
14
15
16
17
18
1
2
3
4
5
6
7
8
9
The touch sensing interrupt source is related to the QTouch library support.
Reset and Interrupt Vectors
Program Address
0x000A
0x000B
0x000C
0x000D
0x000E
0x0000
0x0001
0x0002
0x0003
0x0004
0x0005
0x0006
0x0007
0x0008
0x0009
0x000F
0x0010
0x0011
rjmp
rjmp
rjmp
RESET
INT0
PCINT0
Label
RESET
INT0
PCINT0
PCINT1
PCINT2
WDT
TIM1_CAPT
TIM1_COMPA
TIM1_COMPB
TIM1_OVF
TIM0_COMPA
TIM0_COMPB
TIM0_OVF
ANA_COMP
ADC
TWI_SLAVE
SPI
QTRIP
(1)
Comments
; Reset Handler
; IRQ0 Handler
; PCINT0 Handler
Table 9-1
“Reset and Interrupt Handling” on page
Interrupt Source
External Pin, Power-on Reset,
Brown-Out Reset, Watchdog Reset
External Interrupt Request 0
Pin Change Interrupt Request 0
Pin Change Interrupt Request 1
Pin Change Interrupt Request 2
Watchdog Time-out
Timer/Counter1 Input Capture
Timer/Counter1 Compare Match A
Timer/Counter1 Compare Match B
Timer/Counter1 Overflow
Timer/Counter0 Compare Match A
Timer/Counter0 Compare Match B
Timer/Counter0 Overflow
Analog Comparator
ADC Conversion Complete
Two-Wire Interface
Serial Peripheral Interface
Touch Sensing
below.
8263A–AVR–08/10

Related parts for ATtiny40