Datasheet

Table Of Contents
583
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
Given a temperature sensor ADC conversion value ADC
m
, we can infer a coarse value of the temperature temp
C
as:
[Equation 1]
Note 1: in the previous expression, we’ve added the conversion of the ADC register value to be expressed in V
Note 2: this is a coarse value because we assume INT1V=1V for this ADC conversion.
Using the (temp
R
, INT1V
R
) and (temp
H
, INT1V
H
) points, using a linear interpolation we have the following equation:
Then using the coarse temperature value, we can infer a closer to reality INT1V value during the ADC conversion as:
V
ADC
V
ADCR
temp temp
R
---------------------------------------
⎝⎠
⎜⎟
⎛⎞
V
ADCH
V
ADCR
temp
H
temp
R
-------------------------------------------
⎝⎠
⎜⎟
⎛⎞
=
temp
C
temp
R
ADC
m
1
2
12
1()
----------------------
⎝⎠
⎜⎟
⎛⎞
ADC
R
INT1V
R
2
12
1()
----------------------
⎝⎠
⎜⎟
⎛⎞
⎩⎭
⎪⎪
⎨⎬
⎪⎪
⎧⎫
temp
H
temp
R
()
ADC
H
INT1V
H
2
12
1()
----------------------
⎝⎠
⎜⎟
⎛⎞
ADC
R
INT1V
R
2
12
1()
----------------------
⎝⎠
⎜⎟
⎛⎞
⎩⎭
⎨⎬
⎧⎫
--------------------------------------------------------------------------------------------------------------------------------------------------------------
+=
INT1VINT1V
R
temp temp
R
--------------------------------------------
⎝⎠
⎜⎟
⎛⎞
INT1V
H
INT1V
R
temp
H
temp
R
------------------------------------------------
⎝⎠
⎜⎟
⎛⎞
=