ATTINY87-15XZ Atmel, ATTINY87-15XZ Datasheet - Page 114
![MCU AVR 8K FLASH 15MZ 20-TSSOP](/photos/6/80/68045/313-20-tssop_sml.jpg)
ATTINY87-15XZ
Manufacturer Part Number
ATTINY87-15XZ
Description
MCU AVR 8K FLASH 15MZ 20-TSSOP
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet
1.ATTINY167-15MD.pdf
(283 pages)
Specifications of ATTINY87-15XZ
Core Processor
AVR
Core Size
8-Bit
Speed
16MHz
Connectivity
I²C, LIN, SPI, UART/USART, USI
Peripherals
Brown-out Detect/Reset, POR, PWM, Temp Sensor, WDT
Number Of I /o
16
Program Memory Size
8KB (4K x 16)
Program Memory Type
FLASH
Eeprom Size
512 x 8
Ram Size
512 x 8
Voltage - Supply (vcc/vdd)
2.7 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
20-TSSOP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 114 of 283
- Download datasheet (5Mb)
114
ATtiny87/ATtiny167
The following code examples show how to do an atomic read of the TCNT1 Register contents.
Reading any of the OCR1A/B or ICR1 Registers can be done by using the same principle.
Note:
The assembly code example returns the TCNT1 value in the r17:r16 register pair.
Assembly Code Example
C Code Example
TIM16_ReadTCNT1:
unsigned int TIM16_ReadTCNT1(void)
{
}
; Save global interrupt flag
in
; Disable interrupts
cli
; Read TCNT1 into r17:r16
lds
lds
; Restore global interrupt flag
out
ret
unsigned char sreg;
unsigned int i;
/* Save global interrupt flag */
sreg = SREG;
/* Disable interrupts */
_CLI();
/* Read TCNT1 into i */
i = TCNT1;
/* Restore global interrupt flag */
SREG = sreg;
return i;
1. The example code assumes that the part specific header file is included.
r18,SREG
r16,TCNT1L
r17,TCNT1H
SREG,r18
(1)
(1)
7728G–AVR–06/10
Related parts for ATTINY87-15XZ
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATtiny87](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATtiny87 Automotive](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY87-15MZ](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 8K FLASH 15MZ 32-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY87-XU](/photos/39/70/397036/tssop20_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 20TSSOP
Manufacturer:
Atmel
Datasheet:
![ATTINY87-15SZ](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
MCU AVR 8K FLASH 15MZ 32-SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY87-SU](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY87-SUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY87-XUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 20TSSOP
Manufacturer:
Atmel
Datasheet:
![ATTINY87-MU](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 32QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY87-MUR](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 8K FLASH 32QFN
Manufacturer:
Atmel
Datasheet:
![ATSTK600](/photos/9/20/92038/atstk600_tmb.jpg)
Part Number:
Description:
DEV KIT FOR AVR/AVR32
Manufacturer:
Atmel
Datasheet: