ATTINY167-SU Atmel, ATTINY167-SU Datasheet - Page 18
![no-image](/images/manufacturer_photos/0/0/78/atmel_sml.jpg)
ATTINY167-SU
Manufacturer Part Number
ATTINY167-SU
Description
IC MCU AVR 16K FLASH 20SOIC
Manufacturer
Atmel
Series
AVR® ATtinyr
Datasheet
1.ATTINY87-SU.pdf
(22 pages)
Specifications of ATTINY167-SU
Core Processor
AVR
Core Size
8-Bit
Speed
20MHz
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)
1.8 V ~ 5.5 V
Data Converters
A/D 11x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SOIC (0.300", 7.50mm Width)
Core
AVR8
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
6. Errata
6.1
6.1.1
6.1.2
6.2
6.2.1
6.2.2
6.3
18
Errata ATtiny87
Errata ATtiny167
Errata Description
ATtiny87/ATtiny167
Rev. C
Rev. A - B
Rev. C
Rev. A - B
The revision letter in this section refers to the revision of the ATtiny87 device.
Not sampled.
The revision letter in this section refers to the revision of the ATtiny167 device.
Not sampled.
1. Gain control of the crystal oscillator.
• Gain control of the crystal oscillator.
• ‘Disable Clock Source’ command remains enabled.
• Gain control of the crystal oscillator.
• ‘Disable Clock Source’ command remains enabled.
The crystal oscillator (0.4 -> 16 MHz) doesn’t latch its gain control (CKSEL/CSEL[2:0]
bits):
a. The ‘Recover System Clock Source’ command doesn’t returns CSEL[2:0] bits.
b. The gain control can be modified on the fly if CLKSELR changes.
Problem fix / workaround .
a. No workaround.
b. As soon as possible, after any CLKSELR modification, re-write the appropriate crystal
Code example:
; Select crystal oscillator ( 16MHz crystal, fast rising power)
; Enable clock source (crystal oscillator)
;
oscillator setting (CSEL[3]=1 and CSEL[2:0] / CSUT[1:0] bits) in CLKSELR.
Clock source switch
ldi
sts
ldi
ldi
sts
sts
ldi
sts
temp1,((0x0F<<CSEL0)|(0x02<<CSUT0))
CLKSELR, temp1
temp2,(1<<CLKCCE)
temp3,(0x02<<CLKC0)
CLKCSR,temp2
CLKCSR,temp3
temp3,(0x04<<CLKC0)
CLKCSR,temp2
; CSEL = "0010"
; Enable CLKCSR register access
; Enable crystal oscillator clock
; CSEL = "0100"
; Enable CLKCSR register access
8265BS–AVR–09/10