The processor I use is BS83B08-3. Our main goal in this processor is to operate a touch switch. We want to use all of its peripherals once and get results. So far, Timer, GPIO, interrupt, eeprom is over. Our main goal is to run the touch key. Frankly, we couldn't do much about it. The capacitance of the pad changes when we touch or approach. That's how it's perceiving. We need to take control of this by measuring the frequency. But we didn't know how to write an algorithm. It will be a long algorithm with timer, interrupt and touch key registers. I'm leaving your datasheet. Please review.
**broken link removed**