ATtiny40 Atmel Corporation, ATtiny40 Datasheet - Page 154

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
19.7.1
19.7.2
154
ATtiny40
TPIIR – Tiny Programming Interface Identification Register
TPIPCR – Tiny Programming Interface Physical Layer Control Register
Table 19-11. Summary of Control and Status Registers
• Bits 7:0 – TPIIC: Tiny Programming Interface Identification Code
These bits give the identification code for the Tiny Programming Interface. The code can be
used be the external programmer to identify the TPI. The identification code of the Tiny Pro-
gramming Interface is shown in
Table 19-12. Identification Code for Tiny Programming Interface
• Bits 7:3 – Res: Reserved Bits
These bits are reserved and will always read as zero.
• Bits 2:0 – GT[2:0]: Guard Time
These bits specify the number of additional IDLE bits that are inserted to the idle time when
changing from reception mode to transmission mode. Additional delays are not inserted when
changing from transmission mode to reception.
The total idle time when changing from reception to transmission mode is Guard Time plus two
IDLE bits.
Table 19-13. Guard Time Settings
Bit
CSS: 0x0F
Read/Write
Initial Value
Bit
CSS: 0x02
Read/Write
Initial Value
Addr.
0x02
0x01
0x00
Code
Interface Identification
GT2
0
0
0
0
1
Name
TPIPCR
Reserved
TPISR
Table 19-13
R
R
7
0
7
0
Bit 7
shows the available Guard Time settings.
R
R
6
0
6
0
GT1
0
0
1
1
0
Programming Interface Identification Code
Bit 6
Table
R
R
5
0
5
0
19-12.
R
R
4
0
4
0
Bit 5
GT0
0
1
0
1
0
R
R
3
0
3
0
Value
0x80
Bit 4
Guard Time (Number of IDLE bits)
+128 (default value)
+64
+32
+16
+8
GT2
R/W
R
2
0
2
0
Bit 3
GT1
R/W
R
1
0
1
0
Bit 2
GT2
GT0
R/W
R
0
0
0
0
NVMEN
Bit 1
GT1
TPIPCR
TPIIR
8263A–AVR–08/10
Bit 0
GT0

Related parts for ATtiny40