A-D CONVERTER
12.8 Repeat mode
12.8 Repeat mode
In the repeat mode, the A-D conversion for an input voltage from one selected analog input pin is performed
repeatedly.
In this mode, no A-D conversion interrupt request occurs. Additionally, the A-D conversion start bit (bit 6 at
address 1E16) remains set to “1” until it is cleared to “0” by software, and the A-D converter repeates its
operation while the A-D conversion start bit = “1.”
12.8.1 Settings for repeat mode
Figures 12.8.1 and 12.8.2 show initial setting examples for related registers in the repeat mode.
A-D control registers 0 and 1
b7
b0
b7
b0
A-D control register 0
(Address 1E16)
A-D control register 1
(Address 1F16)
0
0 0 1
0
0
0
X
X
Analog input pin select bits
b2 b1 b0
Resolution select bit
0 : 8-bit resolution mode
1 : 10-bit resolution mode
0 0 0 : AN
0 0 1 : AN
0 1 0 : AN
0 1 1 : AN
1 0 0 : AN
0
1
2
3
4
selected
selected
selected
selected
selected
A-D conversion frequency (φAD) select bit 1
See Table 12.2.1.
V
REF connection select bit
0 : Pin VREF is connected.
Repeat mode
A-D conversion start bit
0 : A-D conversion halts.
A-D conversion frequency (φAD) select bit 0
X : It may be either “0” or “1.”
See Table 12.2.1.
Selection of comparator function
b7
b0
Comparator function select register 0 (Address DC16)
0
0
0
AN0
AN1
AN2
AN3
AN4
0 : Comparator function is not selected.
1 : Comparator function is selected.
When comparator function is not selected
When comparator function is selected
A-D register i
A-D register 0 (Addresses 2116, 2016)
(b8)
b0
(b15)
b7
A-D register 1 (Addresses 2316, 2216)
A-D register 2 (Addresses 2516, 2416)
A-D register 3 (Addresses 2716, 2616)
A-D register 4 (Addresses 2916, 2816)
b7
b0
A value (comparison value) in the range
from 0016 through FF16 is set.
Continued on Figure 12.8.2.
Fig. 12.8.1 Initial setting example for related registers in repeat mode (1)
7906 Group User’s Manual Rev.2.0
12-22