
Rev. 1.10
116
March 02, 2020
Rev. 1.10
117
March 02, 2020
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
BS83A02L/BS83B04L
Ultra-Low Power Touch Key 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 requires microcontroller attention, its 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, Timer/Event
Counter, TM, EEPROM, 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
—
Time Base
TBE
TBF
—
Touch key TKRCOV
TKRCOVE
TKRCOVF
—
Touch key threshold TKTH
TKTHE
TKTHF
—
Timer/Event Counter
TE
TF
For BS83A02L only
I
2
C
I2CE
I2CF
For BS83B04L only
EEPROM Write Operation
DEE
DEF
For BS83B04L only
Multi-function
MFnE
MFnF
For BS83B04L only, n=0~1
CTM
CTMPE
CTMPF
For BS83B04L only
CTMAE
CTMAF
For BS83B04L only
Interrupt Register Bit Naming Conventions
Register
Name
Bit
7
6
5
4
3
2
1
0
INTEG
—
—
—
—
—
—
INTS1
INTS0
INTC0
(BS83A02L )
—
TKTHF TKRCOVF
INTF
TKTHE TKRCOVE INTE
EMI
INTC0
(BS83B04L)
—
MF1F
MF0F
INTF
MF1E
MF0E
INTE
EMI
INTC1
(BS83A02L)
—
—
TBF
TF
—
—
TBE
TE
INTC1
(BS83B04L)
—
DEF
TBF
I2CF
—
DEE
TBE
I2CE
MFI0
(BS83B04L)
—
—
TKTHF
TKRCOVF
—
—
TKTHE TKRCOVE
MFI1
(BS83B04L)
—
—
CTMAF
CTMPF
—
—
CTMAE CTMPE
Interrupt Register List