
Rev. 1.20
162
November 20, 2019
Rev. 1.20
163
November 20, 2019
HT66F2740
12V High Current Flash MCU
HT66F2740
12V High Current Flash MCU
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an
internal function such as a Timer Module or an A/D Converter requires microcontroller attention,
their corresponding interrupt will enforce a temporary suspension of the main program allowing the
microcontroller to direct attention to their respective needs. The device contains several external
interrupt and internal interrupt functions. The external interrupts are generated by the action of the
external INT0~INT1 pins, while the internal interrupts are generated by various internal functions
such as the TMs, LVD and the A/D Converter, etc.
Interrupt Registers
Overall interrupt control, which basically means the setting of request flags when certain
microcontroller conditions occur and the setting of interrupt enable bits by the application program,
is controlled by a series of registers, located in the Special Purpose Data Memory, as shown
in the accompanying table. The number of registers falls into three categories. The first is the
INTC0~INTC3 registers which setup the primary interrupts, the second is the MFI register which
setup the Multi-function interrupts. Finally there is an INTEG register to setup the external interrupts
trigger edge type.
Each register contains a number of enable bits to enable or disable individual registers as well as
interrupt flags to indicate the presence of an interrupt request. The naming convention of these
follows a specific pattern. First is listed an abbreviated interrupt type, then the (optional) number of
that interrupt followed by either an “E” for enable/disable bit or “F” for request flag.
Function
Enable Bit
Request Flag
Notes
Global
EMI
—
—
INTn Pin
INTnE
INTnF
n=0~1
Over Voltage Protection
OVPE
OVPF
—
USIM
USIME
USIMF
—
PTM Comparator P match
PTMPE
PTMPF
—
PTM Comparator A match
PTMAE
PTMAF
—
STM Comparator P match
STMPE
STMPF
—
STM Comparator A match
STMAE
STMAF
—
A/D Converter
ADE
ADF
—
Time Base
TBnE
TBnF
n=0~1
LVD
LVE
LVF
—
EEPROM
DEE
DEF
—
High Voltage Short Circuit
HVSCE
HVSCF
—
Multi-function
MFE
MFF
—
CTM
CTMPE
CTMPF
—
CTMAE
CTMAF
—
Interrupt Register Bit Naming Conventions