
Rev. 1.20
168
November 20, 2019
Rev. 1.20
169
November 20, 2019
HT66F2740
12V High Current Flash MCU
HT66F2740
12V High Current Flash MCU
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
Interrupts contained within
Multi-Function Interrupts
04H
INT0 Pin
INT0F
INT0E
EMI
20H
LVD
LVF
LVE
EMI
EMI
08H
OVP
OVPF
OVPE
Interrupt
Name
Request
Flags
Enable
Bits
EMI
OCH
USIM
USIMF
USIME
EMI
10H
PTM P
PTMPF
PTMPE
EMI
14H
PTM A
PTMAF
PTMAE
EMI
18H
STM P
STMPF
STMPE
1CH
STM A
STMAF
STMAE
EMI
24H
EEPROM
DEF
DEE
EMI
A/D Converter
ADF
ADE
EMI
EMI
Time Base 0
TB0F
TB0E
28H
2CH
EMI
Time Base 1
TB1F
TB1E
30H
EMI
HVSC
HVSCF
HVSCE
34H
INT1 Pin
INT1F
INT1E
EMI
EMI
M. Funct
MFF
MFE
38H
3CH
xxE Enable Bits
xxF
Request Flag, auto reset in ISR
Legend
xxF
Request Flag, no auto reset in ISR
CTM A
CTMAF
CTMAE
CTM P
CTMPF
CTMPE
Interrupt Structure
External Interrupts
The external interrupts are controlled by signal transitions on the pins INT0 and INT1. An external
interrupt request will take place when the external interrupt request flags, INT0F~INT1F, 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, INT0E~INT1E,
must first be set. Additionally the correct interrupt edge type must be selected using the INTEG
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 and the external
interrupt pin is selected by the corresponding pin-shared function selection bits. 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