EasyManua.ls Logo

Holtek BS66F340 - Page 189

Default Icon
242 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Rev. 1.60 188 August 20, 2019 Rev. 1.60 189 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
This bit can be accessed by application programs. When this bit is set by touch key
time slot counter overow, the corrrespondingn touch key interrupt request ag will be
set. However, if this bit is set by application programs, the touch key interrupt request
ag will not be affected.
In auto scan mode, if the time slot counter overflows but the touch key auto scan
operation is not completed, the TKRCOV bit will not be set. At this time, the touch
key module n 16-bit C/F counter, touch key function 16-bit counter and 5-bit time
slot unit period counter will be automatically cleared but the 8-bit time slot counter
will be reloaded from the 8-bit time slot counter preload register. When the touch
key auto scan operation is completed, the TKRCOV bit and the Touch Key Interrupt
request flag, TKMF, will be set and all modules key and reference oscillators will
automatically stop. The touch key modules 16-bit C/F counter, touch key function
16-bit counter, 5-bit time slot unit period counter and 8-bit time slot counter will be
automatically switched off.
In manual scan mode, if the time slot counter overflows, the TKRCOV bit and the
Touch Key Interrupt request ag, TKMF, will be set and all modules key and reference
oscillators will automatically stop. The touch key module 16-bit C/F counter, touch
key function 16-bit counter, 5-bit time slot unit period counter and 8-bit time slot
counter will be automatically switched off.
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 overow ag
0: No overow occurs
1: Overow occurs
This bit is set by touch key module 16-bit C/F counter overow and must be cleared to
0 by application programs.
Bit 3 TK16OV: Touch key function 16-bit counter overow ag
0: No overow occurs
1: Overow occurs
This bit is set by touch key function 16-bit counter overow 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
congured before the scan operation begins and the touch key module 16-bit C/F counter
value should be read after the scan operation nishes 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 specic
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 ag
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 overows.

Table of Contents

Related product manuals