With the AVR-based Arduino boards, doing an input capture in a timer/counter (to time stamp a signal edge) was very simple, although not supported in the Arduino library. It’s just three instructions to completely configure. With the SAMD21 it becomes a major programming effort to get an external signal to the timer/counter. So 14 instructions. …
Month: January 2023
The Arduino documentation states that the maximum resolution of the PWM analogWrite (not the DAC analogWrite) is 12 bits. However the SAMD21 has 16-bit timer/counters and the actual resolution is 16 bits. So you can call analogWriteResolution(16) successfully. Because of the high resolution, the PWM frequency is a fairly low 732Hz, being 48MHz/65536. If the …