Rev. 1.00
200
September 11, 2018
Rev. 1.00
201
September 11, 2018
HT45F4050
A/D NFC Flash MCU
HT45F4050
A/D NFC Flash MCU
NFC Interrupt
The NFC Interrupt is controlled by several NFC communication conditions. These conditions are
MCU reading/writing NFC memory completed, RF reading/writing NFC memory completed, MCU
reading/writing NFC memory when RF reading/writing NFC memory is in progress, field condition
detected, NFC memory accessed by MCU or RF error occurance, which are detailly defined in the
NFC_INTF register. When one of these conditions occurs, an interrupt pulse will be generated to
get the attention of the microcontroller. To allow the program to branch to its respective interrupt
vector address, the global interrupt enable bit, EMI, the
NFC Interrupt enable bit, NFCE, and the
interrupt enable bit of any conditions described above, must first be set. When the interrupt is
enabled, the stack is not full and the corresponding condition occurs, a subroutine call to the NFC
Interrupt vector, will take place. When the interrupt is serviced, the NFC Interrupt flag, NFCF, will
be automatically cleared. The EMI bit will also be automatically cleared to disable other interrupts.
However, the NFC_INTF register flags must be manually reset by the application program.
EEPROM Write Interrupt
The EEPROM Write Interrupt is contained within the Multi-function Interrupt. An EEPROM
Write Interrupt request will take place when the EEPROM Write 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, EEPROM Write Interrupt enable bit,
DEE, and associated Multi-function interrupt enable bit 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 respective
Multi-function Interrupt vector will take place. When the EEPROM Write Interrupt is serviced, the
EMI bit will be automatically cleared to disable other interrupts. However, only the Multi-function
interrupt request flag will be automatically cleared. As the DEF flag will not be automatically
cleared, it has to be cleared by the application program.
LVD Interrupt
The Low Voltage Detector Interrupt is contained within the Multi-function Interrupt. A 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, Low Voltage
Interrupt enable bit, LVE, and associated Multi-function interrupt enable bit, 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 Multi-function Interrupt vector, will take place. When the Low Voltage Interrupt is serviced, the
EMI bit will be automatically cleared to disable other interrupts, however only the Multi-function
interrupt request flag will be also automatically cleared. As the LVF flag will not be automatically
cleared, it has to be cleared by the application program.
TM Interrupts
The Compact, Standard and Periodic TMs have two interrupts, one comes from the comparator A
match situation and the other comes from the comparator P match situation. All of the TM interrupts
are contained within the Multi-function Interrupts. For all of the TM types there are two interrupt
request flags and two enable control bits. A TM interrupt request will take place when any of the
TM request flags are set, a situation which occurs when a TM comparator P or A match situation
happens.