Rev. 1.00
94
August 29, 2018
Rev. 1.00
95
August 29, 2018
HT45F6530
AC Voltage Regulator Flash MCU
HT45F6530
AC Voltage Regulator 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
CTM0 Comp. P CTM0PF
CTM0PE
CTM1 Comp. A CTM1AF
CTM1AE
04H
OCP0 Pin
OCP0F
OCP0E
EMI
20H
A/D Converter
ADF
ADE
EMI
EMI
08H
OCP1 Pin
OCP1F
OCP1E
Interrupt
Name
Request
Flags
Enable
Bits
EMI
OCH
INT0 Pin
INT0F
INT0E
EMI
10H
Multi-Function 0
MF0F
MF0E
EMI
14H
Multi-Function 1
MF1F
MF1E
EMI
18H
Time Base 0
TB0F
TB0E
1CH
Time Base 1
TB1F
TB1E
EMI
24H
EEPROM
DEF
DEE
EMI
CTM0 Comp. A CTM0AF
CTM0AE
CTM1 Comp. P CTM1PF
CTM1PE
INT1
INT1F
INT1E
EMI
28H
xxE
Enable Bits
xxF
Request Flag, auto reset in ISR
Legend
xxF
Request Flag, no auto reset in ISR
EMI
LVD
LVF
LVE
2CH
Interrupt Structure
Over Current Protection Interrupts
An OCPn interrupt request will take place when the OCPn interrupt request flag, OCPnF, is set,
which occurs when the OCPn circuit detects a specific current condition. To allow the program to
branch to its respective interrupt vector address, the global interrupt enable bit, EMI, and OCPn
interrupt enable bit, OCPnE, must first be set. When the interrupt is enabled, the stack is not full
and a user-defined current condition occurs, a subroutine call to the OCPn interrupt vector, will take
place. When the interrupt is serviced, the OCPn interrupt flag, OCPnF, will be automatically cleared.
The EMI bit will also be automatically cleared to disable other interrupts.
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
external interrupt request flags, INT0F~INT1F, will be automatically reset and the EMI bit will be