
Rev. 1.60
194
August 20, 2019
Rev. 1.60
195
August 20, 2019
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
BS66F340/BS66F350/BS66F360/BS66F370
Touch A/D Flash MCU with LED Driver
TKST
MnKOEN
MnROEN
KEY OSC CLK
Reference OSC CLK
f
CFTMCK
Enable
f
CFTMCK
(MnDFEN=0)
f
CFTMCK
(MnDFEN=0)
TKBUSY
TKRCOV
Hardware set to
"
0
"
Set Touch Key interrupt request flag
Touch Key Mamual Scan Mode Timing Diagram
Each touch key module contains four touch key inputs which are shared logical I/O pins, and
the desired function is selected using register bits. Each touch key has its own independent sense
oscillator. There are therefore four sense oscillators within each touch key module.
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 interrupt signal will be
generated in the manual scan mode.
Using the TSCS bit in the TKC1 register can select the module 0 time slot counter as the time
slot counter for all modules. All modules use the same started signal, TKST, in the TKC0 register.
The touch key module 16-bit C/F counter, 16-bit counter, 5-bit time slot unit period counter in
all modules 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 all modules 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
SYS
/4 which is selected using the
MnTSS bit in the TKMnC1 register. The reference oscillator and key oscillator will be enabled by
setting the MnROEN bit and MnKOEN bits in the TKMnC1 register.
When the time slot counter in all the touch key modules or in the touch key module 0 overflows,
an actual touch key interrupt will take place. The touch keys mentioned here are the keys which are
enabled.
Each touch key module consists of four touch keys, KEY1 ~ KEY4 are contained in module 0,
KEY5 ~ KEY8 are contained in module 1, KEY9 ~ KEY12 are contained in module 3, etc. Each
touch key module has an identical structure.