ATtiny40 Atmel Corporation, ATtiny40 Datasheet
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATtiny40
Specifications of ATtiny40
Available stocks
Related parts for ATtiny40
ATtiny40 Summary of contents
Page 1
... Active Mode: • 200 µ MHz and 1.8V – Idle Mode: • 25 µ MHz and 1.8V – Power-down Mode: • < 0.1 µA at 1.8V ® 8-Bit Microcontroller 100 Years 8-bit Microcontroller with 4K Bytes In-System Programmable Flash ATtiny40 Preliminary Summary Rev. 8263AS–AVR–08/10 ...
Page 2
... The min- imum pulse length is given in generate a reset. The reset pin can also be used as a (weak) I/O pin. ATtiny40 2 Pinout of ATtiny40 SOIC/TSSOP (PCINT8/ADC8) PB0 1 20 (PCINT7/ADC7) PA7 ...
Page 3
... Port C has alternate functions as analog inputs for the ADC, analog comparator and pin change interrupt as described in The port also serves the functions of various special features of the ATtiny40, as listed on 41. 8263AS–AVR–08/10 “ ...
Page 4
... Overview ATtiny40 is a low-power CMOS 8-bit microcontroller based on the compact AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATtiny40 achieves throughputs approaching 1 MIPS per MHz allowing the system designer to optimize power consumption versus processing speed. Figure 2-1. DATA REGISTER ...
Page 5
... 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. 8263AS–AVR–08/10 ...
Page 6
... PPM over 20 years at 85°C or 100 years at 25°C. 3.4 Disclaimer Typical values contained in this datasheet are based on simulations and characterization of other AVR microcontrollers manufactured on the same process technology. Min and Max values will be available after the device has been characterized. ATtiny40 6 8263AS–AVR–08/10 ...
Page 7
Register Summary Address Name Bit 7 0x3F SREG I 0x3E SPH 0x3D SPL 0x3C CCP 0x3B RSTFLR – 0x3A MCUCR ISC01 0x39 OSCCAL 0x38 Reserved 0x37 CLKMSR – 0x36 CLKPSR – 0x35 PRR – QTCSR 0x34 0x33 NVMCMD – ...
Page 8
... Some of the Status Flags are cleared by writing a logical one to them. Note that, unlike most other AVRs, the CBI and SBI instructions will only operation the specified bit, and can therefore be used on registers containing such Status Flags. The CBI and SBI instructions work with registers 0x00 to 0x1F only. ATtiny40 8 8263AS–AVR–08/10 ...
Page 9
Instruction Set Summary Mnemonics Operands ARITHMETIC AND LOGIC INSTRUCTIONS ADD Rd, Rr Add without Carry ADC Rd, Rr Add with Carry SUB Rd, Rr Subtract without Carry SUBI Rd, K Subtract Immediate SBC Rd, Rr Subtract with Carry SBCI ...
Page 10
... Push Register on Stack POP Rd Pop Register from Stack MCU CONTROL INSTRUCTIONS BREAK Break NOP No Operation SLEEP Sleep WDR Watchdog Reset ATtiny40 10 Description SREG(s) ← 0 I/O(A, b) ← 1 I/O(A, b) ← ← Rr(b) Rd(b) ← ← ← ← ← ← ← ...
Page 11
... U: matte tin – R: tape & reel 2. All packages are Pb-free, halide-free and fully green and they comply with the European directive for Restriction of Hazard- ous Substances (RoHS). 3. Topside marking for ATtiny40: – 1st Line: T40 – 2nd Line: xx – 3rd Line: xxx 4 ...
Page 12
... Packaging Information 7.1 20S2 ATtiny40 12 8263AS–AVR–08/10 ...
Page 13
Dimensions in Millimeters and (Inches). Controlling dimension: Millimeters. JEDEC Standard MO-153 AC 0.65 (.0256) BSC 0º ~ 8º 2325 Orchard Parkway San Jose, CA 95131 R 8263AS–AVR–08/10 PIN 1 4.50 (0.177) 4.30 (0.169) 6.60 (.260) 6.40 (.252) 0.15 ...
Page 14
... Pin TOP VIEW Pin #1 Chamfer BOTTOM VIEW Package Drawing Contact: packagedrawings@atmel.com ATtiny40 C0.18 (8X 0.3 Ref (4x) K TITLE 20M2, 20-pad 0.85 mm Body, Lead Pitch 0.45 mm, 1.55 x 1.55 mm Exposed Pad, Thermally Enhanced ...
Page 15
... Errata The revision letters in this section refer to the revision of the corresponding ATtiny40 device. 8.1 Rev known errata. 8.2 Rev. A Not sampled. 8263AS–AVR–08/10 15 ...
Page 16
... Datasheet Revision History 9.1 Rev. 8263A – 08/10 1. ATtiny40 16 Initial revision. Copied and modified from 8235_t20. 8263AS–AVR–08/10 ...
Page 17
8263AS–AVR–08/10 17 ...
Page 18
... Atmel products are not suitable for, and shall not be used in, automotive applications. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. © 2010 Atmel Corporation. All rights reserved. Atmel marks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. International Atmel Asia Atmel Europe Unit 1-5 & ...