A-D CONVERTER
12.2 Block description
12.2.3 Comparator function select register 0, comparator result register 0
Figure 12.2.5 shows the structure of comparator function select register 0; Figure 12.2.6 shows the structure
of comparator result register 0.
When the AN pin comparator function select bit is set to “1,” the comparator function is selected. When
i
the A-D conversion is performed, be sure to clear the corresponding bit to “0.”
For details of the comparator function, refer to section “12.6 Comparator function.”
b7 b6 b5 b4 b3 b2 b1 b0
Comparator function select register 0 (Address DC16
)
0 0
0
Bit
0
Bit name
Function
At reset R/W
0 : The comparator function is not selected.
1 : The comparator function is selected.
AN
AN
AN
AN
AN
0
1
2
3
4
pin comparator function select bit
pin comparator function select bit
pin comparator function select bit
pin comparator function select bit
pin comparator function select bit
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
1
2
3
4
7 to 5 Fix these bits to “000.”
Note: Writing to comparator function select register 0 must be performed while the A-D converter halts.
Fig. 12.2.5 Structure of comparator function select register 0
b7 b6 b5 b4 b3 b2 b1 b0
Comparator result register 0 (Address DE16
)
0 0 0
Bit
0
Bit name
Function
At reset R/W
0 : The set value > The input level at pin AN
1 : The set value < The input level at pin AN
i
i
AN
AN
AN
AN
AN
0
1
2
3
4
pin comparator result bit
pin comparator result bit
pin comparator result bit
pin comparator result bit
pin comparator result bit
0
0
0
0
0
0
RW
RW
RW
RW
RW
RW
1
2
3
4
7 to 5 Fix these bits to “000.”
Note: Writing to comparator result register 0 must be performed while the A-D converter halts.
Fig. 12.2.6 Structure of comparator result register 0
7906 Group User’s Manual Rev.2.0
12-9