EasyManuals Logo

ST STM32F0 Series Application Note

ST STM32F0 Series
52 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #8 background imageLoading...
Page #8 background image
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

Table of Contents

Other manuals for ST STM32F0 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F0 Series and is the answer not in the manual?

ST STM32F0 Series Specifications

General IconGeneral
BrandST
ModelSTM32F0 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals