![](http://datasheet.mmic.net.cn/30000/M30956FKTGP_datasheet_2359453/M30956FKTGP_299.png)
17. A/D Converter
Figure 17.3
AD0CON1 Register
b7 b6 b5 b4
b1
b2
b3
A/D0 Control Register 1(1)
Symbol
AD0CON1
Address
0397h
Bit Symbol
RW
After Reset
00h
NOTES:
1. When the AD0CON1 register is set during A/D conversion, the conversion result is undefined.
2. Bits SCAN1 and SCAN0 are enabled in single sweep mode, repeat sweep mode, multi-port single sweep mode, and multi-port
repeat sweep mode 0.
3. These pins are given priority for A/D conversion when the MD2 bit is set to 1.
4. When the MSS bit in the AD0CON3 register is set to 1 (multi-port sweep mode enabled);
-set bits SCAN1 and SCAN0 to 11b
-set the MD2 bit to 0
-set bits OPA1 and OPA0 to 00b.
5. Refer to the notes for the CKS0 bit in the AD0CON0 register.
6. In one-shot mode and repeat mode, bits OPA1 and OPA0 can be set to 01b or 10b. Do not set bits OPA1 and OPA0 to these
values in other modes.
7. To set bits OPA1 and OPA0 to 00b, set the PSL3_5 bit in the PSL3 register to 0 (other than ANEX0) and the PSL3_6 bit to 0
(other than ANEX1).
8. Do not set the VCUT bit to 0 during A/D conversion. Even if the VCUT bit is set to 0, VREF remains connected to the D/A
converter.
9. When the VCUT bit is set to 1 from 0, wait for 1
μs or more to start the A/D conversion.
b0
RW
MD2
VCUT
RW
BITS
CKS1
RW
OPA0
OPA1
SCAN0
SCAN1
RW
Bit Name
8/10-bit mode select bit
A/D operating mode
select bit 1
Frequency select bit
VREF connection bit(9)
External op-amp connection
mode bits(4, 6)
A/D Sweep pin select bits(2)
Function
0: 8-bit mode
1: 10-bit mode
(Note 5)
0: Any modes other than repeat sweep mode 1
1: Repeat sweep mode 1(4)
b7 b6
0 0: ANEX0 and ANEX1 are not used(7)
0 1: Signal applied to ANEX0 is A/D converted
1 0: Signal applied to ANEX1 is A/D converted
1 1: External op-amp connection
0: VREF not connected(8)
1: VREF connected
Single sweep mode and repeat sweep mode 0
b1 b0
0 0: ANi_0, ANi_1 (i = none, 0, 2, 15)
0 1: ANi_0 to ANi_3
1 0: ANi_0 to ANi_5
1 1: ANi_0 to ANi_7
Repeat sweep mode 1(3)
b1 b0
0 0: ANi_0
0 1: ANi_0, ANi_1
1 0: ANi_0 to ANi_2
1 1: ANi_0 to ANi_3
Multi-port single sweep mode and multi-port
repeat sweep mode 0(4)
b1 b0
1 1: ANi_0 to ANi_7