ATtiny3216/3217 tinyAVR 1-series Introduction The ATtiny3216/3217 are members of the tinyAVR 1-series of microcontrollers, using the AVR processor with hardware multiplier, running at up to 20 MHz, with 32 KB Flash, 2 KB of SRAM, and 256 bytes of EEPROM in a 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 32 KB In-system self-programmable Flash memory 256 bytes EEPROM 2 KB SRAM Write/erase endurance: Flash 10,000 cycles EEPROM 100,000 cycles Data retention: 40 years at 55C 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: Complete Datasheet DS40002205A-page 1 2020 Microchip Technology Inc. ATtiny3216/3217 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 Two 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 master/slave Serial Peripheral Interface (SPI) One Two-Wire Interface (TWI) with dual address match 2 Philips I C compatible Standard mode (Sm, 100 kHz) Fast mode (Fm, 400 kHz) Fast mode plus (Fm+, 1 MHz) Three Analog Comparators (AC) with a low propagation delay Two 10-bit 115 ksps Analog-to-Digital Converters (ADCs) Three 8-bit Digital-to-Analog Converters (DACs) 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) Capacitive touch buttons, sliders, wheels and 2D surfaces Wake-up on touch Driven shield for improved moisture and noise handling performance Up to 14 self-capacitance channels Up to 49 mutual capacitance channels External interrupt on all general purpose pins I/O and Packages: Up to 22 programmable I/O lines 20-pin SOIC300 24-pin VQFN 4x4 mm Temperature Ranges: -40C to 105C -40C to 125C Speed Grades: 0-5 MHz 1.8V 5.5V 0-10 MHz 2.7V 5.5V 0-20 MHz 4.5V 5.5V DS40002205A-page 2 Complete Datasheet 2020 Microchip Technology Inc.