A-D CONVERTER
12.2 Block description
b7 b6 b5 b4 b3 b2 b1 b0
A-D control register 1 (Address 1F16
)
0
0
Bit
0
Bit name
Function
At reset R/W
b1 b0
Undefined RW
A-D sweep pin select bits
0 0 : Pins AN0 and AN1 (2 pins)
0 1 : Pins AN0 to AN3 (4 pins) (Note 2)
1 0 : Pins AN0 to AN4 (5 pins) (Notes 2, 3)
1 1 : Do not select.
(Valid in the single sweep mode and
Undefined RW
1
repeat sweep mode 0.)
(Note 1)
0
0
RW
RW
2
3
Fix this bit to “0.”
Resolution select bit
0 : 8-bit resolution mode
1 : 10-bit resolution mode
A-D conversion frequency (φAD) select
bit 1
0
RW
See Table 12.2.1.
4
0
0
RW
RW
Fix this bit to “0.”
5
6
VREF connection select bit (Note 4)
0 : Pin VREF is connected.
1 : Pin VREF is disconnected.
The value is “0” at reading.
7
0
–
Notes 1: These bits are invalid in the one-shot and repeat modes. (They may be either “0” or “1.”)
2: When using pin AN3, be sure that the D-A0 output enable bit (bit 0 at address 9616) = “0” (output disabled).
3: When using pin AN4, be sure that the D-A1 output enable bit (bit 1 at address 9616) = “0” (output disabled).
4: When this bit is cleared from “1” to “0,” be sure to start the A-D conversion after an interval of 1 µs or more has elapsed.
5: Writing to each bit of the A-D control register 1 must be performed while the A-D converter halts, regardless of the A-D
operation mode.
Fig. 12.2.3 Structure of A-D control register 1
7906 Group User’s Manual Rev.2.0
12-6