
Rev. 1.20
106
�an�a�� 2�� 201�
Rev. 1.20
107
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Touch Key Interrupt
The touch key only has single interrupt, when the time slot counter in all the touch key modules or
in the touch key module 0 overflows, an actual
t
ouch key interrupt will take place. The touch keys
mentioned here are the keys which are enabled. The 16-bit C/F counter, 16-bit counter, 5-bit time
slot counter and 8-bit time slot counter in all modules will be automatically cleared.
The TKCFOV flag, which is the 16-bit C/F counter overflow flag will go high when any of the
Touch Key Module 16-bit C/F counter overflows. As this flag will not be automatically cleared, it
has to be cleared by the application program.
Module 0 only contains one 16-bit counter
.
The TK16OV flag, which is the 16-bit counter overflow
flag, will go high when the 16-bit counter overflows. As this flag will not be automatically cleared,
it has to be cleared by the application program. More details regarding the touch key interrupt is
located in the interrupt section of the datasheet.
Programming Considerations
After the relevant registers are setup, the touch key detection process is initiated the changing the
TK
ST bit from low to high. This will enable and synchronise all relevant oscillators. The
TK
RCOV
flag, which is the time slot counter flag will go high and remain high until the counter overflows.
When this happens an interrupt signal will be generated.
When the external touch key size and layout are defined, their related capacitances will then
determine the sensor oscillator frequency.
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...