1.1.9 How to configure timers for touch project in Melody
8-bit ATtiny, AVRDA Devices
Note: Only RTC is supported
CAUTION: Do not change the API
Prefix field
- Include
RTC from Device Resources
- Enable
Overflow Interrupt
8-bit PIC Devices
CAUTION: Do not change the API
Prefix field.
Timer needs to be configured
manually and the timer has to be selected in Touch
Configurator.- Include
required timer from Device Resources →
Drivers - Ex. TMR0
- Select
the same timer in Touch Configurator →
Configure-> Common Parameters-> Timer
Dependency
ATmega328PB, ATmega324PB Devices
CAUTION: Do not change the API
Prefix field
Timer can be manually configured from Touch Configurator.
- Include required timer from Device Resources
→ Drivers - Ex. TC0
- Include the touch_timer_handler in ISR.
dsPIC Devices
CAUTION: Do not change the API
Prefix field
Timer needs to be configured manually and the timer has to be selected in Touch Configurator.
- In Configure → Sensor Parameters →
Check if required Partner pin is
selected.
- In Timer1 → select the required Timer in
Timer Dependency.