HI there,
I am having trouble setting the clock rate in my program. Im using the TM4C1233H6PM micro.
PLL clock = 400Mhz, Main oscillator = 16Mhz , Desired Clock rate= 6Mhz or above
SysCtlClockSet(SYSCTL_SYSDIV_4| SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |SYSCTL_OSC_MAIN)
I have found the above code online, which sets the clock to 50Mhz. I dont understand how this calculation has been made? In the sysctl.h it says that processor clock is osc/pll /4, but when I do this calculation i get a decimal value. (16e6/400e6/4 = 0.01??)
Can someone please explain me how clock speed is calculated using PLL,Divider, and Xtal?
Thank you in advance