Datasheet

Section 20 A/D Converter
Rev. 4.00 Sep 27, 2006 page 618 of 1130
REJ09B0327-0400
Bit 7—A/D End Flag (ADF): Status flag that indicates the end of A/D conversion.
Bit 7
ADF Description
0 [Clearing conditions] (Initial value
)
When 0 is written in the ADF flag after reading ADF = 1
When the DTC is activated by an ADI interrupt and ADDR is read
1 [Setting conditions]
Single mode: When A/D conversion ends
Scan mode: When A/D conversion ends on all specified channels
Bit 6—A/D Interrupt Enable (ADIE): Selects enabling or disabling of interrupt (ADI) requests
at the end of A/D conversion.
Bit 6
ADIE Description
0 A/D conversion end interrupt (ADI) request is disabled (Initial value
)
1 A/D conversion end interrupt (ADI) request is enabled
Bit 5—A/D Start (ADST): Selects starting or stopping of A/D conversion. Holds a value of 1
during A/D conversion.
The ADST bit can be set to 1 by software, a timer conversion start trigger, or the A/D external
trigger input pin (ADTRG).
Bit 5
ADST Description
0 A/D conversion stopped (Initial value
)
1 Single mode: A/D conversion is started. Cleared to 0 automatically when conversion
on the specified channel ends
Scan mode: A/D conversion is started. Conversion continues sequentially on the
selected channels until ADST is cleared to 0 by software, a reset, or a
transition to standby mode or module stop mode
Bit 4—Scan Mode (SCAN): Selects single mode or scan mode as the A/D conversion operating
mode. See section 20.4, Operation, for single mode and scan mode operation. Only set the SCAN
bit while conversion is stopped.