I have a Kinetis KL03Z board. I try to output the 48MHz system clock on a GPIO pin for some other use, but have a hard time finding related information of doing this. Please advise. Thanks.
Hello Eigen,
You can use the CLKOUT pin to output the clock:
For example ,
- you can configure the bus clock to 48MHZ,
- then configure the PTA4 pin to CLKOUT through the register of PORTx_PCRn -> MUX ;
- then configure the CLKOUT pin output BUS clock through
the register of "SIM_SOPT2" -> CLKOUTSEL to " 010 "
Hope it helps
Have a great day,
Alice Yang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------