
Rev. 1.10
100
March 02, 2020
Rev. 1.10
101
March 02, 2020
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
BS83A02L/BS83B04L
Ultra-Low Power Touch Key Flash MCU
TKST
M0KOEN
M0ROEN
KEY OSC CLK
Reference OSC CLK
f
CFTMCK
Enable
f
CFTMCK
(M0DFEN=0)
f
CFTMCK
(M0DFEN=1)
TKBUSY
TKRCOV
Cleared by
hardware
Set Touch Key TKRCOV
interrupt request flag
8-bit time slot counter overflow time
Touch Key Manual Scan Mode Timing Diagram
The touch key module 0 contains four touch key inputs, namely KEY1~KEY4, which are shared
with logical I/O pins, and the desired function is selected using register bits. The touch key has its
own independent sense oscillator. There are therefore four sense oscillators within the touch key
module 0.
During this reference clock fixed interval, the number of clock cycles generated by the sense
oscillator is measured, and it is this value that is used to determine if a touch action has been made
or not. At the end of the fixed reference clock time interval a Touch Key TKRCOV interrupt signal
will be generated in the manual scan mode.
The touch key module 0 16-bit C/F counter, 16-bit counter, 5-bit time slot unit period counter
in the module will be automatically cleared when the TKST bit is cleared to zero, but the 8-bit
programmable time slot counter will not be cleared. The overflow time is setup by user. When the
TKST bit changes from low to high, the 16-bit C/F counter, 16-bit counter, 5-bit time slot unit period
counter and 8-bit time slot timer counter will be automatically switched on.
The key oscillator and reference oscillator in the module 0 will be automatically stopped and the 16-
bit C/F counter, 16-bit counter, 5-bit time slot unit period counter and 8-bit time slot timer counter
will be automatically switched off when the time slot counter overflows. The clock source for the
time slot counter is sourced from the reference oscillator or f
LIRC
which is selected using the M0TSS
bit in the TKM0C1 register. The reference oscillator and key oscillator will be enabled by setting the
M0ROEN bit and M0KOEN bits in the TKM0C1 register.
When the time slot counter in the touch key module 0 overflows, an actual touch key TKRCOV
interrupt will take place. The touch keys mentioned here are the keys which are enabled.