ATtiny87 Atmel Corporation, ATtiny87 Datasheet - Page 77
![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
8265B–AVR–09/10
The alternate pin configuration is as follows:
• Port A, Bit 7 – PCINT7/ADC7/AIN1/XREF/AREF
• Port A, Bit 6 – PCINT6/ADC6/AIN0/SS
• Port A, Bit 5 – PCINT5/ADC5/T1/USCK/SCL/SCK
• Port A, Bit 4 – PCINT4/ADC4/ICP1/DI/SDA/MOSI
• PCINT7: Pin Change Interrupt, source 7.
• ADC7: Analog to Digital Converter, channel 7.
• AIN1: Analog Comparator Positive Input. This pin is directly connected to the positive input
• XREF: Internal Voltage Reference Output. The internal voltage reference 2.56V or 1.1V is
• AREF: External Voltage Reference Input for ADC. The pin port pull-up and digital output
• PCINT6: Pin Change Interrupt, source 6.
• ADC6: Analog to Digital Converter, channel 6.
• AIN0: Analog Comparator Negative Input. This pin is directly connected to the negative
• SS: SPI Slave Select Input. When the SPI is enabled as a slave, this pin is configured as
• PCINT5: Pin Change Interrupt, source 5.
• ADC5: Analog to Digital Converter, channel 5.
• T1: Timer/Counter1 Clock Input.
• USCK: Three-wire Mode USI Clock Input.
• SCL: Two-wire Mode USI Clock Input.
• SCK: SPI Master Clock output, Slave Clock input pin. When the SPI is enabled as a slave,
• PCINT4: Pin Change Interrupt, source 4.
• ADC4: Analog to Digital Converter, channel 4.
• ICP1: Timer/Counter1 Input Capture Trigger. The PA3 pin can act as an Input Capture pin
• DI: Three-wire Mode USI Data Input. USI Three-wire mode does not override normal port
• SDA: Two-wire Mode Serial Interface (USI) Data Input / Output.
of the Analog Comparator.
output when XREFEN is set and if either 2.56V or 1.1V is used as reference for ADC
conversion. When XREF output is enabled, the pin port pull-up and digital output driver are
turned off.
driver are disabled when the pin is used as an external voltage reference input for ADC or
as when the pin is only used to connect a bypass capacitor for the voltage reference of the
ADC.
input of the Analog Comparator.
an input regardless of the setting of DDA6. As a slave, the SPI is activated when this pin is
driven low. When the SPI is enabled as a master, the data direction of this pin is controlled
by DDA6. When the pin is forced to be an input, the pull-up can still be controlled by the
PORTA6 bit.
this pin is configured as an input regardless of the setting of DDA5. When the SPI is
enabled as a master, the data direction of this pin is controlled by DDA5. When the pin is
forced to be an input, the pull-up can still be controlled by the PORTA5 bit.
for Timer/Counter1.
functions, so pin must be configure as an input for DI function.
77