Figure 6. STMStudio outputs
• On software side:
– Relevant information are located in tsl_conf.h and tscl_user.c files.
– Threshold (xx_TH) can be adjust in tsl_conf_tsc.h file.:
See below an example:
#define TSLPRM_TKEY_DETECT_IN_TH (64)
#define TSLPRM_TKEY_DETECT_OUT_TH (60)
#define TSLPRM_TKEY_CALIB_TH (56)
#define TSLPRM_LINROT_DETECT_IN_TH (50)
#define TSLPRM_LINROT_DETECT_OUT_TH (40)
• The TSL api, tsl_user_SetThresholds, located in tsl_user.c allows to adjust each channel independently. See
below an example:
void tsl_user_SetThresholds(void)
{
/* USER CODE BEGIN Tsl_user_SetThresholds */
/* Example: Decrease the Detect thresholds for the TKEY 0*/
MyTKeys_Param[0].DetectInTh -= 10;
MyTKeys_Param[0].DetectOutTh -= 10;
/* USER CODE END Tsl_user_SetThresholds */
}
Table 3. Signal threshold usage documentation gives a list of documents containing information about the signal
threshold usage.
AN5105
Signal threshold
AN5105 - Rev 1
page 8/52