Rev. 1.60
198
August 20, 2019
Rev. 1.60
199
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
Touch Key Scan Operation Flow Chart
Start
Write Ref. OSC Capacitor
to TKMnROH/TKMnROL
Touch Key Manual Scan Operation Start
Set Start bit TKST 0
1
Busy flag TKBUSY=1
All Time Slot
Counter overflow ?
TKRCOV=0
Initiate Time Slot &
16-bit C/F Counter
All Time Slot &
16-bit C/F Counter
Start to count
Time Slot &
16-bit C/F Counter
Keep counting
TKRCOV=1
Touch key busy flag
TKBUSY=0
Generate Interrupt
request flag
Read C/F counter from
TKMn16DH/TKMn16DL
Touch key scan end
Set TKST bit 1
0
End
Touch Key Manual Scan Mode Flow Chart – TKMOD=1, TSCS=0