
Rev. 1.00
562 of 576
January 28, 2022
32-Bit Arm
®
Cortex
®
-M0+ MCU
HT32F54231/HT32F54241/HT32F54243/HT32F54253
28 T
ouch Key
Bits
Field
Descriptions
[1]
TKRCOVF
8-bit Time Slot Counter Overflow Flag
0: No overflow occurs
1: Overflow occurs
Set by hardware when 8-bit Time slot overflows. Reset by software writing 1.
In the manual scan mode, if all module time slot counters are overflow, the TKRCOV
bit and the Touch Key TKRCOV Interrupt request flag, TKRCOVF, will be set and all
modules’ key and reference oscillators will automatically stop. All 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 the auto scan mode, if all module time slot counters are overflow but the touch
key auto scan operation is not completed, the TKRCOV bit will not be set. At this
time, all touch key modules 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
TKRCOV Interrupt request flag, TKRCOVF, will be set and all modules’ key and
reference oscillators will automatically stop. All 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 the periodic auto scan mode, the TKRCOV bit is cleared to zero during the auto
scan operation period. Only at the end of the last scan operation in the Periodic
scan timer, PST, time-out cycle, the 16-bit C/F counter content will be written into
the corresponding touch key data register, and then the TKRCOV bit will be set high
by the hardware circuit. The other actions in this mode are the same as those in the
auto scan mode except the above mentioned.
[0]
TKTHF
Touch Key Threshold Match Interrupt Flag
This bit is set by the hardware when the Touch Key Module 16-bit C/F counter is
less than the lower threshold if MnKmTHS = 0, or larger than the upper threshold if
MnKmTHS = 1. This bit is cleared to 0 by writing 1.