MC56F82748 has CLKO0 output pin for testing clock . And how do I implement this function?
Solved! Go to Solution.
Hi, Zhang,
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.
BR
XiangJun Rong
Hi, HZ,
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
SIM_PCE0|=1<<4;
2)pin assignment for CLKO0
set the peripheral register so that the pin of GPIOC2 is set up as peripheral
GPIOC_PER|=1<<2;
select the pin
SIM_GPSCL|=3<<4; //set the C2 bits
3)enable CLKO0 clock
SIM_CLKOUT=0xE000;
The SYS_CLK/128 will be outputted from CLKO0 pin or GPIOC2 pin.
Hope it can help you
BR
XiangJun Rong
Thank you for your professional answer.
According to your configuration , GPIOC2 pin wave , Is the GPIOC2 wave right ?
Hi, Zhang,
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.
BR
XiangJun Rong