R8C/18 Group, R8C/19 Group
16. Comparator
Rev.1.30
Apr 14, 2006
Page 167 of 233
REJ09B0222-0130
16.1
One-Shot Mode
In one-shot mode, the input voltage on one selected pin is comparator converted once. Table 16.2 lists
the One-Shot Mode Specifications. Figure 16.4 shows Registers ADCON0 and ADCON1 in One-Shot
Mode.
Table 16.2
One-Shot Mode Specifications
Item
Specification
Function
The input voltage on one pin selected by bits CH2 to CH0 is comparator
converted once.
Start conditions
• When the ADCAP bit is set to 0 (software trigger),
set the ADST bit to 1 (comparator conversion starts).
• When the ADCAP bit is set to 1 (capture),
a timer Z interrupt request is generated while the ADST bit is set to 1.
Stop conditions
• Comparator conversion is completed (the ADST bit is set to 0).
• The ADST bit is set to 0.
Interrupt request
generation timing
Comparator conversion completed
Input pin
Select one of AN8 to AN11
Reading of comparator
conversion result
Read AD register