R01UH0092EJ0110 Rev.1.10
Page 617 of 807
Jul 31, 2012
M16C/64C Group
27. A/D Converter
Figure 27.1
A/D Converter Block Diagram
CH2 to CH0
PM00
PM01
AD0 register
Data bus
ADCON2 register
Port P10 group
Port P0 group
ADGSEL1 to 0
Port P2 group
AN0_0
AN0_1
AN0_2
AN0_3
AN0_4
AN0_5
AN0_6
AN0_7
AN2_0
AN2_1
AN2_2
AN2_3
AN2_4
AN2_5
AN2_6
AN2_7
AD1 register
AD2 register
AD3 register
AD4 register
AD5 register
AD6 register
AD7 register
Decoder
for register
Decoder
for channel
selection
= 000b
= 001b
= 010b
= 011b
= 100b
= 101b
= 110b
= 111b
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
Vref
VIN
VREF
AVSS
ADCON0 register
ADCON1 register
Successive conversion register
Analog circuit
PM01 to PM00 = 00b
PM01 to PM00 = 00b
Comparator
0
1
ADSTBY
ADEX1 to ADEX0 = 01b
ADEX1 to ADEX0 = 10b
ADEX1 to 0
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
CH2 to CH0
ADGSEL1 to 0
= 000b
= 001b
= 010b
= 011b
= 100b
= 101b
= 110b
= 111b
ADEX1 to 0
= 11b
= 11b
= 11b
= 11b
= 11b
= 11b
= 11b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
CH2 to CH0
ADGSEL1 to 0
= 000b
= 001b
= 010b
= 011b
= 100b
= 101b
= 110b
= 111b
ADEX1 to 0
= 10b
= 10b
= 10b
= 10b
= 10b
= 10b
= 10b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 00b
= 10b
= 00b
= 11b
= 00b
CH2 to CH0: Bits in the ADCON0 register
ADEX1 to ADEX0, ADSTBY: Bits in the ADCON1 register
ADGSEL1 to ADGSEL0: Bits in the ADCON2 register
PM01 to PM00: Bits in the PM0 register
ANEX0
ANEX1
Open-circuit detection assist
function timing generator
Switch charge/discharge
VREF
AVSS
Sampling timing signal
AINRST0
AINRST1
2 cycles of
φ
AD
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...