hey there, as I'm moving on with the SAMD21 I got confused with the clocks after reading the manual's chapters on PM, SYSCTRL and GCLK. Long story short, I configured my SAMD21 to run at 48 MHz, and I can see a 48Mhz signal on GLOCK_IO0. In the while loop I let the chip toggle a pin. The pin toggles with a frequency 4 MHz, which corresponds to the frequency of OC8M. The question is, is the gpio realy that slow, or am I feeding the wrong source clock to the gpio. I checked the prescalers and everything is set for maximum frequency.
Joined: Sun. Jun 11, 2017
Posts: 26 View posts
Last Edited: Sun. Nov 12, 2017 - 01:43 PM