![Cmsemicon CMS80F731 Series Скачать руководство пользователя страница 213](http://html1.mh-extra.com/html/cmsemicon/cms80f731-series/cms80f731-series_reference-manual_2627610213.webp)
www
.mcu.com.cn
214
/
239
Rev.
1.00
CMS80F731x Reference Manual
23.6 Related Registers
There are 11 main registers associated with AD conversion, namely:
⚫
AD control registers ADCON0, ADCON1, ADCON2, ADCCHS, ADCLDO;
⚫
Comparator control register ADCPC;
⚫
Delay data register ADDLYL;
⚫
AD result data register ADRSH/L;
⚫
Comparator data register ADCCMPH/L.
23.6.1
AD Control Register ADCON0
0xDF
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ADCON0
--
ADFM
ANACH3
ANACH2
ANACH1
ANACH0
ADGO
--
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
0
0
0
0
0
0
0
Bit7
--
Reserved, must be 0.
Bit6
ADFM:
ADC conversion result format select bits;
1=
Right alignment;
0=
Left-aligned.
Bit5~Bit2
ANACH<3:0>:
ADC channel 63 input source select bit;
0000=
BGR(1.2V);
0001=
Reserved, prohibited use;
0010=
Reserved, prohibited use;
0011=
Reserved, prohibited use;
0100=
Reserved, prohibited use;
0101=
VSS (ADC Reference Area);
0110=
Reserved, prohibited use;
0111=
VDD (ADC default reference voltage).
Other =
Reserved, prohibited.
Bit1
ADGO:
ADC converts the start bit (ADEN must be 1 for this bit set to 1, otherwise the
operation is invalid);
1=
Write: Starts the ADC conversion, (the hardware also uses this bit set to 1 when the
ADC is triggered);
Read: The ADC is converting.
0=
Write: Invalid.
Read: ADC idle/converted;
During the conversion of the ADC (ADGO=1), any software and hardware trigger
signals are ignored.
Bit0
--
Reserved, must be 0.