ATtiny87/ATtiny167 8-bit AVR Microcontroller with 8K/16K Bytes In-System Programmable Flash and LIN Controller DATASHEET Features High performance, low power Atmel AVR 8-bit microcontroller Advanced RISC architecture 123 powerful instructions most single clock cycle execution 32 x 8 general purpose working registers Fully static operation Non-volatile program and data memories 8K/16Kbyte of in-system programmable (ISP) program memory lash endurance: 10,000 write/erase cycles 512 bytes in-system programmable EEPROM endurance: 100,000 write/erase cycles 512 bytes internal SRAM Programming lock for self-programming flash program and EEPROM data security Low size LIN/UART software in-system programmable Peripheral features LIN 2.1 and 1.3 controller or 8-bit UART (LIN 2.1 certified) 8-bit asynchronous timer/counter0: 10-bit clock prescaler 1 Output compare or 8-bit PWM channel 16-bit synchronous timer/counter1: 10-bit clock prescaler External event counter 2 Output compares units or 16-bit PWM channels each driving up to 4 output pins Master/slave SPI serial interface, Universal serial interface (USI) with start condition detector (master/slave SPI, TWI.) 10-bit ADC: 11 Single ended channels 8 Differential ADC channel pairs with programmable gain (8x or 20x) On-chip analog comparator with selectable voltage reference 100A 10% current source (LIN node identification) On-chip temperature sensor Programmable watchdog timer with separate on-chip oscillator 7728H-AVR-03/14 Special microcontroller features Dynamic clock switching (external/Internal RC/watchdog clock) for power control, EMC reduction Debug WIRE on-chip debug (OCD) system Hardware in-system programmable (ISP) via SPI port External and internal interrupt sources Interrupt and wake-up on pin change Low power idle, ADC Noise reduction, and power-down modes Enhanced power-on reset circuit Programmable brown-out detection circuit Internal calibrated RC oscillator 8MHz 4-16MHz and 32KHz crystal/ceramic resonator oscillators I/O and packages 16 programmable I/O lines 20-pin SOIC, 32-pad QFN and 20-pin TSSOP Operating voltage: 2.7 - 5.5V for ATtiny87/167 Speed grade: 0 - 8MHz at 2.7 - 5.5V (automotive temp. range: 40C to +125C) 0 - 16MHz at 4.5 - 5.5V (automotive temp. range: 40C to +125C) 2 ATtiny87/ATtiny167 DATASHEET 7728HAVR03/14