ATtiny167 Automotive Atmel Corporation, ATtiny167 Automotive Datasheet - Page 204

no-image

ATtiny167 Automotive

Manufacturer Part Number
ATtiny167 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATtiny167 Automotive

Flash (kbytes)
16 Kbytes
Pin Count
20
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
8
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 150
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 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
17.10 Internal Voltage Reference Output
204
ATtiny87/ATtiny167
The following code example allows to read Signature Row data:
The internal voltage reference is output on XREF pin as described in
turned on
of an external filter capacitor (5 - 10 nF) on XREF pin may be necessary. XREF current load
must be from 1 µA to 100 µA with VCC from 2.7V to 5.5V for XREF = 1.1V and with VCC from
4.5V to 5.5V for XREF = 2.56V.
XREF pin can be coupled to an analog input of the ADC
Table 17-3.
Notes:
XREFEN
.equ TS_GAIN = 0x0007
.equ TS_OFFSET = 0x0005
LDI R30,LOW(TS_GAIN)
LDI R31,HIGH (TS_GAIN)
RCALL Read_signature_row
MOV R17,R16 ; Save R16 result
LDI R30,LOW(TS_OFFSET)
LDI R31,HIGH (TS_OFFSET)
RCALL Read_signature_row
; R16 holds TS_OFFSET and R17 holds TS_GAIN
Read_signature_row:
IN R16,SPMCSR ; Wait for SPMEN ready
SBRC R16,SPMEN ; Exit loop here when SPMCSR is free
RJMP Read_signature_row
LDI R16,((1<<SIGRD)|(1<<SPMEN)) ; We need to set SIGRD and SPMEN
together
OUT SPMCSR,R16 ; and execute the LPM within 3 cycles
LPM R16,Z
RET
1
1
0
(1)
(1)
1.
2.
3. In these configurations, the pin pull-up must be turned off and the pin digital output must be
4. Vcc in range 4.5 - 5.5V.
(See “Voltage Reference Enable Signals and Start-up Time” on page
(1)
See ”Bit 1 – XREFEN: Internal Voltage Reference Output Enable” on page 210.
See ”Bit 7:6 – REFS1:REFS0: Voltage Reference Selection Bits” on page 205.
set in Hi-Z.
Internal Voltage Reference Output
REFS1
x
0
1
(2)
REFS0
1
1
x
(2)
Voltage Reference Output (I
Hi-Z, the pin can be used as AREF input or other alternate
functions.
XREF = 1.1V
XREF = 2.56V
(3)
(3)(4)
(See ”Pin Configuration” on page
load
Table 17-3
100 µA)
7728G–AVR–06/10
53.). Addition
if the ADC is
5.).

Related parts for ATtiny167 Automotive