
295
12.3 A/D Converter Registers
Note:
For the external pin trigger, the falling edge is detected.
If the external trigger input level is the "L" level, the A/D converter can be activated when this
bit is rewritten to set external trigger activation.
Selecting the timer selects channel 2 of the reload timer. If the reload timer output level is
the "H" level, the A/D converter can be activated when this bit is rewritten to set timer
activation.
[Bit 9] STRT (STaRT)
Setting this bit to "1" activates the A/D converter.
To restart the A/D converter, set this bit to "1" again.
In stop mode, the operating function cannot be restarted.
A reset initializes this bit to "0".
Do not execute forced stop and software activation simultaneously (BUSY = 0 and STRT =
1).
Reading operations using read-modify-write instructions always return "0".
[Bit 8]
This is a test bit. When writing, always set it to "0".
[Bits 7 and 6] MD1 and MD0 (A/D converter MoDe set)
These bits are used to select the operation mode.
A reset initializes these bits to "00".
Note:
When A/D conversion is activated in continuous and stop modes, the conversion operation
continues until being stopped by the BUSY bit.
Table 12.3-2 A/D Converter Operation Mode Selection
MD1
MD0
Operation mode
0
Single mode. All types of restarts are enabled during operation.
0
1
Single mode. Restarts are disabled during operation.
1
0
Continuous mode. Restarts are disabled during operation.
1
Stop mode. Restarts are disabled during operation.
Single mode:
A/D conversion is performed continuously for the channels set by
ANS2 to ANS0 up to the channels set by ANE2 to ANE0, but
operation stops in between conversion operations.
Continuous mode:
A/D conversion is performed repeatedly and continuously for the
channels set by ANS2 to ANS0 up to the channels set by ANE2 to
ANE0 without interruption.
Stop mode:
A/D conversion is performed for the channels set by ANS2 to ANS0
up to the channels set by ANE2 to ANE0, but operation stops
temporarily for each channel.