I'm new to ARM M0+ and it's a bit of a learning curve. I'm using the ATSAM C21N18A-ANT based SAM C21N Xplained Pro eval board.
I'd like to generate interrupts at 32.768KHz (to, let's say, toggle a few LEDs). I have configured OSC32KCTRL to operate with an external crystal and can see the operating 32K clock by sending it to a GCLK_IO pin.
The only interrupt sources in OSC32KCTRL are XOSC32KRDY, CLKFAIL and OSC32KRDY. GCLK has no interrupts so I can't use it to generate interrupts with XOSC32K as the source. I'm thinking my only option to connect GCLK to some other peripheral to generate the interrupt. Would that be right? And if so which one?