TXZ Family
Comparator
2017-10-11
12 / 14
Rev. 1.0
4.2. Detail of Comparator Register
[CMPCR] (Comparator Control Register)
4.2.1.
Bit
Bit Symbol
After reset
Type
Function
31
:
2
-
0
R
Read as "0"
1
CMPISEL
0
R/W
Selection of analog input
0: AIN00
1: AIN01
0
CMPEN
0
R/W
COMP operation
0: Stop
1: Operating
4.3. Detail of Digital to Analog Converter Registers
[DA0CR] (Control Register)
4.3.1.
Bit
Bit Symbol
After Reset
Type
Function
31:1
-
0
R
Read as “0”
0
EN
0
R/W
DAC operation
0: Stop
1: Operating
[DA0REG] (Converted Value Setting Register)
4.3.2.
Bit
Bit Symbol
After Reset
Type
Function
31:8
-
0
R
Read as “0”
7:0
DAC[7:0]
0x00
R/W
Converted value setting:
Digital value corresponding to the analog output voltage value is
set. The output voltage is calculated with the following formula.
DAC0 = <DAC> × (VREFH - VREFL) / 256