Renesas M16C/62P Hardware Manual page 226

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
A/D Control Register 0
b7
b6
b5
b4
b3
b2
0
0
NOTES:
1. If the ADCON0 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. AN0_0 to AN0_7, and AN2_0 to AN2_7 can be used in the same way as AN0 to AN7. Use the ADGSEL1 to
ADGSEL0 bits in the ADCON2 register to select the desired pin. However, if VCC2 < VCC1, do not use AN0_0 to
AN0_7 and AN2_0 to AN2_7 as analog input pins.
3. After rewriting the MD1 to MD0 bits, set the CH2 to CH0 bits over again using another instruction.
A/D Control Register 1
b7
b6
b5
b4
b3
b2
1
0
NOTES:
1. If the ADCON1 register is rewritten during A/D conversion, the conversion result will be indeterminate.
2. If the VCUT bit is reset from "0" (Vref unconnected) to "1" (Vref connected), wait for 1 µs or more before starting
A/D conversion.
Figure 18.4 ADCON0 Register and ADCON1 Register (One-shot Mode)
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
(1)
b1
b0
Symbol
ADCON0
Bit Symbol
Analog Input Pin
CH0
Select Bit
CH1
CH2
MD0
A/D Operation Mode
Select Bit 0
MD1
Trigger Select Bit
TRG
A/D Conversion
ADST
Start Flag
CKS0
Frequency Select Bit 0
(1)
b1
b0
Symbol
ADCON1
Bit Symbol
A/D Sweep Pin
SCAN0
Select Bit
SCAN1
A/D Operation Mode
MD2
Select Bit 1
8/10-Bit Mode Select Bit 0 : 8-bit mode
BITS
CKS1
Frequency Select Bit 1
Vref Connect Bit
VCUT
External Op-Amp
OPA0
Connection Mode Bit
OPA1
page 212
f o
3
6
4
Address
After Reset
03D6h
00000XXXb
Bit Name
b2 b1 b0
0 0 0 : AN0 is selected
0 0 1 : AN1 is selected
0 1 0 : AN2 is selected
0 1 1 : AN3 is selected
1 0 0 : AN4 is selected
1 0 1 : AN5 is selected
1 1 0 : AN6 is selected
1 1 1 : AN7 is selected
b4 b3
0 0 : One-shot mode
0 : Software trigger
1 : ADTRG trigger
0 : A/D conversion disabled
1 : A/D conversion started
Refer to NOTE 3 for the ADCON2 Register
Address
After Reset
03D7h
00h
Bit Name
Invalid in one-shot mode
Set to "0" when one-shot mode is selected
1 : 10-bit mode
Refer to NOTE 3 for the ADCON2 Register
(2)
1 : Vref connected
b7 b6
0 0 : ANEX0 and ANEX1 are not used
0 1 : ANEX0 input is A/D converted
1 0 : ANEX1 input is A/D converted
1 1 : External op-amp connection mode
18. A/D Converter
Function
(2)
(3)
(3)
Function
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents