
Rev. 1.00
162
October 26, 2018
Rev. 1.00
163
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
interrupt vector address, the global interrupt enable bit, EMI, and the Serial Interface Interrupt
enable bit, IICE, must first be set. When the interrupt is enabled, the stack is not full and any of the
above described situations occurs, a subroutine call to the respective Interrupt vector, will take place.
When the interrupt is serviced, the Serial Interface Interrupt flag, IICF, will be automatically cleared.
The EMI bit will also be automatically cleared to disable other interrupts.
UART Transfer Interrupt
The UART Transfer Interrupt is controlled by several individual UART transfer conditions. When
one of these conditions occurs, an interrupt pulse will be generated to get the attention of the
microcontroller. These conditions are a transmitter data register empty, transmitter idle, receiver data
available, receiver overrun, address detect and an RX pin wake-up. To allow the program to branch
to the respective interrupt vector addresses, the global interrupt enable bit, EMI, and the UART
interrupt enable bit, URE, must first be set. When the interrupt is enabled, the stack is not full and
any of these conditions are created, a subroutine call to the UART Interrupt vector, will take place.
When the UART Interrupt is serviced, the UART Interrupt flag, URF, will be automatically cleared.
The EMI bit will also be automatically cleared to disable other interrupts. However, the USR register
flags will only be cleared when certain actions are taken by the UART, the details of which are given
in the UART Interfaces chapter.
LVD Interrupt
The Low Voltage Detector Interrupt is an individual interrupt source with its own interrupt vector.
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 relevant interrupt vector will
take place. When the Low Voltage Interrupt is serviced, the LVF flag will be automatically cleared.
The EMI bit will also be automatically cleared to disable other interrupts.
A/D Converter Interrupt
The A/D Converter Interrupt is controlled by the termination of an A/D conversion process. 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 Converter Interrupt vector will take place. When the
interrupt is serviced, the A/D Converter Interrupt flag, ADF, will be automatically cleared. The EMI
bit will also be automatically cleared to disable other interrupts.
EEPROM Interrupt
The EEPROM Write Interrupt is an individual interrupt source with its own interrupt vector. 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, and EEPROM Write
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 respective interrupt vector will take place. When
the EEPROM Write Interrupt is serviced, the DEF flag will be automatically cleared and the EMI bit
will also be automatically cleared to disable other interrupts.