Renesas M16C/62P Series Hardware Manual page 258

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
A/D Control Register 0
b7 b6 b5 b4 b3 b2 b1 b0
1 0
NOTES :
1. If the ADCON0 register is rew ritten during A/D conversion, the conversion result w ill be indeterminate.
A/D Control Register 1
b7 b6 b5 b4
b3 b2 b1 b0
1
0
NOTES :
1.
If the ADCON1 register is rew ritten during A/D conversion, the conversion result w ill be indeterminate.
2.
AN0_0 to AN0_7, and AN2_0 to AN2_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. How ever, if VCC2 < VCC1, do not use AN0_0 to
AN0_7 and AN2_0 to AN2_7 as analog input pins.
3.
If the VCUT bit is reset from "0" (Vref unconnected) to "1" (Vref connected), w ait for 1 µs or more before starting
A/D conversion.
Figure 18.7
ADCON0 Register and ADCON1 Register (Single Sweep Mode)
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
(1)
Symbol
Address
03D6h
ADCON0
Bit Symbol
Bit Name
CH0
Analog Input Pin Select Bit
CH1
CH2
MD0
A/D Operation Mode Select
Bit 0
MD1
Trigger Select Bit
TRG
A/D Conversion Start Flag
ADST
Frequency Select Bit 0
CKS0
(1)
Symbol
Address
03D7h
ADCON1
Symbol
Address
A/D Sw eep Pin Select Bit
SCAN0
SCAN1
A/D Operation Mode Select Bit 1 Set to "0" w hen single sw eep mode is selected
MD2
8/10-Bit Mode Select Bit
BITS
CKS1
Frequency Select Bit 1
Vref Connect Bit
VCUT
External Op-Amp Connection
OPA0
Mode Bit
OPA1
Page 243 of 390
提供单片机解密、IC解密、芯片解密业务
Invalid in single sw eep mode
b4 b3
1 0 : Single sw eep mode
0 : Softw are trigger
_________
1 : ADTRG
trigger
0 : A/D conversion disabled
1 : A/D conversion started
Refer to NOTE 3 for the ADCON2 Register
(2)
When single sw eep mode is selected
b1 b0
0 0 : AN0 to AN1 (2 pins)
0 1 : AN0 to AN3 (4 pins)
1 0 : AN0 to AN5 (6 pins)
1 1 : AN0 to AN7 (8 pins)
0 : 8-bit mode
1 : 10-bit mode
Refer to NOTE 3 for the ADCON2 Register
(3)
1 : Vref connected
b7 b6
0 0 : ANEX0 and ANEX1 are not used
0 1 : Do not set to this value
1 0 : Do not set to this value
1 1 : External op-amp connection mode
18. A/D Converter
After Reset
00000XXXb
Function
After Reset
00h
After Reset
010-62245566 13810019655
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/62pM16c/62pt

Table of Contents