STM32WB55 TSC is not working
In Group 1 G1_IO4 is a sampling capacitor and G1_IO3 is a sheild and in Group 2 G2_IO2 is sampling capacitor and G2_IO1 is input touch key. In Group 3 G3_IO4 is a sampling capacitor and G3_IO2 is a input touch key. so when i programmed with this configuration it detect touch from the shield not from the touch keys.
My touch key code is this
if(MyTKeys[0].p_Data->StateId == TSL_STATEID_DEB_RELEASE_DETECT)
{
HAL_GPIO_WritePin(LED2_GPIO_Port,LED2_Pin,RESET);
HAL_GPIO_WritePin(LED1_GPIO_Port,LED1_Pin,SET);
}
if(MyTKeysB[1].p_Data->StateId == TSL_STATEID_DEB_RELEASE_DETECT)
{
HAL_GPIO_WritePin(LED2_GPIO_Port,LED2_Pin,SET);
HAL_GPIO_WritePin(LED1_GPIO_Port,LED1_Pin,RESET);
}
Please give me the solution why the touch detect from shield not form Touch keys.