Hi guys,
This was our configuration:
// Select 48 MHz FLL from internal 32 kHz
MCG_C4 |= (MCG_C4_DMX32_MASK | MCG_C4_DRST_DRS(1));
MCG_C1 = MCG_C1_IREFS_MASK; // Ensure FLL comes from 32 kHz ref
So basically it should be FEI, Freq engaged internally.
When we setup PTA18 as gpio and ground it, the system clock doesnt change.
When we leave it open, system clock doesnt change.
When we remove muxing of this pin, and any reference in code of this pin, and apply 4 pulses (we put simple switch on this pin), both faster and slower, it also changes system frequency.
We can see status led changed its blinking period (from 1 to 1,4s, we used scope, not arm watch:-) ).
Uart baudrate was setup to 115200, and it changed to 120k, after 4 "pulse" from switch, and after some more it droped to around 83300.
We have much more inputs and outputs, and its all setup the same, it all seamed to be working.
We can see this input pin change value (we have pc app that reads status of all inputs and outputs).
Thank you for helping us!