A-D CONVERTER
12.2 Block description
12.2.1 A-D control registers 0, 1
Figures 12.2.2 and 12.2.3 show the structures of the A-D control registers 0 and 1.
b7 b6 b5 b4 b3 b2 b1 b0
A-D control register 0 (Address 1E16)
0
Bit
0
Bit name
Function
At reset R/W
Undefined RW
b2 b1b0
Analog input pin select bits
0 0 0 : AN0 is selected.
0 0 1 : AN1 is selected.
0 1 0 : AN2 is selected.
0 1 1 : AN3 is selected.
1 0 0 : AN4 is selected.
1 0 1 : Do not select.
1 1 0 : Do not select.
1 1 1 : Do not select.
(Valid in the one-shot and repeat
modes.)
(Note 1)
Undefined RW
Undefined RW
1
2
(Note 2)
(Note 3)
b4 b3
0
0
RW
RW
3
4
A-D operation mode select bits
0 0 : One-shot mode
0 1 : Repeat mode
1 0 : Single sweep mode
1 1 : Repeat sweep mode 0
5
6
Fix this bit to “0.”
0
0
RW
RW
A-D conversion start bit
0 : A-D conversion halts.
1 : A-D conversion starts.
(Note 4)
RW
A-D conversion frequency (φAD)
select bit 0
7
See Table 12.2.1.
0
Notes 1: These bits are invalid in the single sweep mode and repeat sweep mode 0. (Each 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 writing to this bit, use the MOVM (MOVMB) or STA (STAB, STAD) instruction.
5: Writing to each bit (except writing of “0” to bit 6) of the A-D control register 0 must be performed while the A-D converter
halts, regardless of the A-D operation mode.
Fig. 12.2.2 Structure of A-D control register 0
7906 Group User’s Manual Rev.2.0
12-5