
Rev. 1.00
158
October 26, 2018
Rev. 1.00
159
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
subroutine is serviced, all other interrupts will be blocked, as the global interrupt enable bit, EMI
bit will be cleared automatically. This will prevent any further interrupt nesting from occurring.
However, if other interrupt requests occur during this interval, although the interrupt will not be
immediately serviced, the request flag will still be recorded.
If an interrupt requires immediate servicing while the program is already in another interrupt service
routine, the EMI bit should be set after entering the routine to allow interrupt nesting. If the stack
is full, the interrupt request will not be acknowledged, even if the related interrupt is enabled, until
the Stack Pointer is decremented. If immediate service is desired, the stack must be prevented from
becoming full. In case of simultaneous requests, the accompanying diagram shows the priority that
is applied. All of the interrupt request flags when set will wake-up the device if it is in SLEEP or
IDLE Mode, however to prevent a wake-up from occurring the corresponding flag should be set
before the device is in SLEEP or IDLE Mode.
Interrupt
Name
Request
Flags
Enable
Bits
Master
Enable
Vector
EMI auto disabled in ISR
Priority
High
Low
04H
INT Pin
INTF
INTE
EMI
20H
EMI
EMI
08H
Touch Key Module
TKMF
TKME
EMI
0CH
Time Base
TBF
TBE
10H
EMI
14H
Multi-Function 1
MF1F
MF1E
EMI
18H
1CH
EMI
24H
EMI
EMI
EMI
28H
2CH
EMI
30H
EMI
HVSC
HVSCF
HVSCE
34H
xxE
Enable Bits
xxF
Request Flag, auto reset in ISR
Legend
xxF
Request Flag, no auto reset in ISR
Interrupts contained within
Multi-Function Interrupts
CTM0 Comp. A CTM0AF
CTM0AE
Interrupt
Name
Request
Flags
Enable
Bits
CTM0 Comp. P CTM0PF
CTM0PE
EMI
Multi-Function 0
MF0F
MF0E
PTM Comp. A
PTMAF
PTMAE
PTM Comp. P
PTMPF
PTMPE
CTM1 Comp. A CTM1AF
CTM1AE
CTM1 Comp. P CTM1PF
CTM1PE
I
2
C
IICF
IICE
UART
URF
URE
LVD
LVF
LVE
EEPROM
DEF
DEE
A/D Converter
ADF
ADE
OVP
OVPF
OVPE
OCP
OCPF
OCPE
Interrupt Structure
External Interrupt
The external interrupt is controlled by signal transitions on the INT pin. An external interrupt
request will take place when the external interrupt request flag, INTF, is set, which will occur when
a transition, whose type is chosen by the edge select bits, appears on the external interrupt pin. To
allow the program to branch to its respective interrupt vector address, the global interrupt enable bit,
EMI, and respective external interrupt enable bit, INTE, 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 pin is pin-shared with I/O
pins, they can only be configured as an external interrupt pin if the external interrupt enable bit in