ATtiny4 Atmel Corporation, ATtiny4 Datasheet
ATtiny4
Specifications of ATtiny4
Available stocks
Related parts for ATtiny4
ATtiny4 Summary of contents
Page 1
... Active Mode: • 200µA at 1MHz and 1.8V – Idle Mode: • 25µA at 1MHz and 1.8V – Power-down Mode: • < 0.1µA at 1.8V ® 8-Bit Microcontroller 100 Years 8-bit Microcontroller with 512/1024 Bytes In-System Programmable Flash ATtiny4/5/9/10 Summary Rev. 8127ES–AVR–11/11 ...
Page 2
... As inputs, the port pins that are externally pulled low will source current if pull- up resistors are activated. Port pins are tri-stated when a reset condition becomes active, even if the clock is not running. The port also serves the functions of various special features of the ATtiny4/5/9/10, as listed on page 37. ...
Page 3
... Overview ATtiny4/5/9/10 are low-power CMOS 8-bit microcontrollers based on the compact AVR enhanced RISC architecture. By executing powerful instructions in a single clock cycle, the ATtiny4/5/9/10 achieve throughputs approaching 1 MIPS per MHz, allowing the system designer to optimize power consumption versus processing speed. Figure 2-1. The AVR core combines a rich instruction set with 16 general purpose working registers and system registers ...
Page 4
... 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 ATtiny4/5/9/10 AVR are supported by a suite of program and system development tools, including macro assemblers and evaluation kits. 2.1 ...
Page 5
... QTouch Library User Guide – also available from the Atmel website. 3.4 Data Retention Reliability Qualification results show that the projected data retention failure rate is much less than 1 PPM over 20 years at 85°C or 100 years at 25°C. 8127ES–AVR–11/11 ATtiny4/5/9/10 ® ® and QMatrix acquisi- 5 ...
Page 6
... Reserved – 0x04 Reserved – 0x03 PUEB – 0x02 PORTB – 0x01 DDRB – 0x00 PINB – ATtiny4/5/9/10 6 Bit 6 Bit 5 Bit 4 Bit Stack Pointer High Byte Stack Pointer Low Byte CPU Change Protection Byte – – – WDRF – ...
Page 7
... 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. 4. The ADC is available in ATtiny5/10, only. 8127ES–AVR–11/11 ATtiny4/5/9/10 7 ...
Page 8
... ROR Rd Rotate Right Through Carry ASR Rd Arithmetic Shift Right SWAP Rd Swap Nibbles BSET s Flag Set ATtiny4/5/9/10 8 Description Rd ← ← ← ← ← ← ← Rd • ← Rd • ← ← ← ...
Page 9
... Rr, Z ← ← (Z) ← Rr (k) ← ← I/O (A) I/O (A) ← Rr STACK ← ← STACK (see specific descr. for Break) (see specific descr. for Sleep) (see specific descr. for WDR) ATtiny4/5/9/10 Operation Flags #Clocks SREG(s) None None T None C ...
Page 10
... Topside marking: – 1st Line: T4 – 2nd Line: xx – 3rd Line: xxx 7. For typical and Electrical characteristics for this device please consult Appendix A, ATtiny4/5/9/10 Specification at 125°C. 6ST1 6-lead, 2.90 x 1.60 mm Plastic Small Outline Package (SOT23) 8MA4 8-pad 0.6 mm Plastic Ultra Thin Dual Flat No Lead (UDFN) ...
Page 11
... Topside marking: – 1st Line: T5 – 2nd Line: xx – 3rd Line: xxx 7. For typical and Electrical characteristics for this device please consult Appendix A, ATtiny4/5/9/10 Specification at 125°C. 6ST1 6-lead, 2.90 x 1.60 mm Plastic Small Outline Package (SOT23) 8MA4 8-pad 0.6 mm Plastic Ultra Thin Dual Flat No Lead (UDFN) 8127ES– ...
Page 12
... Topside marking: – 1st Line: T9 – 2nd Line: xx – 3rd Line: xxx 7. For typical and Electrical characteristics for this device please consult Appendix A, ATtiny4/5/9/10 Specification at 125°C. 6ST1 6-lead, 2.90 x 1.60 mm Plastic Small Outline Package (SOT23) 8MA4 8-pad 0.6 mm Plastic Ultra Thin Dual Flat No Lead (UDFN) ...
Page 13
... Topside marking: – 1st Line: T10 – 2nd Line: xx – 3rd Line: xxx 7. For typical and Electrical characteristics for this device please consult Appendix A, ATtiny4/5/9/10 Specification at 125°C. 6ST1 6-lead, 2.90 x 1.60 mm Plastic Small Outline Package (SOT23) 8MA4 8-pad 0.6 mm Plastic Ultra Thin Dual Flat No Lead (UDFN) 8127ES– ...
Page 14
... Mold Flash, protrustion or gate burrs shall not exceed 0.25 mm per end. 3. Dimension b does not include dambar protrusion. Allowable dambar protrusion shall not cause the lead width to exceed the maximum b dimension by more than 0. Die is facing down after trim/form. Package Drawing Contact: packagedrawings@atmel.com ATtiny4/5/9/ Side View ...
Page 15
... TITLE 8PAD, 2x2x0.6 mm body, 0.5 mm pitch, 0.9x1.5 mm exposed pad, Saw singulated Thermally enhanced plastic ultra thin dual flat no lead package (UDFN/USON) ATtiny4/5/9/ 0.05 c SIDE VIEW A1 A COMMON DIMENSIONS (Unit of Measure = mm) MIN NOM MAX SYMBOL A – ...
Page 16
... Errata The revision letters in this section refer to the revision of the corresponding ATtiny4/5/9/10 device. 8.1 ATtiny4 8.1.1 Rev. E • Programming Lock Bits 1. Programming Lock Bits Programming Lock Bits to a lock mode equal or lower than the current causes one word of Flash to be corrupted. The location of the corruption is random. ...
Page 17
... Programming Lock Bits to a lock mode equal or lower than the current causes one word of Flash to be corrupted. The location of the corruption is random. Problem Fix / Workaround When programming Lock Bits, make sure lock mode is not set to present, or lower levels. 8127ES–AVR–11/11 ATtiny4/5/9/10 17 ...
Page 18
... Programming Lock Bits to a lock mode equal or lower than the current causes one word of Flash to be corrupted. The location of the corruption is random. Problem Fix / Workaround When programming Lock Bits, make sure lock mode is not set to present, or lower levels. 8.4.3 Rev. A – B Not sampled. ATtiny4/5/9/10 18 8127ES–AVR–11/11 ...
Page 19
... Added topside and bottomside marking notes in page 5. Added ESD errata, see 6. Added Lock bits re-programming errata, see 9.4 Rev. 8127B – 08/09 1. Updated document template 2. Expanded document to also cover devices ATtiny4, ATtiny5 and ATtiny9 3. Added section: – 4. Updated sections: – – – – ...
Page 20
... External Programmer for In-System Programming via TPI” on page 98 “Data Memory Map (Byte Addressing)” on page 15 “Number of Words and Pages in the Flash (ATtiny4/5)” on page 110 “Active Clock Domains and Wake-up Sources in Different Sleep Modes” on page 23 “Reset and Interrupt Vectors” on page 36 “ ...
Page 21
... ATtiny4/5/9/10 21 ...
Page 22
... Atmel Corporation. All rights reserved. ® Atmel , logo and combinations thereof, and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. Other terms and product names may be trademarks of others. International Atmel Asia Limited Atmel Munich GmbH Unit 01-5 & ...