
Rev. 1.40
118
March 29, 2019
Rev. 1.40
119
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
The following diagram and table illustrate the comparators switch control setting and the
corresponding connections. Note that some switch control selections will force some switches to be
controlled by hardware automatically.
For example:
• When the CMP1 in calibration mode, i.e. C1OFM =1, then the SW1, SW3 will be forced to
close. The CNPSEL and C1NSEL bits will be set “1” by hardware, and these two bits will be
read out as “1”. After the offset voltage calibration, the CNPSEL and C1NSEL will be back to its
original value.
• When the CMP2 in calibration mode, i.e. C2OFM =1, then the SW1, SW2 will be forced to
close. The CNPSEL and C2PSEL bits will be set “1” by hardware, and these two bits will be
read out as “1”. After the offset voltage calibration, the CNPSEL and C2PSEL will be back to its
original value.
• If the CNPSEL=1, the A1O2CIN and A2O2CIN will be forced to “0”, i.e. If the SW1 is closed,
and that will force S7C and S10D to open.
• If the CNPSEL=0 and the A1O2CIN=1, the A2O2CIN will be forced to “0”, i.e. If the S7C is
closed, and that will force S10D to open.
A1O2CIN
S7C
OPA1
A2O2CIN
OPA2
S10D
S1B
S3B
S2B
S1A
S2A
S3A
C1NSEL
SW3
C2PSEL
CNPSEL
SW2
SW1
V
L0
V
H0
CNP
C2P
C1N
CINT0
CMPES1, CMPES0
Edge Select
CMPINT
C1OUTEN
C1OUT
C2OUT
C2OUTEN
CMP1X
CMP2X
C1INTEN
C2INTEN
CINT0
CMP1
CMP2