2019-07-15 12:33 AM
I tried to implement 7 touch buttons on a STM32L476, 3 on IO2,3 of group 1, 3 on IO 2,3 and 4 on group 2 and 1 on io2 of group 3. Samping caps are always on IO1 of the respective group.
As I wanted to process the buttons all at the same time, I created 1 bank. I then have the effect that all buttons on the same group seem to react on any touch of the 3. So i could only detect 3 out of 7 buttons really, 1 on each group.
I then created 7 banks, each with 1 button. And then it does work well.
So my first question is, as there was no example project with more than 1 button, has the software really been validated on the STM32L4? Because I think this is a bug.
I could combine 6 of the buttons in a rotary or linear touch sensor, but there was no such example for the STM32L4 in the STMCube firmware. Is this still to come? Should I look at other microcontroller families and copy from there?
2019-07-18 01:17 AM
Regarding acquisition and group:
Regarding wheel or rotary
I will recommend to add an extra group dedicated to shield.
This picture shows TSC, group, bank, acquisition dependencies:
You can get deeper information on AN5105.
Rgds