
R01UH0336EJ0102 Rev.1.02
Page 1295 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 23 A/D Converter
(3)
Upper/Lower Limit Comparison for A/D Conversion Results
The ADCAn can check if A/D conversion results lie within a configurable value
range.
This function can be enabled or disabled for each channel in ADCAnCTL2.
For the enabled channel, the A/D conversion result is compared with the
specified lower limit (in ADCAnLL) and upper limit (in ADCAnUL).
Error flag
If the A/D conversion result of a specified channel is below the lower limit or
above the upper limit, the corresponding error flag ADCAnSTR0.ADCAnRCE
is set to 1.
ADCAnSTR0 indicates the error status of upper/lower limit comparison for the
latest A/D conversion result for every channel. This register can be used to
check which A/D conversion results are outside the specified range.
The value of the result check error flag ADCAnSTR0.ADCAnRCE is also
reflected in ADCAnLCR.ADCAnLER0, ADCAnDBiCR.ADCAnDBiER0 and
ADCAnCmCR.ADCAnCmER0.
Error
interrupt
The error interrupt INTADCAnTERR is generated if an A/D conversion result of
a specified channel is outside the specified range.