Rev. 1.10
98
November 04, 2019
Rev. 1.10
99
November 04, 2019
HT45F5Q-3
Battery Charger Flash MCU
HT45F5Q-3
Battery Charger Flash MCU
• DAOPC Register
Bit
7
6
5
4
3
2
1
0
Name
DAC1EN DAC0EN OP2EN
—
—
—
SAOPIN
OPO
R/W
R/W
R/W
R/W
—
—
—
R/W
R
POR
1
1
0
—
—
—
0
0
Bit 7
DAC1EN
: D/A converter 1 enable control
0: Disable, D/A converter 1 output floating
1: Enable
Bit 6
DAC0EN
: D/A converter 0 enable control
0: Disable, D/A converter 0 output floating
1: Enable
Bit 5
OP2EN
: OPA2 enable control
0: Disable
1: Enable
Bit 4~2
Unimplemented, read as “0”
Bit 1
SAOPIN
: Switch OPA0N signal to OPA2P
0: Disable
1: Enable
Bit 0
OPO
: OPA2 digital logic output
The OPO is cleared to 0 when the OPA2 is disabled.
Operational Amplifiers
The battery charge module contains three operational amplifiers, namely OPA0, OPA1 and OPA2.
The OPA0 and OPA1 are always enabled and do not need to calibrate the input offset. The OPA2
related functions are controlled using the DAOPC and OPVOS registers.
The DAOPC register is used for control OPA2 enable/disable and output status monitoring. The
OPVOS register is used for OPA2 input offset calibration voltage selection and control.
• OPVOS Register
Bit
7
6
5
4
3
2
1
0
Name
OOFM
—
OOF5
OOF4
OOF3
OOF2
OOF1
OOF0
R/W
R/W
—
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
—
1
0
0
0
0
0
Bit 7
OOFM
: OPA2 normal operation or input offset voltage cancellation mode selection bit
0: Normal operation
1: Offset calibration mode
The input reference voltage comes from OPA2 positive input pin at offset voltage
cancellation mode.
Bit 6
Unimplemented, read as “0”
Bit 5~0
OOF5~OOF0
: OPA2 input offset voltage calibration control bits
Operational Amplifier 2 Operation
The OPA2 provides input offset calibration function. The calibrated data is stored in the OOF bit
field. The OOFM bit is used to control cancellation mode selection. The input reference voltage
comes from the OPA2P pin in calibration mode. The OPA2P pin is the OPA2 positive input and
the 20×A2P signal is the OPA2 analog output voltage. The OPA2 digital output flag is OPO, which
is used for OPA2 calibration mode. Finally, the OP2EN bit is used to enable or disable the OPA2
function.