BS83B24C/BS83C40C
Touch Flash MCU
Interrupts
Interrupts are an important part of any microcontroller system. When an external event or an internal
function such as a Timer Module 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. These devices contain 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 Timer Modules (TM),
Time Bases, EEPROM, Touch Key module and USIM module.
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. The registers fall
into three categories. The first is the INTC0~INTC2 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 interrupts 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
Glo�al
INT Pin
To�ch Ke� Mod�le
M�lti-f�nction
USIM
Time Bases
EEPROM
CTM
PTM
Register
Name
7
INTEG
—
INTC0
—
INTC1
DE�
M�I0
—
Rev. 1.00
Enable Bit
Request Flag
EMI
INTE
TKME
M�nE
USIME
TBnE
DEE
CTMPE
CTMAE
PTMPE
PTMAE
Interrupt Register Bit Naming Conventions
Bit
6
5
4
—
—
—
M�0�
TKM�
INT�
TB1�
TB0�
USIM�
—
PTMA�
PTMP�
Interrupt Register List – BS83B24C
151
Note
—
—
INT�
—
TKM�
—
n=0 fo� BS�3B�4C
M�n�
n=0~1 fo� BS�3C40C
USIM�
—
TBn�
n=0~1
DE�
—
CTMP�
Onl� fo� BS�3C40C
CTMA�
PTMP�
—
PTMA�
3
2
1
—
—
INTS1
M�0E
TKME
INTE
DEE
TB1E
TB0E
—
—
PTMAE
�e���a�� 0�� �01�
0
INTS0
EMI
USIME
PTMPE
Need help?
Do you have a question about the BS83B24C and is the answer not in the manual?