Datasheet

Section 24 A/D Converter
Page 842 of 982 REJ09B0465-0300 Rev. 3.00
Sep 17, 2010
H8S/20103, H8S/20203, H8S/20223, H8S/20115, H8S/20215, H8S/20235 Group
24.6 Interrupt Source
In A/D conversion mode, an A/D conversion end interrupt (ADI) occurs at the end of A/D
conversion. Specifically, the ADF bit in ADCSR is set to 1 when A/D conversion is completed;
and if the ADIE bit is 1 at this time, the A/D converter generates an ADI interrupt.
In compare mode, a compare result change interrupt (CMPI) occurs if the comparison result of the
specified channel changes (in three cases: from 1 to 0, from 0 to 1, and both). Specifically, the
CMPF bit is set when the comparison result between the specified channel and the specified
voltage satisfies the specified condition; and if the CMPIE bit is 1 at this time, the A/D converter
generates a CMPI interrupt.
The DTC can be activated by an ADI or CMPI interrupt. Having the converted data read by the
DTC in response to an ADI or CMPI interrupt enables continuous conversion to be achieved
without imposing a load on software.
Table 24.8 A/D Converter Interrupt Source
Name Interrupt Source Interrupt Flag DTC Activation
ADI End of A/D conversion or comparison ADF Possible
CMPI Comparison result change CMPF Possible