Trying to understand how the microcontroller is being clocked, sorry, the datasheet isn't clear to me. Right now I'm setting the LPUART baud rate by measuring bit duration on my scope but would like to document the precise calculations to derive the register settings.
I am working with a MK66FN2M0VLQ18 on a RDDRONE-FMUK66 running PX4. It appears that during initialization the PLL is selected and I estimate the CPU is clocking at about 100 MHz, but again this is measured on a scope.
The schematic shows a 32KHz crystal on board but perhaps it's using the internal IRC48M 48 MHz source?
Thanks!
Hi @C0490FDB ,
Please see this picture. If input internal or external 32k osc clock, MCG can use FLL to boost up to 96M clock.
Regards,
Jing
Thank you, this diagram is very helpful.
That looks helpful as well, thanks!
I set the peripheral clock source to the internal 48 MHz source and the baud rate settings make sense now. I'm still unclear how to derive the processor speed using the PLL or not.