NEC PD78058FY(A) User Manual

Page 276

Advertising
background image

276

CHAPTER 14 A/D CONVERTER

A /D Conversion

ADCR

INTAD

ANIn

ANIn

ANIm

ANIm

ANIn

ANIn

ANIm

ANIm

ADM Rewrite

(Start of ANIn Conversion)

ADM Rewrite

(Start of ANIm Conversion)

ADIF is set but ANIm
conversion has not ended

(6) Interrupt request flag (ADIF)

The interrupt request flag (ADIF) is not cleared even if the A/D converter mode register (ADM) 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 ADIF for the analog input before the change may be set just before the ADM rewrite.

If ADIF is read immediately after the ADM rewrite, ADIF will be set regardless of whether A/D conversion of

the analog input after the change has been completed.

When the A/D conversion is stopped and then resumed, clear the ADIF before it is resumed.

Figure 14-11. A/D Conversion End Interrupt Request Generation Timing

Advertising
This manual is related to the following products: