Hi
A super beginner here, just starting with S32K1 series, and ARM to be honest.
I am trying to make a simple proof of concept, producing a square wave with the following:
for (;;) {
PINS_DRV_SetPins(PTD, 1 << 15U);
PINS_DRV_ClearPins(PTD, 1 << 15U);
}
It works but the "problem" I have is that it's only 1.80MHz, which seems oddly slow when I read that with a 16MHz AVR I should be expecting over 2MHz.
What might I be doing wrong? Or is this the performance to be expected?
If I check CORE_CLK, BUS_CLK and PORTD_CLK with CLOCK_DRV_GetFreq I get 48MHz for all of them. Also the clocks to best of my beginner understanding are configured likewise.
I'm using the internal 48MHz FIRC.