
Rev. 1.40
114
March 29, 2019
Rev. 1.40
115
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
OPA2 switch control:
The following table illustrates the relationship between OPA2 control register settings and the
switches:
OPA2 Control Bits in OPA2C0, OPA2C1, OPA2C2
Switch Description
Results
A2PS A2NS
A2PSEL1
A2PSEL0
A1O2A2P A1O2A2N
PGAEN
A2O2N S4D S5D S6/7D S8D S9D S11D
S12D~
S14D
OPA2
connections
1
1
00
0
0
0
0
On On
Off
Off Off
Off
Off
Normal mode,
Input=A2N, A2P
0
1
01
0
0
0
0
Off On
Off
Off Off
Off
S12D
On
Input=A2N, VH1
0
1
10
0
0
0
0
Off On
Off
Off Off
Off
S13D
On
Input=A2N, VM
0
1
11
0
0
0
0
Off On
Off
Off Off
Off
S14D
On
Input=A2N, VL1
0
1
00
1
0
0
0
Off On
Off
Off Off
On
Off
Input=A2N, A1E
1
0
00
0
1
0
0
On Off
Off
On Off
Off
Off
Input=A1E, A2P
1
1
00
0
0
1
0
On On
On
Off Off
Off
Off
Input=A2N, A2P
1
0
00
0
0
1
0
On Off
On
Off Off
Off
Off
Input=A2N, A2P
1
0
00
0
0
0
1
On Off
Off
Off On
Off
Off
Input=A2P,
OPA2 as buffer
0
0
01
0
0
0
1
Off Off
Off
Off Off
Off
S12D
On
Input=VH1,
OPA2 as buffer
0
0
10
0
0
0
1
Off Off
Off
Off Off
Off
S13D
On
Input=VM,
OPA2 as buffer
0
0
11
0
0
0
1
Off Off
Off
Off Off
Off
S14D
On
Input=VL1,
OPA2 as buffer
OPA2 & I/O status description:
The following table illustrates the OPA2 & I/O settings.
A2EN PGAEN
A2NS A2PS
Description
0
x
x
x
PA5 and PA6 and PA7 are I/Os
1
0
0
0
PA5 and PA6 are I/Os. PA7 is OPA2 A2E output
1
0
0
1
PA6 is I/O. PA5 is OPA2 A2P input, PA7 is OPA2 A2E output
1
0
1
0
PA5 is I/O. PA6 is OPA2 A2N input, PA7 is OPA2 A2E output
1
0
1
1
PA5 is OPA2 A2P input and PA6 is OPA2 A2N input, PA7 is OPA2 A2E output
1
1
0
0
PA5 is I/O. PA6 is OPA2 A2N input, PA7 is OPA2 A2E output
1
1
0
1
PA5 is OPA2 A2P input and PA6 is OPA2 A2N input, PA7 is OPA2 A2E output
1
1
1
0
PA5 is I/O. PA6 is OPA2 A2N input and bypass R1 (10kΩ), PA7 is OPA2 A2E output
1
1
1
1
PA5 is OPA2 A2P input and PA6 is OPA2 A2N input and bypass R1 (10kΩ), PA7 is
OPA2 A2E output