MC56F82748 has CLKO0 output pin for testing clock . And how do I implement this function?
Regarding your question, if you want to have CLKO0 output clock signal, you can follow up the following procedures:
This is the signal multiplexing:
GPIOC2, TXD0, XB_OUT11, XB_IN2, CLKO0
1)enable gated clock
2)pin assignment for CLKO0
set the peripheral register so that the pin of GPIOC2 is set up as peripheral
select the pin
SIM_GPSCL|=3<<4; //set the C2 bits
3)enable CLKO0 clock
The SYS_CLK/128 will be outputted from CLKO0 pin or GPIOC2 pin.
Hope it can help you
Thank you for your professional answer.
According to your configuration , GPIOC2 pin wave , Is the GPIOC2 wave right ?
I suppose you use the TWR-8200 board to have a test, in the case, you have to open the pin1&2 of J4, there is a 10K ohm strong pull-up resistor on the GPIOC2, which distorts the clock waveform I have tested.
Retrieving data ...