
Rev. 1.40
112
March 29, 2019
Rev. 1.40
113
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
A2
A2N
A2E
A1
A1N
A1P
VH1
VM
VL1
MU
X
10K
560K
A1NS
A1O2N
A2O2N
R1
R2
A1PSEL[1:0]
A1X
C1
C2
A1PS
A1OEN
A2X
A2OEN
A1E
A1O2A2N
A1O2A2P
A2P
A2NS
PGAEN
PGAEN
A2PS
A1O2CIN
A2O2CIN
C2OUTEN
C1OUTEN
CINTO
C1INTEN
C2INTEN
C1NSEL
C2PSEL
C1OUT
C2OUT
C1N
C2P
CNP
CNPSEL
CMP1X
CMP2X
Edge Select
CMPES[1:0]
CMPINT
CINTO
MUX
VH0
MUX
VL0
MUX
VH1
VM
VL1
A2PSEL[1:0]
Connect AN6 (A/D)
Connect AN7 (A/D)
Operational Amplifier Functions
The OPAs are connected together internally in a specific way and the output of OPAs can also be
connected to the internal comparators as shown in the block diagram. Each of the OPAs has its own
control register, with the name OPA1C0, OPA1C1, OPA2C0, OPA2C1 and OPA2C2 which are used
to control the enable/disable function, the calibration procedure and the programmable gain function
of OPA2.
OPA1 Switch Control
The following diagram and table illustrate the OPA1 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:
• The S7C is closed when A1O2CIN=1 and the S7C is opened when A1O2CIN =0.
• The A1PS=1 will force A1PSEL1, 0=(00), i.e. S10C, S9C, S8C will be opened.
• When the A1EN=0, S6C switch are opened by hardware, then the related I/O pins can be used as
the other functions.