ATtiny87 Atmel Corporation, ATtiny87 Datasheet - Page 285
![no-image](/images/manufacturer_photos/0/0/79/atmel_corporation_sml.jpg)
ATtiny87
Manufacturer Part Number
ATtiny87
Description
Manufacturer
Atmel Corporation
Specifications of ATtiny87
Flash (kbytes)
8 Kbytes
Pin Count
20
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
Hardware Qtouch Acquisition
No
Max I/o Pins
16
Ext Interrupts
16
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Lin
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
11
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
512
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8 to 5.5
Operating Voltage (vcc)
1.8 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
2
Output Compare Channels
3
Input Capture Channels
1
Pwm Channels
9
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
ATtiny87-A15MZ
Manufacturer:
Atmel
Quantity:
12 127
Company:
Part Number:
ATtiny87-A15SZ
Manufacturer:
Atmel
Quantity:
3 722
Company:
Part Number:
ATtiny87-A15XZ
Manufacturer:
Atmel
Quantity:
8 895
Part Number:
ATtiny87-SU
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
ATtiny87-SUR
Manufacturer:
Atmel
Quantity:
323
Company:
Part Number:
ATtiny87-XUR
Manufacturer:
ATMEL
Quantity:
8 272
Table of Contents
8265B–AVR–09/10
1
2
3
4
5
Features ..................................................................................................... 1
Description ............................................................................................... 2
AVR CPU Core .......................................................................................... 7
AVR Memories ........................................................................................ 15
System Clock and Clock Options ......................................................... 24
Power Management and Sleep Modes ................................................. 42
1.1
1.2
1.3
1.4
1.5
1.6
1.7
1.8
1.9
2.1
2.2
2.3
2.4
2.5
2.6
2.7
3.1
3.2
3.3
3.4
3.5
4.1
4.2
4.3
4.4
4.5
5.1
Comparison Between ATtiny87 and ATtiny167 .................................................2
Part Description .................................................................................................2
Block Diagram ...................................................................................................3
Pin Configuration ...............................................................................................4
Pin Description ..................................................................................................5
Resources .........................................................................................................6
About Code Examples .......................................................................................6
Data Retention ...................................................................................................6
Disclaimer ..........................................................................................................6
Overview ............................................................................................................7
ALU – Arithmetic Logic Unit ...............................................................................8
Status Register ..................................................................................................8
General Purpose Register File ........................................................................10
Stack Pointer ...................................................................................................11
Instruction Execution Timing ...........................................................................12
Reset and Interrupt Handling ...........................................................................12
In-System Re-programmable Flash Program Memory ....................................15
SRAM Data Memory ........................................................................................16
EEPROM Data Memory ..................................................................................17
I/O Memory ......................................................................................................21
Register Description ........................................................................................21
Clock Systems and their Distribution ...............................................................24
Clock Sources .................................................................................................25
Dynamic Clock Switch .....................................................................................31
System Clock Prescaler ..................................................................................37
Register Description ........................................................................................37
Sleep Modes ....................................................................................................42
i