7905 Group User’s Manual Rev.1.0
20-13
APPENDIX
Appendix 2. Control registers
0
1
2
3
4
5
6
7
1
0
RW
–
R/W
A-D sweep pin select bits
(Valid in the single sweep mode,
repeat sweep mode 0, and
repeat sweep mode 1.)
(Note 1)
A-D operation mode select bit 1
(Used in the repeat sweep mode 0
and repeat sweep mode 1.)(Note 4)
Resolution select bit
A-D conversion frequency (
φAD) select bit 1
Fix this bit to “0.”
VREF connection select bit (Note 5)
The value is “0” at reading.
Single sweep mode/Repeat sweep mode 0
0 0 : Pins AN0 and AN1 (2 pins)
0 1 : Pins AN0 to AN3 (4 pins)
1 0 : Pins AN0 to AN5 (6 pins)
1 1 : Pins AN0 to AN7 (8 pins) (Note 2)
Repeat sweep mode 1
(Note 3)
0 0 : Pin AN0 (1 pin)
0 1 : Pins AN0 and AN1 (2 pins)
1 0 : Pins AN0 to AN2 (3 pins)
1 1 : Pins AN0 to AN3 (4 pins)
b1 b0
0 : 8-bit resolution mode
1 : 10-bit resolution mode
See Table 12.2.1.
0 : Pin VREF is connected.
1 : Pin VREF is disconnected.
b1 b0
0 : Repeat sweep mode 0
1 : Repeat sweep mode 1
Bit name
Bit
Function
At reset
Notes 1: These bits are invalid in the one-shot and repeat modes. (They may be either “0” or “1.”)
2: When using pin AN7, be sure that the D-A0 output enable bit (bit 0 at address 9616) = “0” (output disabled).
3: Be sure to select the frequently-used analog input pins in the repeat sweep mode 1.
4: Fix this bit to “0” in the one-shot mode, repeat mode, and single sweep mode.
5: 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.
6: 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.
A-D control register 1 (Address 1F16
)
b7 b6 b5 b4 b3 b2 b1 b0
A-D control register 2 (Address DB16
)
0
1
2
3
7 to 4
0
RW
Bit name
Bit
Function
At reset
R/W
Analog input pin select bits 1
(Note 1)
0 X X X : Pins AN0 to AN7 are selected.
1 0 0 0 : Pin AN8 is selected.
1 0 0 1 : Pin AN9 is selected.
1 0 1 0 : Pin AN10 is selected.
1 0 1 1 : Pin AN11 is selected.
1 1 0 0 : Do not select.
1 1 1 1 : Do not select.
b3 b2 b1 b0
00
0
b7 b6 b5 b4 b3 b2 b1 b0
Fix these bits to “0000.”
(Note 2)
(Note 3)
(Note 4)
(Note 5)
(Note 6)
X : They may be either “0” or “1.”
Note 1: When using pins AN0 to AN7, regardless of the A-D operation mode, be sure to fix bit 3 to “0.” Also, pins AN8 to AN11 are
used only in the one-shot mode and repeat mode.
2: Use bits 2 to 0 of A-D control register 0 (address 1E16) for selection of pins AN0 to AN7.
3: When using pin AN8, be sure that the D-A1 output enable bit (bit 1 at address 9616) = “0” (output disabled). Also, be sure not
to use pin CTS2/RTS2.
4: When using pin AN9, be sure not to use pin CTS2/CLK2.
5: When using pin AN10, be sure not to use pin RXD2.
6: When using pin AN11, be sure not to use pin TXD2.
7: Writing to each bit of A-D control register 2 must be performed while the A-D conversion halts, regardless of the A-D
operation mode.
Reference
12-8
Reference
12-8
12-9
16-7