How to Configure Timers for a Touch Project in MPLAB® Code Configurator (MCC) Melody
8-bit ATtiny, AVRDA Devices
Include RTC from Device Resources.
Enable Overflow Interrupt.
8-bit PIC® Devices
The timer needs to be configured manually, and it must be selected in Touch Configurator.
Include the required timer from Device Resources > Drivers > Timer (for example, TMR0).
Select the same timer in Project Graph by clicking the touch_timer block and select the required timer from the drop down.
And configure the TMR as shown. Clock Source for Timer peripheral should be LFINTOSC

ATmega328PB, ATmega324PB Devices
The timer can be manually configured from Touch Configurator.
Include the required timer from Device Resources > Drivers (for example, TC0).
Include the touch_timer_handler in ISR.
dsPIC® Digital Signal Controllers (DSCs)
The timer needs to be configured manually, and it must be selected in Touch Configurator.
In the Configure tab, ensure the required partner pin is selected.
For Timer1, select the required timer under Dependency Selector.