Go Down

Topic: Changing Arduino Zero PWM Frequency (Read 69592 times) previous topic - next topic

Nilab

Thanx MartinL
But i have another question
Arduino Due have  simple interrrupt config by timer

Code: [Select]

Timer3.attachInterrupt(myHandler).setFrequency(10000).start();


How do that? in Zero ?

MartinL

#226
Jun 26, 2019, 08:59 am Last Edit: Jun 26, 2019, 09:00 am by MartinL
Hi Nilab,

Here's a link to an explanation of how to configure the TCC timer to handle interrupts, the description is on post #20: https://forum.arduino.cc/index.php?topic=589655.15.

This disscussion is for PWM generation on the SAMD51 microcontroller, but the TCC interrupt code on the SAMD21 is identical.

Go Up