Rev. 1.40
��4
De�e��e� 1�� �01�
Rev. 1.40
���
De�e��e� 1�� �01�
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
Bit 5
TKST
: Touch key detection Start control
0: Stopped or no operation
0→1: Start detection
In all modules the touch key module 16-bit C/F counter, touch key function 16-bit
counter and 5-bit time slot unit period counter will automatically be cleared when this
bit is cleared to zero. However, the 8-bit programmable time slot counter will not be
cleared. When this bit is changed from low to high, the touch key module 16-bit C/F
counter, touch key function 16-bit counter, 5-bit time slot unie period counter and 8-bit
time slot counter will be switched on together with the key and reference oscillators to
drive the corresponding counters.
Bit 4
TKCFOV
: Touch key module 16-bit C/F counter overflow flag
0: No overflow occurs
1: Overflow occurs
This bit is set by touch key module 16-bit C/F counter overflow and must be cleared to
0 by application programs.
Bit 3
TK16OV
: Touch key function 16-bit counter overflow flag
0: No overflow occurs
1: Overflow occurs
This bit is set by touch key function 16-bit counter overflow and must be cleared to 0
by application programs.
Bit 2
Unimplemented, read as “0”
Bit 1
TKMOD
: Touch key scan mode select
0: Auto scan mode
1: Manual scan mode
In manual scan mode the reference oscillator capacitor value should be properly
configured before the scan operation begins and the touch key module 16-bit C/F
counter value should be read after the scan operation finishes by application program.
In auto scan mode the data movement which is described above is implemented by
hardware. The individual reference oscillator capacitor value and 16-bit C/F counter
content for all scanned keys will be read from and written into a dedicated Touch
Key Data Memory area. In auto scan mode the keys to be scaned can be arranged in a
specific sequence which is determined by the MnSK3[1:0] ~ MnSK0[1:0] bits in the
TKMnC2 register. The scan operation will not be stopped until all arranged keys are
scanned.
Bit 0
TKBUSY
: Touch key scan operation busy flag
0: Not busy – no scan operation is executed or scan operation is complete
1: Busy – scan operation is executing
This bit indicates whether the touch key scan operation is executing or not. It is set to
1 when the TKST bit is set high to start the scan operation and cleared to 0 when the
touch key time slot counter overflows.