BAT32G1x9 user manual | Chapter 17 Comparator
545 / 1149
Rev.1.02
17.3.6
The comparator has a built-in reference voltage selection register (CiRVM).
The CiRVM register is the register that sets the comparator's built-in reference voltage.
When the built-in reference stop action (CVREi=0), the CiRVM register is rewritten
The CVRCTL register is set via the 8-bit memory operation instruction.
After generating a reset signal, the value of this register changes to "00H".
Figure 17-8 Comparator with the format of the built-in reference voltage selection register i (CiRVM).
Address: 400438434H (C0RVM),
400438435H (C1RVM),
reset:
00H R/W
Symbol
7 6 5 4 3 2 1 0
CiRVM
CiRV
S7
CiRV
S6
CiRV
S5
CiRV
S4
CiRV
S3
CiRV
S2
CiRV
S1
CiRV
S0
The comparator's built-in reference
voltage is set
0
0
0
0
0
0
0
0
{(AVREFP or VDD)/256}
x0
0
0
0
0
0
0
0
1
{(AVREFP or VDD)/256}
x1
0
0
0
0
0
0
1
0
{(AVREFP or VDD)/256}
x2
0
0
0
0
0
0
1
1
{(AVREFP or VDD)/256}
x3
...
...
1
1
1
1
1
1
0
0
{(AVREFP or VDD)/256}
x252
1
1
1
1
1
1
0
1
{(AVREFP or VDD)/256}
x253
1
1
1
1
1
1
1
0
{(AVREFP or VDD)/256}
x254
1
1
1
1
1
1
1
1
{(AVREFP or VDD)/256}
x255
CiRVS7
CiRVS6
CiRVS5
CiRVS4
CiRVS3
CiRVS2
CiRVS1
CiRVS0
C0OE
C0IE
0