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
Auto Scan Mode
There are two scan modes contained for the touch key function. The auto scan mode can minisize
the load of the application programs and improve the touch key scan operation performance. The
auto scan mode and manual scan mode are selected using the TKMOD bit in the TKC0 register.
When the TKMOD bit is set low, the auto scan mode is selcted to scan the keys in each module in a
specific sequence determined by the MnSK3[1:0]~MnSK0[1:0] in the TKMnC2 register.
TKST
Module 0
Time slot 0
Time slot 1
Time slot 2
Time slot 3
Module 1
Time slot 0
Time slot 1
Time slot 2
Time slot 3
Module n
Time slot 0
Time slot 1
Time slot 2
Time slot 3
TKBUSY
TKRCOV
Cleared by software
Time slot 1
Time slot 2
Time slot 3
Time slot 1
Time slot 2
Time slot 3
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 TKMnROH/TKMnROL registers
: Write 2N bytes from TKMn16DH/TKMn16DL registers to Touch Key Data Memory
N = Touch Key Module Number; n = Module Serial Number
Key Auto Scan Cycle
Touch Key Auto Scan Mode Timing Diagram