
Rev. 1.20
172
November 20, 2019
Rev. 1.20
173
November 20, 2019
HT66F2740
12V High Current Flash MCU
HT66F2740
12V High Current Flash MCU
Bit 2~0
TB12~TB10
: Select Time Base 1 Time-out Period
000: 2
8
/f
PSC
001: 2
9
/f
PSC
010: 2
10
/f
PSC
011: 2
11
/f
PSC
100: 2
12
/f
PSC
101: 2
13
/f
PSC
110: 2
14
/f
PSC
111: 2
15
/f
PSC
High Voltage Short Circuit Interrupt
A High Voltage Short Circuit Interrupt request will take place when the High Voltage Short Circuit
Interrupt request flag, HVSCF, is set, which occurs when a short circuit condition appears on any of
high voltage I/O pins. To allow the program to branch to its respective interrupt vector address, the
global interrupt enable bit, EMI, and High Voltage Short Circuit Interrupt enable bit, HVSCE, must
first be set. When the interrupt is enabled, the stack is not full and a short circuit condition occurs, a
subroutine call to the High Voltage Short Circuit Interrupt vector will take place. When the Interrupt
is serviced, the High Voltage Short Circuit interrupt request flag, HVSCF, will be automatically reset
and the EMI bit will be cleared to disable other interrupts.
Multi-function Interrupt
Within this device there is a Multi-function interrupt. Unlike the other independent interrupts, the
interrupt has no independent source, but rather are formed from other existing interrupt sources,
namely the CTM Interrupts.
A Multi-function interrupt request will take place when
the Multi-function interrupt request flag,
MFF is
set. The Multi-function interrupt flag will be set when any of
its included functions generate
an interrupt request flag.
When the Multi-function interrupt is enabled and the stack is not full, and
either one of the interrupts contained within the Multi-function interrupt occurs, a subroutine call
to the Multi-function interrupt vector will take place. When the interrupt is serviced, the Multi-
Function request flag will be automatically reset and the EMI bit will be automatically cleared to
disable other interrupts.
However, it must be noted that, although the Multi-function Interrupt flag will be automatically
reset when the interrupt is serviced, the request flags from the original source of the Multi-function
interrupt will not be automatically reset and must be manually reset by the application program.
Compact Type TM Interrupts
The Compact Type TM has two interrupts, one comes from the comparator A match situation and
the other comes from the comparator P match situation. Only CTM interrupts are contained within
the Multi-function Interrupt. The Compact Type TM has
two interrupt request flags
of CTMPF and
CTMAF and two enable bits of CTMPE and CTMAE. A CTM interrupt request will take place
when any of the C
TM request flags are set, a situation which occurs when a
CTM comparator P or A
match situation happens.
To allow the program to branch to its respective interrupt vector address, the global interrupt enable
bit, EMI, respective CTM Interrupt enable bit, and the Multi-function Interrupt enable bit, MFE,
must first be set. When the interrupt is enabled, the stack is not full and a
CTM comparator match
situation occurs, a subroutine call to the Multi-function Interrupt vector locations, will take place.
When the CTM interrupt is serviced, the EMI bit will be automatically cleared to disable other
interrupts, however only the MFF flag will be automatically cleared. As the
CTM interrupt request
flags will not be automatically cleared, they have to be cleared by the application program.