167
CHAPTER 12 A/D CONVERTER
Preliminary User’s Manual U14581EJ3V0UM00
(8) Interrupt request flag (ADIF)
The interrupt request flag (ADIF) is not cleared even if the analog input channel specification register (ADS1)
is changed.
Caution is therefore required since, if a change of analog input pin is performed during A/D conversion, the
A/D conversion result and conversion end interrupt request flag for the pre-change analog input may be set just
before the ADS1 rewrite, and when ADIF is read immediately after the ADS1 rewrite, ADIF may be set despite
the fact that the A/D conversion for the post-change analog input has not ended.
When the A/D conversion is stopped and then resumed, clear ADIF before the A/D conversion operation is
resumed.
Figure 12-12. A/D Conversion End Interrupt Request Generation Timing
ADS1 rewrite
(start of ANIn conversion)
A/D conversion
ADCR1
INTAD
ANIn
ANIn
ANIm
ANIm
ANIn
ANIn
ANIm
ANIm
ADS1 rewrite
(start of ANIm conversion)
ADIF is set but ANIm conversion
has not ended.
Remarks 1. n = 0, 1, ..., 4
2. m = 0, 1, ..., 4
(9) Read of A/D conversion result register (ADCR1)
When write operation is executed to A/D converter mode register (ADM1) and analog input channel specification
register (ADS1), the contents of ADCR1 are undefined. Read the conversion result before write operation is
executed to ADM1, ADS1. If a timing other than the above is used, the correct conversion result may not be
read.
Содержание mPD780851
Страница 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Страница 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...