A-D CONVERTER
7905 Group User’s Manual Rev.1.0
12-27
Fig. 12.8.2 Initial setting example for related registers in repeat mode (2)
12.8 Repeat mode
b7
b0
1
b7
b0
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
b7
b0
AN8
AN9
AN10
AN11
b7
b0
b7
b0
(b 15 )
(b 8)
b7
b0
AN0
AN1
AN2
AN3
AN4
AN5
AN6
AN7
b7
b0
AN8
AN9
AN10
AN11
0
00
0
Continued from preceding Figure 12.8.1.
Selection of comparator function
Comparator function select register 0
(Address DC16)
0 : Comparator function is not selected
1 : Comparator function is selected.
Comparator function select register 0
(Address DD16)
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)
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)
A-D register 5 (Addresses 2B16, 2A16)
A-D register 6 (Addresses 2D16, 2C16)
A-D register 7 (Addresses 2F16, 2E16)
A-D register 8 (Addresses E116, E016)
A-D register 9 (Addresses E316, E216)
A-D register 10 (Addresses E516, E416)
A-D register 11 (Addresses E716, E616)
A value (comparison value) in the range
from 0016 through FF16 is set.
Port P7, P8 direction register
Port P7 direction register
(Address 1116)
Port P8 direction register
(Address 1416)
Clear the bits, corresponding to the
selected analog input pins, to “0.”
Clear the bits, corresponding to the
selected analog input pins, to “0.”
Setting of A-D conversion start bit to “1.”
A-D control register 0
(Address 1E16)
A-D conversion start bit
Trigger generated
Operation starts.
Note: Writing to the following must be performed while the A-D converter
halts (in other words, before a trigger is generated); this must be done
independent of the operation mode of the A-D converter.
Each bit of the A-D control register 0, except writing of ”0” to bit 6
Each bit of the A-D control register 1
Each bit of the A-D control register 2
A-D register i (when the comparator function is selected)
Comparator function select register 0
Comparator function select register 1
Especially, when the VREF connection select bit is cleared from “1” to “0,”
an interval of 1
s or more must be elapsed before occurrence of a trigger.