BAT32G1x9 user manual | Chapter 15 A/D converter
500 / 1149
Rev.1.02
15.2.9 The conversion result compares the upper limit value of the set register (ADUL).
This is the setting register used to check the upper limit of the A/D
conversion result.
Compare the A/D
conversion results with the values of the ADUL registers, and the
ADRCK
in
the mode
register
2
(ADM2) of the A/D converter The setting range of bits controls the generation of an interrupt signal
(INTAD). The
ADUL
register
is set via the 8-bit memory operation instruction.
After the reset signal is generated, the value of this register changes to "FFH".
Note:
1. Convert only
the 12-bit
A/D
result register (ADCR) to the high
8-bit and
ADUL
registers as well as
the ADLL
Registers for comparison.
2. To
rewrite
the ADUL
registers and
ADLL
registers, it must be done in the transition stop state (ADCS=0).
3. When setting the
ADUL
register and
the ADLL
register, the
ADUL
>
ADLL
must be made
.
Figure15-12The conversion result compares the format of the upper limit setting register (ADUL).
Reset Value:FFH R/W
7
6
5
4
3
2
1
0
ADULTS
ADUL7
AOFL6
ADUL5
ADUL4
ADUL3
ADUL2
ADUL1
ADUL0
15.2.10 The conversion results compare the lower limit value set register (ADLL).
This is the
setting register used to check the lower limit value of the A/D conversion result.
The A/D conversion result is compared to the value of the ADLL register, and the ADRCK in the mode
register 2 (ADM2) of the A/D converter the setting range of bits controls the generation of an interrupt signal
(INTAD). Set the ADLL registers via the 8-bit memory operation instructions.
After generating a reset signal, the value of this register changes to "00H".
Figure15-13 The conversion results compare the format of the lower limit setting register (ADLL).
Reset value: 00H R/W
7
6
5
4
3
2
1
0
ADLL
ADLL7
ADLL6
ADLL5
ADLL4
ADLL3
ADLL2
ADLL1
ADLL0
Note:
1. Convert only
the 12-bit
A/D
result register (ADCR) to the high
8-bit and
ADUL
registers as well as
the ADLL
Registers for comparison.
2. To rewrite
the ADUL registers and ADLL registers, it must be done in the transition stop state (ADCS=0).
3. When setting the ADUL register and the ADLL register, the ADUL > ADLL must be made.