
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
Over Voltage Protection Interrupt
The OVP Interrupt is controlled by detecting the OVP input voltage. An OVP Interrupt request will
take place when the OVP Interrupt request flag, OVPF, is set, which occurs when the Over Voltage
Protection circuit detects an over voltage condition. To allow the program to branch to its respective
interrupt vector address, the global interrupt enable bit, EMI, and OVP Interrupt enable bit, OVPE,
must first be set. When the interrupt is enabled, the stack is not full and an over voltage is detected, a
subroutine call to the OVP Interrupt vector, will take place. When the interrupt is serviced, the OVP
Interrupt flag, OVPF, will be automatically cleared. The EMI bit will also be automatically cleared
to disable other interrupts.
Over Current Protection Interrupt
The OCP Interrupt is controlled by detecting the OCP input current. An OCP Interrupt request will
take place when the OCP Interrupt request flag, OCPF, is set, which occurs when the Over Current
Protection circuit detects an over current condition. To allow the program to branch to its respective
interrupt vector address, the global interrupt enable bit, EMI, and OCP Interrupt enable bit, OCPE,
must first be set. When the interrupt is enabled, the stack is not full and an over current is detected, a
subroutine call to the OCP Interrupt vector, will take place. When the interrupt is serviced, the OCP
Interrupt flag, OCPF, will be automatically cleared. The EMI bit will also be automatically cleared
to disable other interrupts.
High Voltage Short Circuit Interrupt
The High Voltage Short Circuit Interrupt is controlled by detecting the high voltage I/O port circuit
condition. An High Voltage Short Circuit Interrupt request will take place when its interrupt request
flag, HVSCF, is set, which occurs when a short circuit situation occurs on any one of the 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 an short circuit condition is detected, 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 flag, HVSCF, will be automatically cleared. The
EMI bit will also be automatically cleared to disable other interrupts.
TM Interrupts
The Compact and Periodic TMs each 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 each of the Compact and Periodic TMs 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.
To allow the program to branch to its respective interrupt vector address, the global interrupt enable
bit, EMI, the respective TM Interrupt enable bit and the relevant Multi-function Interrupt enable bit,
MFnE, must also be set. When the interrupt is enabled, the stack is not full and a TM comparator
match situation occurs, a subroutine call to the relevant TM Interrupt vector locations will take
place. When the TM interrupt is serviced, the EMI bit will be automatically cleared to disable other
interrupts. However, only the related MFnF flag will be automatically cleared. As the TM interrupt
request flags will not be automatically cleared, it has to be cleared by the application program.
Interrupt Wake-up Function
Each of the interrupt functions has the capability of waking up the microcontroller when in the
SLEEP or IDLE Mode. A wake-up is generated when an interrupt request flag changes from low