This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28M35H52C: how to get clock frequency information for c28

Part Number: F28M35H52C


Hi,

I am using F28M35 and working with C28x processor in CCS6.0.

How can i findout on which frequency C28 is running? as this information is needed when initializing flash api or configuring timer etc. 

We have library function SysCtlClockGetRamFunc(unsigned long ulClockIn) in sysctl.c for M3 that returns the current M3 clock frequency in Hertz.

Do we have similar function for C28? or how can i extract clock information without hardcoding in the software?

Any help in that regard will be helpful.

Regards

Adnan Akhtar

  • We do not have a similar function for the C28, but all that function is doing is reading the PLL and clock divider configuration registers and calculating what the system clock speed should be based on those settings. You could write something similar for the C28.

    If you want to do an actual measurement, you could configure XCLKOUT to output C28SYSCLK/4 and display it on an oscilloscope to verify the frequency.

    Whitney

  • I wrote similar function but with different addresses to access the PLL and clock divider configuration registers from c28.

    Thanks