I am using Atmel start, and are not sure if that was the right decision, but the decision is taken:)
I am trying to make a simple counter to count sysclk tick which roll over on 2^64. I want to count precise the amount of such ticks between lets say two 1PPS pulses.
I have done this with an MEGA256 but does not figure out how to do this on an ATSAML21J18. I am able to do such functionality with systick, unfortunately this one is 24bit and with a clk on 16.384Mhz i will ran into an rollover if the 1PPS is not precises since 24bits gives us 2^24 = 16777216 . Any example or solution on how to do this.
Br Leif G