![Holtek BS83A04C Manual Download Page 89](http://html.mh-extra.com/html/holtek/bs83a04c/bs83a04c_manual_2146843089.webp)
Rev. 1.00
88
March 24, 2020
Rev. 1.00
89
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an internal
function such as a Touch action or Timer Module overflow 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 several external
interrupt and internal interrupt functions. The external interrupts are generated by the action of the
external INT pin, while the internal interrupts are generated by various internal functions such as the
Touch Keys, TM, Time Base and I
2
C 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 falls into three categories. The first is the
INTC0~INTC1 registers which setup the primary interrupts, the second is the MFI0~MFI1 registers
which setup the Multi-function interrupts. Finally there is an INTEG register to setup the external
interrupt trigger edge type.
Each register contains a number of enable bits to enable or disable individual registers 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
—
I
2
C
I2CE
I2CF
—
Time Base
TBE
TBF
—
Multi-function
MFnE
MFnF
n=0~1
Touch key TKRCOV
TKRCOVE
TKRCOVF
—
Touch key threshold TKTH
TKTHE
TKTHF
—
CTM
CTMPE
CTMPF
—
CTMAE
CTMAF
—
Interrupt Register Bit Naming Conventions
Register
Name
Bit
7
6
5
4
3
2
1
0
INTEG
—
—
—
—
—
—
INTS1
INTS0
INTC0
—
MF1F
MF0F
INTF
MF1E
MF0E
INTE
EMI
INTC1
—
—
TBF
I2CF
—
—
TBE
I2CE
MFI0
—
—
TKTHF TKRCOVF
—
—
TKTHE TKRCOVE
MFI1
—
—
CTMAF
CTMPF
—
—
CTMAE
CTMPE
Interrupt Register List