
Rev. 1.40
116
March 29, 2019
Rev. 1.40
117
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
CMP1C1 Register
Bit
7
6
5
4
3
2
1
0
Name
CNPSEL
—
—
—
C1INTEN C1OUTEN C1NSEL CMP1EN
R/W
R/W
—
—
—
R/W
R/W
R/W
R/W
POR
1
—
—
—
0
0
1
0
Bit 7
CNPSEL
: Comparator non-inverting input control bit
0: from OPA output
1: from CNP pin
Bit 6~4
unimplemented, read as “0”
Bit 3
C1INTEN
: Comparator 1 interrupt control bit
0: disable
1: enable
Bit 2
C1OUTEN
: Comparator 1 output pin control bit
0: disable
1: enable
Bit 1
C1NSEL
: Comparator 1 inverting input control bit
0: from VH0
1: from C1N pin
Bit 0
CMP1EN
: Comparator 1 enable or disable control bit
0: disable
1: enable
CMP2C0 Register
Bit
7
6
5
4
3
2
1
0
Name
CMP2X
C2OFM
C2RS
C2OF4
C2OF3
C2OF2
C2OF1
C2OF0
R/W
R
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
1
0
0
0
0
Bit 7
CMP2X
: comparator output; positive logic. This bit is read only.
Bit 6
C2OFM
: Comparator mode or input offset voltage cancellation mode
0: comparator mode
1: input offset voltage cancellation mode
When the C2OFM=1, comparator inputs are always from I/O pins. i.e. the CNPSEL
and C1NSEL will be forced to “1”. That means disconnect the input from OPAs
output.
Bit 5
C2RS
: Operational amplifier input offset voltage cancellation reference selection bit
0: select C2P as the reference input
1: select CNP as the reference input
Bit 4~0
C2OF4~C2OF0
: Comparator input offset voltage cancellation control bits