I try to find a reliable and reproducable method to measure the MOCO and SOSC for S3A1 and S3A6. Sadly I can't use the CLKOUT feature or a PWM out via GTIOCA or GTIOCB.
Is there a realiable way over GPIO toggling?
Here is an example project that shows the concept.
It is written for the TB_S3A6.
The GPT interrupt will generate an interrupt that will trigger the DMAC and toggle the Port pin.
Measuring the GPT output…
maybe there exist also some kind of gated counting with one of the timermodules? So that the frequency could be measured by counting timer counts.