ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 54

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
10.3.1
54
ATtiny40
Alternate Functions of Port A
The Port A pins with alternate function are shown in
Table 10-3.
• Port A, Bit 0 – ADC0/PCINT0
• Port A, Bit 1 – ADC1/AIN0/PCINT1
• ADC0: Analog to Digital Converter, Channel 0
• PCINT0: Pin Change Interrupt source 0. The PA0 pin can serve as an external interrupt
• ADC1: Analog to Digital Converter, Channel 1
• AIN0: Analog Comparator Positive Input. Configure the port pin as input with the internal pull-
• PCINT1: Pin Change Interrupt source 1. The PA1 pin can serve as an external interrupt
source for pin change interrupt 0.
up switched off to avoid the digital port function from interfering with the function of the
Analog Comparator.
source for pin change interrupt 0.
Port Pin
PA0
PA1
PA2
PA3
PA4
PA5
PA6
PA7
Port A Pins Alternate Functions
Alternate Function
ADC0:
PCINT0: Pin Change Interrupt 0, Source 0
ADC1:
AIN0:
PCINT1:Pin Change Interrupt 0, Source 1
ADC2:
AIN1:
PCINT2: Pin Change Interrupt 0, Source 2
ADC3:
PCINT3: Pin Change Interrupt 0, Source 3
ADC4:
T0:
PCINT4: Pin Change Interrupt 0, Source 4
ADC5:
OC0B: Timer/Counter0 Compare Match B Output
PCINT5: Pin Change Interrupt 0, Source 5
ADC6:
PCINT6: Pin Change Interrupt 0, Source 6
ADC7:
PCINT7: Pin Change Interrupt 0, Source 7
ADC Input Channel 0
ADC Input Channel 1
Analog Comparator, Positive Input
ADC Input Channel 2
Analog Comparator, Negative Input
ADC Input Channel 3
ADC Input Channel 4
Timer/Counter0 Clock Source
ADC Input Channel 5
ADC Input Channel 6
ADC Input Channel 7
.
.
Table
10-3.
8263A–AVR–08/10

Related parts for ATtiny40