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.

UCB0BRO setting cot consitant with calculation



Hi,

I am using the  USBHAL_initClocks(mclkfreq) function for the clock,

in case i put the figure for mclkfreq as 8000000 and I put the UCB0BRO as 8 I get the SCLK frequency as 1 MHz - correct as per the calculation but when I put the mclkfreq value as 24000000 and put the UCB0BR0 as 24 I get the SCLK frequency as 500 KHz ( half of the expected value) I am not able to fihure out why is this happening. 

Could some one please explain me the logic of this variation?

Regards

Viney Chaddha

**Attention** This is a public forum