
STKS A96T418GDN Shield Board quick Guide
Function description (Using Touch library)
21
4.1.1.2
#define TOUCH_CLK_VAL [n]
━
Touch sensing clock divide select.
━
Default setting : TOUCH_FREQ_4M (0x02)
Figure 19. Touch clock setting value (in touch_lib.h)
4.1.1.3
#define TOUCH_CLK_OFFSET_VAL [n]
━
Basically, the touch sensor performs touch sensing twice at two frequencies.
Set the offset between the two touch frequencies with the value of
"TOUCH_CLK_OFFSET_VAL".
━
Setting range [0H ~ 3FH]
━
Frequency calculation formula
If (20H + TOUCH_CLK_OFFSET_VAL) < 40H
: 16MHz(Touch Frequency) *(1+(TOUCH_CLK_OFFSET_VAL*0.75%))
If (20H + TOUCH_CLK_OFFSET_VAL) >= 40H
: 16MHz(Touch Frequency) *(1+(TOUCH_CLK_OFFSET_VAL-40H)*0.7%))
━
Default setting : 4H (4.12Mhz)
: 4MHz *(1+((4H)*0.75%)) = 4.12Mhz, When TOUCH_CLOCK_VAL is TOUCH_FREQ_4M
: Freq 0 : 4.12Mhz, Freq 1 : 4Mhz