
Rev. 1.40
124
March 29, 2019
Rev. 1.40
125
March 29, 2019
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
HT45F23A/HT45F24A
TinyPower
TM
Flash MCU with OPA & Comparators
MFIC1 Register
Bit
7
6
5
4
3
2
1
0
Name
—
LVDF
E2F
CF
—
ELVDI
EE2I
ECI
R/W
—
R/W
R/W
R/W
—
R/W
R/W
R/W
POR
—
0
0
0
—
0
0
0
Bit 7
unimplemented, read as “0”
Bit 6
LVDF
: LVD interrupt request flag
0: inactive
1: active
Bit 5
E2F
: EEPROM interrupt request flag
0: inactive
1: active
Bit 4
CF
: Comparator interrupt request flag
0: inactive
1: active
Bit 3
unimplemented, read as “0”
Bit 2
ELVDI
: LVD interrupt enable
0: disable
1: enable
Bit 1
EE2I
: EEPROM interrupt enable
0: disable
1: enable
Bit 0
ECI
: Comparator interrupt enable
0: disable
1: enable
External Interrupt
The external interrupts are controlled by signal transitions on the pins INT0~INT1. An external
interrupt request will take place when the external interrupt request flags, EIF0~EIF1, are set, which
will occur when a transition, whose type is chosen by the edge select bits, appears on the external
interrupt pins. To allow the program to branch to its respective interrupt vector address, the global
interrupt enable bit, EMI, and respective external interrupt enable bit, EEI0~EEI1, must first be
set. Additionally the correct interrupt edge type must be selected using the INTEDGE register to
enable the external interrupt function and to choose the trigger edge type. As the external interrupt
pins are pin-shared with I/O pins, they can only be configured as external interrupt pins if their
external interrupt enable bit in the corresponding interrupt register has been set. The pin must also
be setup as an input by setting the corresponding bit in the port control register. When the interrupt
is enabled, the stack is not full and the correct transition type appears on the external interrupt pin,
a subroutine call to the external interrupt vector, will take place. When the interrupt is serviced,
the external interrupt request flags, EIF0~EIF1, will be automatically reset and the EMI bit will be
automatically cleared to disable other interrupts. Note that any pull-high resistor selections on the
external interrupt pins will remain valid even if the pin is used as an external interrupt input.
The INTEDGE register is used to select the type of active edge that will trigger the external
interrupt. A choice of either rising or falling or both edge types can be chosen to trigger an external
interrupt. Note that the INTEDGE register can also be used to disable the external interrupt function.