Associate III
Jun 29, 2021 3:09 PM UTC
Question
Touch Sensing Controller - Rising/Falling edge detection on CapTouch Button
- 1 reply
- 1468 views
I am using a STM32WB55xx controller for my project. I am trying to implement the capacitive touch behavior to detect button press on rising edge and button release on falling edge (please see document attached for details)
Q1. Will the Touch Sensing Controller (TSC) peripheral support this behavior ?
Q2. Can I use TSC in interrupt mode for this? If yes, which callback ID should I be using from the following:
typedef enum
{
HAL_TSC_CONV_COMPLETE_CB_ID = 0x00UL, /*!< TSC Conversion completed callback ID */
HAL_TSC_ERROR_CB_ID = 0x01UL, /*!< TSC Error callback ID */
HAL_TSC_MSPINIT_CB_ID = 0x02UL, /*!< TSC Msp Init callback ID */
HAL_TSC_MSPDEINIT_CB_ID = 0x03UL /*!< TSC Msp DeInit callback ID */
} HAL_TSC_CallbackIDTypeDef;Thank you,
Arshiya Tabassum
