
Rev. 1.00
154
October 26, 2018
Rev. 1.00
155
October 26, 2018
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
BS86DH12C
High Voltage Touch A/D Flash MCU with HVIO
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an
internal function such as a Timer Module or an A/D converter requires microcontroller attention,
their corresponding interrupt will enforce a temporary suspension of the main program allowing the
microcontroller to direct attention to their respective needs. The device contains an external interrupt
and several internal interrupt functions. The external interrupt is generated by the action of the
external INT pin, while the internal interrupts are generated by various internal functions such as the
TMs, Time Base, LVD, EEPROM, UART and the A/D converter, etc.
Interrupt Registers
Overall interrupt control, which basically means the setting of request flags when certain
microcontroller conditions occur and the setting of interrupt enable bits by the application program,
is controlled by a series of registers, located in the Special Purpose Data Memory, as shown in the
accompanying table. The number of registers depends upon the device chosen but fall into three
categories. The first is the INTC0~INTC3 registers which configure the primary interrupts. The
second is the MFI0~MFI1 registers which configure the Multi-function interrupts. Finally there is an
INTEG register to configure the external interrupt trigger edge type.
Each register contains a number of enable bits to enable or disable individual interrupts as well
as interrupt flags to indicate the presence of an interrupt request. The naming convention of these
follows a specific pattern. First is listed an abbreviated interrupt type, then the (optional) number of
that interrupt followed by either an “E” for enable/disable bit or “F” for request flag.
Function
Enable Bit
Request Flag
Notes
Global
EMI
—
—
INT Pin
INTE
INTF
—
Touch Key Module
TKME
TKMF
—
Time Base
TBE
TBF
—
Multi-function
MFnE
MFnF
n=0~1
I
2
C
IICE
IICF
—
UART
URE
URF
—
LVD
LVE
LVF
—
A/D Converter
ADE
ADF
—
EEPROM write operation
DEE
DEF
—
Over voltage protection
OVPE
OVPF
—
Over circuit protection
OCPE
OCPF
—
High voltage short circuit
HVSCE
HVSCF
—
CTM
CTMnPE
CTMnPF
n=0~1
CTMnAE
CTMnAF
PTM
PTMPE
PTMPF
—
PTMAE
PTMAF
Interrupt Register Bit Naming Conventions