English
Language : 

M16C30P_07 Datasheet, PDF (192/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
16. A/D Converter
A/D Control Register 0 (1)
b7 b6 b5 b4 b3 b2 b1 b0
1
Symbol
Address
After Reset
ADCON0
03D6h
000X0XXXb
Bit Symbol
Bit Name
Function
RW
Analog Input Pin Select Bit (2, 3) b2 b1 b0
CH0
0 0 0 : AN0 is selected
RW
0 0 1 : AN1 is selected
0 1 0 : AN2 is selected
CH1
0 1 1 : AN3 is selected
RW
1 0 0 : AN4 is selected
1 0 1 : AN5 is selected
1 1 0 : AN6 is selected
CH2
1 1 1 : AN7 is selected
RW
A/D Operation Mode Select
1 : Repeat mode
MD0
Bit 0 (3)
RW
—
Nothing is assigned.
(b4) When w rite, set to “0”. When read, its content is indeterminate.
—
Trigger Select Bit
0 : Softw are trigger
TRG
_________
RW
1 : ADTRG trigger
A/D Conversion Start Flag
0 : A/D conversion disabled
ADST
1 : A/D conversion started
RW
Frequency Select Bit 0
CKS0
Refer to NOTE 2 for the ADCON2 Register
RW
NOTES :
1. If the ADCON0 register is rew ritten during A/D conversion, the conversion result w ill be indeterminate.
2. AN0_0 to AN0_7 can be used in the same w ay as AN0 to AN7. Use the ADGSEL1 to ADGSEL0 bits in the ADCON2
register to select the desired pin.
3. After rew riting the MD0 bit, set the CH2 to CH0 bits over again using another instruction.
Figure 16.6 ADCON0 Register (Repeat Mode)
Rev.1.22 Mar 29, 2007 Page 176 of 291
REJ09B0179-0122