A-D CONVERTER
12.10 Repeat sweep mode 0
12.10 Repeat sweep mode 0
In the repeat sweep mode, the A-D conversions for input voltages from multiple selected analog input pins
are performed repeatedly. The A-D conversion is performed in ascending sequence from pin AN0 to pin AN .
7
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.10.1 Settings for repeat sweep mode 0
Figures 12.10.1 and 12.10.2 show initial setting examples for related registers in the repeat sweep mode 0.
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
1
X X
0
0
X
)
)
A-D sweep pin select bits
Repeat sweep mode 0
b1 b0
0 0 : AN
0 1 : AN
1 0 : AN
0
0
0
, AN
to AN
to AN
1
(2 pins)
A-D conversion start bit
0 : A-D conversion halts.
3
(4 pins)
(5 pins)
4
A-D conversion frequency (φAD) select bit 0
Resolution select bit
0 : 8-bit resolution mode
1 : 10-bit resolution mode
See Table 12.2.1.
A-D conversion frequency (φAD) select bit 1
See Table 12.2.1.
VREF connection select bit
0 : Pin VREF is connected.
X : It may be either “0” or “1.”
Selection of comparator function
b7
b0
0
0 0
Comparator function select register 0 (Address DC16
)
AN0
AN1
AN2
AN3
AN4
0 : Comparator is not selected.
1 : Comparator is selected.
When comparator function is not selected
When comparator function is selected
A-D register i
A-D register 0 (Addresses 2116, 2016
)
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
)
(b15)
b7
(b8)
b0
)
)
)
b0
b7
A value (comparison value) in the range
from 0016 through FF16 is set.
Continued on Figure 12.10.2.
Fig. 12.10.1 Initial setting example for related registers in repeat sweep mode 0 (1)
7906 Group User’s Manual Rev.2.0
12-28