ATtiny417/814/816/817
tinyAVR
®
1-series
Introduction
The ATtiny417/814/816/817 are members of the tinyAVR
®
1-series of microcontrollers, using the AVR
®
processor with
hardware multiplier, running at up to 20 MHz, with 4/8 KB Flash, 256/512 bytes of SRAM, and 128 bytes of EEPROM
in a 14-, 20- and 24-pin package. The tinyAVR
®
1-series uses the latest technologies with a flexible, low-power
architecture, including Event System, accurate analog features, and Core Independent Peripherals (CIPs).Capacitive
touch interfaces with Driven Shield+ and Boost Mode technologies are supported with the integrated Peripheral
Touch Controller (PTC).
Attention:
Automotive products are documented in separate data sheets.
Features
•
CPU
– AVR
®
CPU
– Running at up to 20 MHz
– Single-cycle I/O access
– Two-level interrupt controller
– Two-cycle hardware multiplier
Memories
– 4/8 KB In-system self-programmable Flash memory
– 128 bytes EEPROM
– 256/512 bytes SRAM
– Write/erase endurance:
• Flash 10,000 cycles
• EEPROM 100,000 cycles
– Data retention:
• 40 years at 55°C
System
– Power-on Reset (POR)
– Brown-out Detector (BOD)
– Clock options:
• 16/20 MHz low-power internal RC oscillator
• 32.768 kHz Ultra Low-Power (ULP) internal RC oscillator
• 32.768 kHz external crystal oscillator
• External clock input
– Single-Pin Unified Program and Debug Interface (UPDI)
– Three sleep modes:
•
•
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40002288A-page 1
ATtiny417/814/816/817
Idle with all peripherals running for immediate wake-up
Standby
– Configurable operation of selected peripherals
• Power-Down with full data retention
Peripherals
– One 16-bit Timer/Counter type A (TCA) with a dedicated period register and three compare channels
– One 16-bit Timer/Counter type B (TCB) with input capture
– One 12-bit Timer/Counter type D (TCD) optimized for control applications
– One 16-bit Real-Time Counter (RTC) running from an external crystal, external clock, or internal RC
oscillator
– Watchdog Timer (WDT) with Window mode, with a separate on-chip oscillator
– One USART with fractional baud rate generator, auto-baud, and start-of-frame detection
– One host/client Serial Peripheral Interface (SPI)
– One Two-Wire Interface (TWI) with dual address match
• Philips I
2
C compatible
• Standard mode (Sm, 100 kHz)
• Fast mode (Fm, 400 kHz)
• Fast mode plus (Fm+, 1 MHz)
– Analog Comparator (AC) with a low propagation delay
– 10-bit 115 ksps Analog-to-Digital Converter (ADC)
– 8-bit Digital-to-Analog Converter (DAC) with one external channel
– Multiple voltage references (V
REF
):
• 0.55V
• 1.1V
• 1.5V
• 2.5V
• 4.3V
– Event System (EVSYS) for CPU independent and predictable inter-peripheral signaling
– Configurable Custom Logic (CCL) with two programmable look-up tables
– Automated CRC memory scan
– Peripheral Touch Controller (PTC)
(1)
• Capacitive touch buttons, sliders, wheels and 2D surfaces
• Wake-up on touch
• Driven shield for improved moisture and noise handling performance
• 6 self-capacitance channels
• 9 mutual capacitance channels
– External interrupt on all general purpose pins
I/O and Packages:
– Up to 22 programmable I/O lines
– 14-pin SOIC150
– 20-pin SOIC300
– 20-pin VQFN 3x3 mm
– 24-pin VQFN 4x4 mm
Temperature Ranges:
– -40°C to 105°C
– -40°C to 125°C
Speed Grades:
– 0-5 MHz @ 1.8V – 5.5V
– 0-10 MHz @ 2.7V – 5.5V
– 0-20 MHz @ 4.5V – 5.5V
•
•
•
•
•
•
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40002288A-page 2
ATtiny417/814/816/817
Note:
1. PTC is available on devices with 8 KB flash or more.
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40002288A-page 3
ATtiny417/814/816/817
Table of Contents
Introduction.....................................................................................................................................................1
Features......................................................................................................................................................... 1
1.
2.
Silicon Errata and Data Sheet Clarification Document.......................................................................... 11
tinyAVR
®
1-series Overview..................................................................................................................12
2.1.
3.
4.
Configuration Summary..............................................................................................................12
Block Diagram.......................................................................................................................................14
Pinout.................................................................................................................................................... 15
4.1.
4.2.
4.3.
4.4.
14-Pin SOIC............................................................................................................................... 15
20-Pin SOIC............................................................................................................................... 16
20-Pin VQFN.............................................................................................................................. 17
24-Pin VQFN.............................................................................................................................. 18
5.
I/O Multiplexing and Considerations..................................................................................................... 19
5.1.
Multiplexed Signals.................................................................................................................... 19
6.
Memories.............................................................................................................................................. 20
6.1.
6.2.
6.3.
6.4.
6.5.
6.6.
6.7.
6.8.
6.9.
6.10.
Overview.................................................................................................................................... 20
Memory Map.............................................................................................................................. 21
In-System Reprogrammable Flash Program Memory................................................................21
SRAM Data Memory.................................................................................................................. 22
EEPROM Data Memory............................................................................................................. 22
User Row....................................................................................................................................22
Signature Bytes.......................................................................................................................... 22
I/O Memory.................................................................................................................................23
Memory Section Access from CPU and UPDI on Locked Device..............................................25
Configuration and User Fuses (FUSE).......................................................................................26
7.
Peripherals and Architecture.................................................................................................................45
7.1.
7.2.
7.3.
Peripheral Address Map.............................................................................................................45
Interrupt Vector Mapping............................................................................................................ 46
System Configuration (SYSCFG)...............................................................................................47
8.
AVR
®
CPU............................................................................................................................................ 50
8.1.
8.2.
8.3.
8.4.
8.5.
8.6.
8.7.
Features..................................................................................................................................... 50
Overview.................................................................................................................................... 50
Architecture................................................................................................................................ 50
Arithmetic Logic Unit (ALU)........................................................................................................ 52
Functional Description................................................................................................................52
Register Summary......................................................................................................................58
Register Description................................................................................................................... 58
9.
NVMCTRL - Nonvolatile Memory Controller......................................................................................... 62
9.1.
Features..................................................................................................................................... 62
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40002288A-page 4
ATtiny417/814/816/817
9.2.
9.3.
9.4.
9.5.
Overview.................................................................................................................................... 62
Functional Description................................................................................................................63
Register Summary......................................................................................................................69
Register Description................................................................................................................... 69
10. CLKCTRL - Clock Controller................................................................................................................. 77
10.1.
10.2.
10.3.
10.4.
10.5.
Features..................................................................................................................................... 77
Overview.................................................................................................................................... 77
Functional Description................................................................................................................79
Register Summary......................................................................................................................83
Register Description................................................................................................................... 83
11. SLPCTRL - Sleep Controller................................................................................................................. 93
11.1.
11.2.
11.3.
11.4.
11.5.
Features..................................................................................................................................... 93
Overview.................................................................................................................................... 93
Functional Description................................................................................................................93
Register Summary......................................................................................................................97
Register Description................................................................................................................... 97
12. RSTCTRL - Reset Controller................................................................................................................ 99
12.1.
12.2.
12.3.
12.4.
12.5.
Features..................................................................................................................................... 99
Overview.................................................................................................................................... 99
Functional Description..............................................................................................................100
Register Summary....................................................................................................................104
Register Description................................................................................................................. 104
13. CPUINT - CPU Interrupt Controller..................................................................................................... 107
13.1.
13.2.
13.3.
13.4.
13.5.
Features................................................................................................................................... 107
Overview.................................................................................................................................. 107
Functional Description..............................................................................................................108
Register Summary ...................................................................................................................113
Register Description................................................................................................................. 113
14. EVSYS - Event System....................................................................................................................... 118
14.1.
14.2.
14.3.
14.4.
14.5.
Features................................................................................................................................... 118
Overview...................................................................................................................................118
Functional Description..............................................................................................................120
Register Summary....................................................................................................................122
Register Description................................................................................................................. 122
15. PORTMUX - Port Multiplexer.............................................................................................................. 129
15.1. Overview.................................................................................................................................. 129
15.2. Register Summary....................................................................................................................130
15.3. Register Description................................................................................................................. 130
16. PORT - I/O Pin Configuration..............................................................................................................135
16.1. Features................................................................................................................................... 135
16.2. Overview.................................................................................................................................. 135
16.3. Functional Description..............................................................................................................137
©
2020 Microchip Technology Inc.
Complete Datasheet
DS40002288A-page 5