Rev. 1.00
74
March 24, 2020
Rev. 1.00
75
March 24, 2020
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
BS83A04C
4-Key Enhanced Touch I/O Flash MCU
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.
Auto Scan Mode
There are three scan modes contained for the touch key function. The auto scan mode, the periodic
auto scan mode and the manual scan mode are selected using the TKMOD1~TKMOD0 bits in the
TKC0 register. The auto scan mode can minisize the load of the application program and improve
the touch key scan operation performance. When the TKMOD1~TKMOD0 bits are set to 00,
the auto scan mode is selcted to scan the module keys in a specific sequence determined by the
M0SK3[1:0]~M0SK0[1:0] bits in the TKM0C2 register. The TSC bit in the TKC2 register is used to
configure time slot.
TKST
Module 0
Time slot 0
Time slot 1
Time slot 2
Time slot 3
TKBUSY
TKRCOV
Clear to zero
by software
Time slot 1
Time slot 2
Time slot 3
Touch Key Data
Memory Access
: Set Touch Key interrupt request flag
: Read 2N bytes from Touch Key Data Memory to TKM0ROH/TKM0ROL registers
: Write 2N bytes from TKM016DH/TKM016DL registers to Touch Key Data Memory
Key Auto Scan Cycle
Time slot 0
Touch Key Auto Scan Mode Timing Diagram – TSC=0