CHAPTER 11 A/D CONVERTER
User’s Manual U13850EJ4V0UM
358
(7) Interrupt request flag (ADIF)
The interrupt request flag (ADIF) is not cleared even if the contents of the analog input channel specification
register (ADS) are changed.
If the analog input pin is changed during conversion, therefore, the result of the A/D conversion of the preceding
analog input signal and the conversion end interrupt request flag may be set immediately before ADS is
rewritten. If ADIF is read immediately after ADS has been rewritten, it may be set despite the fact that
conversion of the newly selected analog input signal has not been completed yet.
When stopping A/D conversion and then resuming, clear ADIF before resuming conversion.
Figure 11-10. A/D Conversion End Interrupt Generation Timing
Rewriting ADS
(ANIn conversion starts)
Rewriting ADS
(ANIm conversion starts)
ADIF is set but conversion
of ANIm is not completed.
A/D conversion
ADCR
INTAD
ANIn
ANIn
ANIm
ANIm
ANIm
ANIn
ANIn
ANIm
Remarks 1.
n = 0, 1, ..., 11
2.
m = 0, 1, ..., 11
Содержание MPD703030A
Страница 2: ...User s Manual U13850EJ4V0UM 2 MEMO ...
Страница 514: ...User s Manual U13850EJ4V0UM 514 MEMO ...