M16C/62P Group (M16C/62P, M16C/62PT)
18. A/D Converter
Rev.2.41
Jan 10, 2006
Page 234 of 390
REJ09B0185-0241
Figure 18.1
A/D Converter Block Diagram
ANEX0
ANEX1
OPA0=1
OPA1=1
PM01 to PM00=00b
ADGSEL1 to ADGSEL0=10b
OPA1 to OPA0=11b
ADGSEL1 to ADGSEL0=00b
OPA1 to OPA0=11b
=000b
=001b
=010b
=011b
=100b
=101b
=110b
=111b
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
AN0_0
AN0_1
AN0_2
AN0_3
AN0_4
AN0_5
AN0_6
AN0_7
V
ref
VIN
CH2 to CH0
PM00
PM01
Decoder
for channel
selection
AD0 register (16)
Data bus low-order
VREF
AVSS
VCUT
Data bus high-order
OPA1=1
Port P10 group
Port P0 group
PM01 to PM00=00b
ADGSEL1 to ADGSEL0=10b
OPA1 to OPA0=00b
ADGSEL1 to ADGSEL0=00b
OPA1 to OPA0=00b
OPA1 to OPA0
=01b
AN2_0
AN2_1
AN2_2
AN2_3
AN2_4
AN2_5
AN2_6
AN2_7
PM01 to PM00=00b
ADGSEL1 to ADGSEL0=11b
OPA1 to OPA0=11b
PM01 to PM00=00b
ADGSEL1 to ADGSEL0=11b
OPA1 to OPA0=00b
fAD
1/3
CKS2
1/2
1/2
φ
AD
A/D conversion rate selection
Resistor ladder
Successive conversion register
ADCON0 register
ADCON1 register
Comparator
Decoder
for A/D register
AD1 register (16)
AD2 register (16)
AD3 register (16)
AD4 register (16)
AD5 register (16)
AD6 register (16)
AD7 register (16)
ADCON2 register
Port P2 group
ADTRG
TRG
1
A/D trigger
Software trigger
=000b
=001b
=010b
=011b
=100b
=101b
=110b
=111b
=000b
=001b
=010b
=011b
=100b
=101b
=110b
=111b
CH2 to CH0
CH2 to CH0
(1)
NOTES :
1. Port P0 group (AN0_0 to AN0_7) can be used as analog input pins even when PM01 to PM00 bits
are set to “01b” (memory expansion mode) and PM05 to PM04 bits are set to “11b” (multiplex bus
allocated to the entire CS space).
0
1
0
CKS
1
0
1
0
CKS1
1
0
http://www.xinpian.net
提供单片机解密、IC解密、芯片解密业务
010-62245566 13810019655