![Renesas M16C/62P Group Скачать руководство пользователя страница 250](http://html1.mh-extra.com/html/renesas/m16c-62p-group/m16c-62p-group_hardware-manual_1440174250.webp)
M16C/62P Group (M16C/62P, M16C/62PT)
18. A/D Converter
Rev.2.41
Jan 10, 2006
Page 235 of 390
REJ09B0185-0241
Figure 18.2
ADCON0 to ADCON1 Registers
A/D Control Register 0
(1)
Symbol
Address
After Reset
ADCON0
03D6h
00000XXXb
Bit Symbol
Bit Name
Function
RW
0 : Softw are trigger
1 : ADTRG
________
trigger
NOTES :
1.
RW
RW
Frequency Select Bit 0
Refer to
NOTE 3 for the ADCON2 Register
ADST
RW
A/D Operation Mode Select Bit 0
b4 b3
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sw eep mode
1 1 : Repeat sw eep mode 0 or
Repeat sw eep mode 1
CH2
RW
Analog Input Pin Select Bit
Function varies w ith each operation mode
CH0
RW
CH1
RW
b3 b2 b1 b0
b7 b6 b5 b4
If the ADCON0 register is rew ritten during A/D conversion, the conversion result w ill be indeterminate.
RW
MD1
A/D Conversion Start Flag
MD0
0 : A/D conversion disabled
1 : A/D conversion started
CKS0
TRG
Trigger Select Bit
RW
A/D Control Register 1
(1)
Symbol
Address
After Reset
ADCON1
03D7h
00h
Symbol
Address
After Reset
RW
NOTES :
1.
2.
0 : Vref not connected
1 : Vref connected
Function varies w ith each operation mode
RW
CKS1
BITS
8/10-Bit Mode Select Bit
0 : 8-bit mode
1 : 10-bit mode
Frequency Select Bit 1
Refer to
NOTE 3 for the ADCON2 Register
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.
b7 b6 b5 b4 b3 b2 b1 b0
SCAN0
RW
SCAN1
RW
MD2
RW
A/D Sw eep Pin Select Bit
Function varies w ith each operation mode
A/D Operation Mode Select Bit 1 0 : Any mode other than repeat sw eep mode 1
1 : Repeat sw eep mode 1
If the ADCON1 register is rew ritten during A/D conversion, the conversion result w ill be indeterminate.
OPA1
RW
RW
VCUT
Vref Connect Bit
(2)
RW
OPA0
RW
External Op-Amp Connection
Mode Bit
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655