R8C/18 Group, R8C/19 Group
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
Function
Start conditions
Stop conditions
Interrupt request
generation timing
Input pin
Reading of comparator
conversion result
Rev.1.30
Apr 14, 2006
REJ09B0222-0130
The input voltage on one pin selected by bits CH2 to CH0 is comparator
converted once.
• 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.
• Comparator conversion is completed (the ADST bit is set to 0).
• The ADST bit is set to 0.
Comparator conversion completed
Select one of AN8 to AN11
Read AD register
Page 167 of 233
Specification
16. Comparator