184
CHAPTER 11 A/D CONVERTER
Preliminary User’s Manual U13420EJ2V0UM00
(7) Interrupt request flag (ADIF0)
The interrupt request flag (ADIF0) is not cleared even if the analog input channel specification register (ADS0)
is changed.
Therefore, if an analog input pin is changed 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 ADS0 rewrite. Caution is
therefore required since, at this time, when ADIF0 is read immediately just after the ADS0 rewrite, ADIF0 is 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 ADIF0 before the A/D conversion operation is
resumed.
Figure 11-9. A/D Conversion End Interrupt Request Generation Timing
Remarks 1. n = 0, 1, ......, 7
2. m = 0, 1, ......, 7
(8) Conversion results just after A/D conversion start
The first A/D conversion value just after A/D conversion operations start may not fall within the rating. Polling
A/D conversion end interrupt request (INTAD0) and take measures such as removing the first conversion results.
(9) A/D conversion result register (ADCR0) read operation
When writing is performed to the A/D converter mode register (ADM0) and analog input channel specification
register (ADS0), the contents of ADCR0 may become undefined. Read the conversion result following conversion
completion before writing to ADM0, ADS0. Using a timing other than the above may cause an incorrect conversion
result to be read.
ADM0 rewrite
(start of ANIn conversion)
A/D conversion
ADCR0
INTAD0
ANIn
ANIn
ANIm
ANIm
ANIn
ANIn
ANIm
ANIm
ADS0 rewrite
(start of ANIm conversion)
ADIF is set but ANIm conversion
has not ended.
Содержание mPD780065 Series
Страница 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Страница 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...