
Rev. 1.20
170
November 20, 2019
Rev. 1.20
171
November 20, 2019
HT66F2740
12V High Current Flash MCU
HT66F2740
12V High Current Flash MCU
TM Interrupt vector locations, will take place. When the TM Interface Interrupt is serviced, the TM
interrupt request flag will be automatically reset and the EMI bit will be cleared to disable other
interrupts.
LVD Interrupt
An LVD Interrupt request will take place when the LVD Interrupt request flag, LVF, is set, which
occurs when the Low Voltage Detector function detects a low power supply voltage. To allow the
program to branch to its respective interrupt vector address, the global interrupt enable bit, EMI,
and Low Voltage Interrupt enable bit, LVE, must first be set. When the interrupt is enabled, the stack
is not full and a low voltage condition occurs, a subroutine call to the LVD Interrupt vector, will
take place. When the LVD Interface Interrupt is serviced, the interrupt request flag, LVF, will be
automatically reset and the EMI bit will be cleared to disable other interrupts.
A/D Converter Interrupt
An A/D Converter Interrupt request will take place when the A/D Converter Interrupt request flag,
ADF, is set, which occurs when the A/D conversion process finishes. To allow the program to branch
to its respective interrupt vector address, the global interrupt enable bit, EMI, and A/D Interrupt
enable bit, ADE, must first be set. When the interrupt is enabled, the stack is not full and the A/D
conversion process has ended, a subroutine call to the A/D Interrupt vector, will take place. When
the A/D Converter Interrupt is serviced, the A/D Interrupt flag, ADF, will be automatically cleared.
The EMI bit will also be automatically cleared to disable other interrupts.
EEPROM Interrupt
An EEPROM Interrupt request will take place when the EEPROM Interrupt request flag, DEF, is set,
which occurs when an EEPROM Write cycle ends. To allow the program to branch to its respective
interrupt vector address, the global interrupt enable bit, EMI, and EEPROM Interrupt enable bit,
DEE, must first be set. When the interrupt is enabled, the stack is not full and an EEPROM Write
cycle ends, a subroutine call to the EEPROM Interrupt vector will take place. When the EEPROM
Interface Interrupt is serviced, the interrupt request flag, DEF, will be automatically reset and the
EMI bit will be cleared to disable other interrupts.
Time Base Interrupts
The function of the Time Base Interrupts is to provide regular time signal in the form of an internal
interrupt. They are controlled by the overflow signals from their respective timer functions. When
this
happens their respective interrupt request flags, TB0F or TB1F will be set. To allow the program
to branch to their respective interrupt vector addresses, the global interrupt enable bit, EMI and
Time Base enable bits, TB0E or TB1E, must first be set. When the interrupt is enabled, the stack is
not full and the Time Base overflows, a subroutine call to their respective vector locations will take
place. When the interrupt is serviced, the respective interrupt request flag, TB0F or TB1F, will be
automatically reset and the EMI bit will be cleared to disable other interrupts.
The purpose of the Time Base Interrupt is to provide an interrupt signal at fixed time periods. Its
clock source, f
PSC
, originates from the internal clock source f
SYS
, f
SYS
/4 or f
SUB
and then passes
through a divider, the division ratio of which is selected by programming the appropriate bits in the
TB0C and TB1C registers to obtain longer interrupt periods whose value ranges. The clock source
which in turn controls the Time Base interrupt period is selected using the CLKSEL1~CLKSEL0
bits in the PSCR register.