Atmel Xplained Pro Evaluation Kit ATSAM4E-XPRO ATSAM4E-XPRO 数据表

产品代码
ATSAM4E-XPRO
下载
页码 1506
1353
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
Warning: No input buffer amplifier to isolate the source is included in the AFEC. This must be taken into
consideration to program a precise value in the TRACKTIM field. See the AFEC electrical characteristics of the
product datasheet.
45.6.12 Temperature Sensor
The temperature sensor is internally connected to channel 15. 
The measure of the temperature can be made in different ways through the AFE Controller. The different methods
for the measure depends on the configuration bits TRGEN in the AFEC_MR and CH15 in AFEC_CHSR.
Temperature measure can be triggered like the other channels by enabling its associated conversion channel 15
by setting the bit CH15 in AFEC_CHER.
In any case enabling CH15 in AFEC_CHSR enables the temperature sensor channel even if user sequence is
used (in such case last element of the sequence is always the temperature sensor channel). If temperature sensor
is to be used with user sequence it should be enabled using CH15 bit in AFEC_CHSR.
Manual start can be only performed if TRGEN bit in AFEC_MR is disabled. When a ‘1’ is written to the START bit
in the AFEC_CR, the temperature sensor channel conversion is scheduled together with the other enabled
channels (if any). The result of the conversion is placed in an internal register that can be read in the AFEC_CDR
(AFEC_CSELR must be programmed accordingly prior to read AFEC_CDR) and the associated flag EOC15 is set
in the AFEC_ISR.
If the TRGEN bit is set in AFEC_MR, the channel of the temperature sensor can be periodically converted together
with the other enabled channels if the RTCT bit is set in the AFEC_TEMPMR, the result is placed on AFEC_LCDR
and an internal register (can be read in AFEC_CDR). Thus the temperature conversion result is a part of the
Peripheral DMA Controller buffer. The temperature channel can be enabled/disabled at anytime, but this may not
be optimal for downstream processing.