ATTINY167-15MD Atmel, ATTINY167-15MD Datasheet - Page 113
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
ATTINY167-15MD
Manufacturer Part Number
ATTINY167-15MD
Description
MCU AVR 16K FLASH 15MHZ 32-QFN
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet
1.ATTINY167-15MD.pdf
(283 pages)
Specifications of ATTINY167-15MD
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
16KB (8K 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 ~ 150°C
Package / Case
32-VQFN Exposed Pad, 32-HVQFN, 32-SQFN, 32-DHVQFN
Processor Series
ATTINY1x
Core
AVR8
Data Bus Width
8 bit
Data Ram Size
512 B
Maximum Clock Frequency
16 MHz
Maximum Operating Temperature
+ 85 C
Mounting Style
SMD/SMT
3rd Party Development Tools
EWAVR, EWAVR-BL
Development Tools By Supplier
ATAVRDRAGON, ATSTK500, ATSTK600, ATAVRISP2, ATAVRONEKIT
Minimum Operating Temperature
- 40 C
For Use With
ATSTK600-SOIC - STK600 SOCKET/ADAPTER FOR SOIC
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
- Current page: 113 of 283
- Download datasheet (5Mb)
12.3.1
7728G–AVR–06/10
Code Examples
The following code examples show how to access the 16-bit timer registers assuming that no
interrupts updates the temporary register. The same principle can be used directly for access-
ing the OCR1A/B and ICR1 Registers. Note that when using “C”, the compiler handles the
16-bit access.
Note:
The assembly code example returns the TCNT1 value in the r17:r16 register pair.
It is important to notice that accessing 16-bit registers are atomic operations. If an interrupt
occurs between the two instructions accessing the 16-bit register, and the interrupt code
updates the temporary register by accessing the same or any other of the 16-bit timer regis-
ters, then the result of the access outside the interrupt will be corrupted. Therefore, when both
the main code and the interrupt code update the temporary register, the main code must dis-
able the interrupts during the 16-bit access.
Assembly Code Examples
C Code Examples
...
; Set TCNT1 to 0x01FF
ldi
ldi
sts
sts
; Read TCNT1 into r17:r16
lds
lds
...
unsigned int i;
...
/* Set TCNT1 to 0x01FF */
TCNT1 = 0x1FF;
/* Read TCNT1 into i */
i = TCNT1;
...
1. The example code assumes that the part specific header file is included.
r17,0x01
r16,0xFF
TCNT1H,r17
TCNT1L,r16
r16,TCNT1L
r17,TCNT1H
(1)
(1)
ATtiny87/ATtiny167
113
Related parts for ATTINY167-15MD
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![ATtiny167](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATtiny167 Automotive](/images/manufacturer_photos/0/0/79/atmel_corporation_tmb.jpg)
Part Number:
Description:
Manufacturer:
Atmel Corporation
Datasheet:
![ATTINY167-15MZ](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
MCU AVR 16K FLASH 15MHZ 32-QFN
Manufacturer:
Atmel
Datasheet:
![ATTINY167-XU](/photos/39/70/397036/tssop20_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K FLASH 20TSSOP
Manufacturer:
Atmel
Datasheet:
![ATTINY167-15SZ](/photos/6/80/68042/453-20-soic_tmb.jpg)
Part Number:
Description:
MCU AVR 16K FLASH 15MHZ 20-SOIC
Manufacturer:
Atmel
Datasheet:
![ATTINY167-15XD](/photos/6/80/68045/313-20-tssop_tmb.jpg)
Part Number:
Description:
MCU AVR 16K FLASH 15MHZ 20-TSSOP
Manufacturer:
Atmel
Datasheet:
![ATTINY167-15XZ](/photos/6/80/68045/313-20-tssop_tmb.jpg)
Part Number:
Description:
MCU AVR 16K FLASH 15MHZ 20-TSSOP
Manufacturer:
Atmel
Datasheet:
![ATTINY167-SU](/images/manufacturer_photos/0/0/78/atmel_tmb.jpg)
Part Number:
Description:
IC MCU AVR 16K FLASH 20SOIC
Manufacturer:
Atmel
Datasheet: