ATtiny861 Automotive Atmel Corporation, ATtiny861 Automotive Datasheet - Page 156

no-image

ATtiny861 Automotive

Manufacturer Part Number
ATtiny861 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATtiny861 Automotive

Flash (kbytes)
8 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
1
Twi (i2c)
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
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
No
Calibrated Rc Oscillator
Yes
19.9.1
156
ATtiny261/ATtiny461/ATtiny861
Manufacturing Calibration
Calibration values determined during test are available in the signature row.
The temperature in degrees Celsius can be calculated using the formula:
Where:
a. ADCH & ADCL are the ADC data registers,
b. is the temperature sensor gain
c. TS_OFFSET is the temperature sensor offset correction term
TS_GAIN is the unsigned fixed point 8-bit temperature sensor gain factor in 1/128th units stored
in the signature row.
TS_OFFSET is the signed twos complement temperature sensor offset reading stored in the sig-
nature row.
The table below summarizes the parameter signature row address vs product.
Table 19-3.
The following code example allows to read Signature Row data
T
=
.equ TS_GAIN = 0x0007
.equ TS_OFFSET = 0x0005
--------------------------------------------------------------------------------------------------------------------------------------------------------------------- -
TS_OFFSET
TS_GAIN
LDI R30,LOW(TS_GAIN)
LDI R31,HIGH (TS_GAIN)
RCALL Read_signature_row
MOV R17,R16
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
SBRC R16,SPMEN
RJMP Read_signature_row
LDI R16,((1<<SIGRD)|(1<<SPMEN)) ; We need to set SIGRD and SPMEN
OUT SPMCSR,R16
LPM R16,Z
RET
ADCH << 8 I ADCL
Parameter Signature Row Address vs. Product
; Wait for SPMEN ready
; Exit loop here when SPMCSR is free
ATtiny261
TS_GAIN
0x1E
0x1F
; and execute the LPM within 3 cycles
273
+
25 TS_OFFSET
; Save R16 result
together
ATtiny461
0x05
0x07
128
+
25
ATtiny861
7753F–AVR–01/11
0x05
0x07

Related parts for ATtiny861 Automotive