A/D Control Register 0 (Adcon0) - Renesas M16C/64C User Manual

Table of Contents

Advertisement

M16C/64C Group
27.2.5

A/D Control Register 0 (ADCON0)

A/D Control Register 0
b7 b6 b5 b4
b3
b2
b1
If the ADCON0 register is rewritten during A/D conversion, the conversion result is undefined.
CH2-CH0 (Analog input pin select bit) (b2-b0)
In one-shot and repeat modes, pins AN0_0 to AN0_7 and AN2_0 to AN2_7 can be used in the same
way as pins AN0 to AN7. Use bits ADGSEL1 to ADGSEL0 in the ADCON2 register to select the desired
group. These bits are disabled in single sweep mode, repeat sweep mode 0, and repeat sweep mode
1.
MD1-MD0 (A/D operation mode select bit 0) (b4-b3)
A/D operation mode is selected by a combination of bits MD1 to MD0 and the MD2 bit in the ADCON1
register. Table 27.5 lists A/D Operation Mode.
Table 27.5
A/D Operation Mode
ADCON1 register
MD2
0
0
0
0
1
Only set the combinations listed above.
R01UH0092EJ0110 Rev.1.10
Jul 31, 2012
b0
Symbol
ADCON0
Bit Symbol
Bit Name
CH0
CH1
Analog input pin select bit
CH2
MD0
A/D operation mode select
bit 0
MD1
TRG
Trigger select bit
ADST
A/D conversion start flag
CKS0
Frequency select bit 0
Bit Setting
ADCON0 register
MD1
0
0
1
1
1
Address
03D6h
Function
In one-shot mode or repeat mode
b2
b1
b0
0
0
0 : AN0
0
0
1 : AN1
0
1
0 : AN2
0
1
1 : AN3
1
0
0 : AN4
1
0
1 : AN5
1
1
0 : AN6
1
1
1 : AN7
b4 b3
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
or repeat sweep mode 1
0 : Software trigger
1 : ADTRG trigger
0 : A/D conversion stop
1 : A/D conversion start
Refer to the description of the CKS0 bit.
A/D Operation Mode
MD0
0
1
0
Single sweep mode
1
Repeat sweep mode 0
1
Repeat sweep mode 1
27. A/D Converter
Reset Value
0000 0XXXb
RW
RW
RW
RW
RW
RW
RW
RW
RW
One-shot mode
Repeat mode
Page 623 of 807

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/60 seriesM16c series

Table of Contents