Datasheet

Table Of Contents
Section 20 A/D Converter
Rev. 2.00 Jul. 04, 2007 Page 446 of 692
REJ09B0309-0200
20.3.3 A/D Start Register (ADSR)
ADSR starts and stops the A/D conversion.
Bit Bit Name
Initial
Value
R/W Description
7 ADSF 0 R/W
When this bit is set to 1, A/D conversion is started.
When conversion is completed, the converted data is
set in ADRR and at the same time this bit is cleared to
0. If this bit is written to 0, A/D conversion can be
forcibly terminated.
6 LADS 0 R/W Resistor Ladder Select
0: Resistor ladder operational while the A/D converter
is in the wait state
1: Resistor ladder not operational while the A/D
converter is in the wait state
Resistor ladder is always halted in standby mode,
watch mode, module standby mode, or on reset.
5 to 0 All 1 Reserved
These bits are always read as 1 and cannot be
modified.
20.4 Operation
The A/D converter operates by successive approximation with 10-bit resolution. When changing
the conversion time or analog input channel, in order to prevent incorrect operation, first clear the
bit ADSF to 0 in ADSR.
20.4.1 A/D Conversion
1. A/D conversion is started from the selected channel when the ADSF bit in ADSR is set to 1,
according to software.
2. When A/D conversion is completed, the result is transferred to the A/D result register.
3. On completion of conversion, the IRRAD flag in IRR2 is set to 1. If the IENAD bit in IENR2
is set to 1 at this time, an A/D conversion end interrupt request is generated.
4. The ADSF bit remains set to 1 during A/D conversion. When A/D conversion ends, the
ADSF bit is automatically cleared to 0 and the A/D converter enters the wait state.