Touch Key Tkrcov Interrupt; Touch Key Threshold Tkth Interrupt; Tm Interrupt - Holtek BS83A04C Manual

4-key enhanced touch i/o flash mcu
Table of Contents

Advertisement

BS83A04C
4-Key Enhanced Touch I/O Flash MCU
However, it must be noted that, although the Multi-function Interrupt flags will be automatically
reset when the interrupt is serviced, the request flags from the original source of the Multi-function
interrupts will not be automatically reset and must be manually reset by the application program.

Touch Key TKRCOV Interrupt

The Touch Key TKRCOV Interrupt is contained within the Multi-function Interrupt. An Touch
Key TKRCOV Interrupt request will take place when the Touch Key TKRCOV Interrupt request
flag, TKRCOVF, is set, which occurs when the touch key time slot counter overflows. To allow the
program to branch to its respective interrupt vector address, the global interrupt enable bit, EMI,
Touch Key TKRCOV Interrupt enable bit, TKRCOVE, and associated Multi-function interrupt
enable bit, must first be set. When the interrupt is enabled, the stack is not full and the touch key
time slot counter overflows, a subroutine call to the Multi-function Interrupt vector, will take place.
When the Touch Key TKRCOV Interrupt is serviced, the EMI bit will be automatically cleared
to disable other interrupts, however only the Multi-function interrupt request flag will be also
automatically cleared. As the TKRCOVF flag will not be automatically cleared, it has to be cleared
by the application program.

Touch Key Threshold TKTH Interrupt

The Touch Key Threshold TKTH Interrupt is contained within the Multi-function Interrupt. A Touch
Key Threshold TKTH Interrupt request will take place when the Touch Key Threshold TKTH
Interrupt request flag, TKTHF, is set, which occurs when the Touch Key Module 16-bit C/F counter
is less than the lower threshold if M0KnTHS=0, or larger than the upper threshold if M0KnTHS=1.
To allow the program to branch to its respective interrupt vector address, the global interrupt enable
bit, EMI, Touch Key Threshold TKTH Interrupt enable bit, TKTHE, and associated Multi-function
interrupt enable bit, must first be set. When the interrupt is enabled, the stack is not full and any of
the above described threshold comparison conditions occurs, a subroutine call to the Multi-function
Interrupt vector, will take place. When the Touch Key Threshold TKTH Interrupt is serviced, the
EMI bit will be automatically cleared to disable other interrupts, however only the Multi-function
interrupt request flag will be also automatically cleared. As the TKTHF flag will not be automatically
cleared, it has to be cleared by the application program.

TM Interrupt

The Compact Type TM each have two interrupts, one comes from the comparator A match situation
and the other comes from the comparator P match situation. All of the TM interrupts are contained
within the Multi-function Interrupts. There are two interrupt request flags and two enable control
bits. A TM interrupt request will take place when any of the TM request flags are set, a situation
which occurs when a TM comparator P or A match situation happens.
To allow the program to branch to its respective interrupt vector address, the global interrupt enable
bit, EMI, respective TM Interrupt enable bit, and relevant Multi-function Interrupt enable bit, MFnE,
must first be set. When the interrupt is enabled, the stack is not full and a TM comparator match
situation occurs, a subroutine call to the relevant Multi-function Interrupt vector locations, will take
place. When the TM interrupt is serviced, the EMI bit will be automatically cleared to disable other
interrupts, however only the related MFnF flag will be automatically cleared. As the TM interrupt
request flags will not be automatically cleared, they have to be cleared by the application program.
Rev. 1.00
95
March 24, 2020

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Table of Contents