Comparator Functions - Holtek HT45F23A Manual

Tinypower flash mcu with opa & comparators
Table of Contents

Advertisement

CMP2C1 Register
Bit
7
Name
CMPES1 CMPES0
R/W
R/W
POR
0
Bit 7~6
CMPES1, CMPES0: Interrupt edge control bits
00: disable
01: rising edge trigger
10: falling edge trigger
11: dual edge trigger
Bit 5~4
unimplemented, read as "0"
Bit 3
C2INTEN: Comparator 2 interrupt control bit
0: disable
1: enable
Bit 2
C2OUTEN: Comparator 2 output pin control bit
0: disable
1: enable
Bit 1
C2PSEL: Comparator 2 non-inverting input control bit
0: from VL0
1: from C2P pin
Bit 0
CMP2EN: Comparator 2 enable or disable control bit
0: disable
1: enable

Comparator Functions

These two comparators can operate together with the OPAs or standalone as shown in the main
functional blocks of the OPAs and Comparators.
Each of the internal comparators in the devices allows for a common mode adjustment method of its
input offset voltage.
The calibration steps are as following:
1. Set C1OFM=1 to setup the offset cancellation mode, here S3A is closed.
2. Set C1RS to select which input pin is to be used as the reference voltage – S1A or S2A is closed.
3. Adjust C1OF0~C1OF4 until the output status changes.
4. Set C1OFM = 0 to restore the normal comparator mode.
5. Repeat the same procedure from steps 1 to 4 for comparator 2.
C1N
CNP
Rev. 1.40
TinyPower
Flash MCU with OPA & Comparators
TM
6
5
4
R/W
0
S2A
CMP1
S3A
S1A
118
HT45F23A/HT45F24A
3
2
C2INTEN C2OUTEN C2PSEL CMP2EN
R/W
R/W
R/W
0
0
C1OFM
S1A
S2A
C1RS
0
x
ON
ON
1
0
OFF
ON
1
1
ON
OFF
"x" : don´t care
C1OUTEN
C1OUT
CMP1X
1
0
R/W
1
0
S3A
OFF
ON
ON
March 29, 2019

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the HT45F23A and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Ht45f24a

Table of Contents