Interrupts; Interrupt Registers - Holtek BS86DH12C Manual

High voltage touch a/d flash mcu with hvio
Table of Contents

Advertisement

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.
Global
INT Pin
Touch Key Module
Time Base
Multi-function
I
C
2
UART
LVD
A/D Converter
EEPROM write operation
Over voltage protection
Over circuit protection
High voltage short circuit
CTM
PTM
Rev. 1.00
High Voltage Touch A/D Flash MCU with HVIO
Function
Enable Bit
EMI
INTE
TKME
TBE
MFnE
IICE
URE
LVE
ADE
DEE
OVPE
OCPE
HVSCE
CTMnPE
CTMnAE
PTMPE
PTMAE
Interrupt Register Bit Naming Conventions
154
BS86DH12C
Request Flag
Notes
INTF
TKMF
TBF
MFnF
n=0~1
IICF
URF
LVF
ADF
DEF
OVPF
OCPF
HVSCF
CTMnPF
n=0~1
CTMnAF
PTMPF
PTMAF
October 26, 2018

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the BS86DH12C and is the answer not in the manual?

Questions and answers

Table of Contents