www
.mcu.com.cn
215
/
239
Rev.
1.00
CMS80F731x Reference Manual
23.6.2
AD Control Register ADCON1
0xDE
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ADCON1
ADEN
ADCKS2
ADCKS1
ADCKS0
--
--
--
--
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset value
0
1
0
0
0
0
0
0
Bit7
ADEN:
ADC enable bit;
1=
Enable ADC;
0=
ADC is Disabled and does not consume operating current.
Bit6~Bit4
ADCKS<2:0>:
ADC conversion clock select bits;
000=
Fsys/2;
100=
Fsys/32;
001=
Fsys/4;
101=
Fsys/64;
010=
Fsys/8;
110=
Fsys/128;
011=
Fsys/16;
111=
Fsys/256.
Bit3~Bit0
--
Reserved, must be 0.
23.6.3
AD Control Register ADCON2
0xE9
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
ADCON2
ADCEX
--
ADTGS1
ADTGS0
ADEGS1
ADEGS0
--
--
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
ADCEX:
ADC hardware trigger enable bit;
1=
Enable;
0=
Disable.
Bit6
--
Reserved, must be 0.
Bit5~Bit4
ADTGS<1:0>:
ADC hardware trigger source select bit;
00=
PG0 (PWM0);
01=
PG2 (PWM2);
10=
PG4 (PWM4);
11=
Port pin (ADET).
Bit3~Bit2
ADEGS<1:0>:
ADC hardware trigger edge selection bit;
00=
Falling edges;
01=
Rising edge;
10=
Reserved, prohibited use;
11=
The zero point of the PWM cycle.
Bit1~Bit0
--
Reserved, must be 0.