ATtiny828 8-bit AVR Microcontroller with 8K Bytes In-System Programmable Flash DATASHEET SUMMARY Features z High Performance, Low Power Atmel AVR 8-bit Microcontroller z Advanced RISC Architecture z 123 Powerful Instructions Most Single Clock Cycle Execution z 32 x 8 General Purpose Working Registers z Fully Static Operation z Up to 20 MIPS Throughput at 20 MHz z Non-volatile Program and Data Memories z 8K Bytes of In-System Programmable Flash Program Memory z Endurance: 10,000 Write/Erase Cycles z 256 Bytes of In-System Programmable EEPROM z Endurance: 100,000 Write/Erase Cycles z 512 Bytes Internal SRAM z Optional Boot Code Section with Independent Lock Bits o o z Data Retention: 20 Years at 85 C / 100 Years at 25 C z Peripheral Features z One 8-bit and one 16-bit Timer/Counter with Two PWM Channels, Each z Programmable Ultra Low Power Watchdog Timer z On-chip Analog Comparator z 10-bit Analog to Digital Converter z 28 External and 4 Internal, Single-ended Input Channels z Full Duplex USART with Start Frame Detection z Master/Slave SPI Serial Interface 2 z Slave I C Serial Interface z Special Microcontroller Features z Low Power Idle, ADC Noise Reduction, and Power-down Modes z Enhanced Power-on Reset Circuit z Programmable Brown-out Detection Circuit with Supply Voltage Sampling z External and Internal Interrupt Sources z Pin Change Interrupt on 28 Pins z Calibrated 8MHz Oscillator with Temperature Calibration Option z Calibrated 32kHz Ultra Low Power Oscillator z High-Current Drive Capability on 8 I/O Pins z I/O and Packages z 32-lead TQFP, and 32-pad QFN/MLF: 28 Programmable I/O Lines z Speed Grade z 0 2 MHz 1.7 1.8V z 0 4 MHz 1.8 5.5V z 0 10 MHz 2.7 5.5V z 0 20 MHz 4.5 5.5V 8371ASAVR08/12z Low Power Consumption z Active Mode: 0.2 mA at 1.8V and 1MHz z Idle Mode: 30 A at 1.8V and 1MHz z Power-Down Mode (WDT Enabled): 1 A at 1.8V z Power-Down Mode (WDT Disabled): 100 nA at 1.8V 1. Pin Configurations Figure 1. ATtiny828 Pinout in MLF32. (PCINT18/ADC18/TOCC2/RXD/INT1) PC2 1 24 PB5 (PCINT13/ADC13) (PCINT19/ADC19/TOCC3/TXD) PC3 2 23 PB4 (PCINT12/ADC12) (PCINT20/ADC20/TOCC4) PC4 22 PB3 (PCINT11/ADC11) 3 VCC GND 4 21 GND 5 20 PB2 (PCINT10/ADC10) (PCINT21/ADC21/TOCC5/ICP1/T0) PC5 6 19 PB1 (PCINT9/ADC9) (PCINT22/ADC22/CLKI/TOCC6) PC6 7 18 AVCC (PCINT23/ADC23/TOCC7/T1) PC7 17 PB0 (PCINT8/ADC8) 8 NOTE: Bottom pad should be soldered to ground Figure 2. ATtiny828 Pinout in TQFP32. (PCINT18/ADC18/TOCC2/RXD/INT1) PC2 1 24 PB5 (PCINT13/ADC13) (PCINT19/ADC19/TOCC3/TXD) PC3 2 23 PB4 (PCINT12/ADC12) (PCINT20/ADC20/TOCC4) PC4 3 22 PB3 (PCINT11/ADC11) VCC 21 GND 4 GND 5 20 PB2 (PCINT10/ADC10) (PCINT21/ADC21/TOCC5/ICP1/T0) PC5 6 19 PB1 (PCINT9/ADC9) (PCINT22/ADC22/CLKI/TOCC6) PC6 7 18 AVCC (PCINT23/ADC23/TOCC7/T1) PC7 8 17 PB0 (PCINT8/ADC8) ATtiny828 DATASHEET 2 8371ASAVR08/12 (PCINT0/ADC0) PA0 9 32 PC1 (PCINT17/ADC17/TOCC1/INT0/CLKO) (PCINT0/ADC0) PA0 9 32 PC1 (PCINT17/ADC17/TOCC1/INT0/CLKO) (PCINT1/ADC1/AIN0) PA1 10 31 PC0 (PCINT16/ADC16/TOCC0/SS/XCK) (PCINT1/ADC1/AIN0) PA1 10 31 PC0 (PCINT16/ADC16/TOCC0/SS/XCK) (PCINT2/ADC2/AIN1) PA2 11 30 PD3 (PCINT27/ADC27/SCL/SCK) (PCINT2/ADC2/AIN1) PA2 11 30 PD3 (PCINT27/ADC27/SCL/SCK) 12 29 (PCINT3/ADC3) PA3 12 29 PD2 (PCINT26/ADC26/RESET/DW) (PCINT3/ADC3) PA3 PD2 (PCINT26/ADC26/RESET/DW) 13 28 (PCINT4/ADC4) PA4 13 28 PD1 (PCINT25/ADC25/MISO) (PCINT4/ADC4) PA4 PD1 (PCINT25/ADC25/MISO) (PCINT5/ADC5) PA5 14 27 PD0 (PCINT24/ADC24/SDA/MOSI) (PCINT5/ADC5) PA5 14 27 PD0 (PCINT24/ADC24/SDA/MOSI) (PCINT6/ADC6) PA6 15 26 PB7 (PCINT15/ADC15) (PCINT6/ADC6) PA6 15 26 PB7 (PCINT15/ADC15) (PCINT7/ADC7) PA7 16 25 PB6 (PCINT14/ADC14) (PCINT7/ADC7) PA7 16 25 PB6 (PCINT14/ADC14)