M16C/5L Group, M16C/56 Group
Table 24.10
Registers and Settings in Repeat Mode
Register
AINRST
AD0 to AD7
ADCON2
ADCON0
ADCON1
Note:
1.
This table does not describe a procedure.
A/D conversion start
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
The above diagram applies under the following conditions:
•
Bits CH2 to CH0 in the ADCON0 register are 010b (AN2).
•
Bits ADGSEL1 to ADGSEL0 in the ADCON2 register are 00b (AN0 to AN7).
Figure 24.9
Operation Example in Repeat Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Bit
AINRST1,
Select whether open-circuit detection assist function is used or
AINRST0
not.
b9 to b0
A/D conversion result can be read.
ADGSEL1,
Select analog input pin group.
ADGSEL0
Select φ AD frequency.
CKS2
CH2 to CH0
Select analog input pin.
MD1 to MD0
Set to 01b.
TRG
Select a trigger.
ADST
Set to 1 to start A/D conversion and set to 0 to stop it.
Select φ AD frequency.
CKS0
SCAN1, SCAN0
Disabled
Select φ AD frequency.
CKS1
ADSTBY
Set to 1 when performing A/D conversion.
(1)
Setting
Single A/D conversion
24. A/D Converter
Time
Page 633 of 803