
418
CHAPTER 16 8/10-BIT A/D CONVERTER
Table 16.4-2 Function Description of Each Bit of A/D Control Status Register 0 (ADCS0)
Bit name
Function
bit7
bit6
MD1, MD0:
A/D conversion
mode setting bit
This bit is used to set the A/D conversion mode.
Single conversion mode 1, single conversion mode 2, continuous conversion
mode , and stop conversion mode can be set.
Single conversion mode 1:
A/D conversion is performed from the channel specified by the A/D
conversion start channel setting bits (ANS2 to ANS0) to that specified by the
A/D conversion end channel setting bits (ANE2 to ANE0) before terminating.
Reactivation during operation is allowed.
Single conversion mode 2:
A/D conversion is performed from the channel specified by the A/D
conversion start channel setting bits (ANS2 to ANS0) to that specified by the
A/D conversion end channel setting bits (ANE2 to ANE0) before terminating.
Reactivation during operation is not allowed.
Continuous conversion mode:
A/D conversion is performed from the channel specified by the A/D
conversion start channel setting bits (ANS2 to ANS0) to that specified by the
A/D conversion end channel setting bits (ANE2 to ANE0) is repeated until
the conversion stop is forcibly implemented by the Converting bit (BUSY).
Reactivation during operation is not allowed.
Stop conversion mode:
A/D conversion is performed from the channel specified by the A/D
conversion start channel setting bits (ANS2 to ANS0) to that specified by the
A/D conversion end channel setting bits (ANE2 to ANE0) is repeated by
making a pause for each channel until the conversion stop is forcibly
implemented by the Converting bit (BUSY). Reactivation during operation is
not allowed. Reactivation during the pause depends on the activation trigger
set in the A/D activation trigger setting bits (STS1, STS0).
Note:
The impossibility of reactivation of each conversion mode (simple,
continuous, and stop) is applied to the 16-bit free-running timer 0 detection,
16-bit reload timer1, and activation of all software.
bit5
bit4
bit3
ANS2, ANS1,
ANS0:
A/D conversion
start channel
setting bit
These bits are used to set the A/D conversion start channel and check the
channel number being converted.
When the A/D conversion is activated, it is started from the channel specified
by the A/D conversion start channel setting bits (ANS2 to ANS0).
During A/D conversion, the channel number being converted is read out.
During a pause in stop conversion mode, the channel number converted just
before is read out.