English
Language : 

BS83B08-3 Datasheet, PDF (96/141 Pages) Holtek Semiconductor Inc – 8-Bit Touch Key Flash MCU
BS83B08-3/B12-3/B16-3/B16G-3/C24-3
8-Bit 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 or Timer/Event Counter 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 devices contains several external
interrupt and internal interrupts 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
Touch Keys, Timer/Event Counter, Time Base, SIM 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 setup the primary interrupts, the second is
the MFI0~MFI2 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
Global
INT Pin
Touch Key Module
SIM
EEPROM
Multi-function
Time Base
Timer/Event Counter
Touch Key Module 16-bit Counter
Enable Bit
EMI
INTE
TKMnE
SIME
DEE
MFnE
TBE
TnE, TE
Mn16CTE
Request Flag
¾
INTF
TKMnF
SIMF
DEF
MFnF
TBF
TnF, TF
Mn16CTF
Interrupt Register Bit Naming Conventions
Notes
¾
¾
n=0~5
n=0~2
¾
n=0~1
n=0~5
Rev. 1.30
96
September 22, 2011