I am using STM8S208MBT6B MCU and the STM8S Touch Sense Library. The Touch Sense Library use TIM3 for VIH/VIL measurement and TIM4 as a generic timebase for the state machine. When I try to use TIM1 to generate a 1ms interrupt, I notice that interrupt is not correct. It always delay a period of time. When I remove the Touch Sense code, the interrupt is accurate again. So, could anyone help and come accros the same problem? Should I still go for STM8S Touch Sense Library in some Touch Sense Projects?
Thank you very much!