Download Print this page

Renesas M16C/50 Series User Manual page 668

Advertisement

M16C/5L Group, M16C/56 Group
Table 24.8
Registers and Settings in One-Shot Mode
Register
AINRST
AINRST1, AINRST0 Select whether open-circuit detection assist function is used or not.
AD0 to AD7
ADGSEL1, ADGSEL0 Select analog input pin group.
ADCON2
ADCON0
SCAN1, SCAN0
ADCON1
Note:
1.
This table does not describe a procedure.
IR bit in the ADIC register
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.8
Operation Example in One-Shot Mode
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
Bit
b9 to b0
A/D conversion result can be read.
Select φ AD frequency.
CKS2
CH2 to CH0
Select analog input pin.
MD1 to MD0
Set to 00b.
TRG
Select a trigger.
ADST
Set to 1 to start A/D conversion and set to 0 to stop it.
Select φ AD frequency.
CKS0
Disabled
Select φ AD frequency.
CKS1
ADSTBY
Set to 1 when performing A/D conversion.
A/D conversion start
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
(1)
Setting
Single A/D conversion
Set to 0 by acceptance of an
interrupt request or by a program
Time
24. A/D Converter
Page 631 of 803

Advertisement

loading