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.

C6457 - McBsp clock source configuration

Hello,

I have some doubts about the clock source selection to configure the McBsp Sample rate generator on a C6457 device.

In the datasheet of the device (sprs582b) the PLL1 section shows with the figure 7-12 that SYSCLK5 and SYSCLK6 are routed to McBsp and at page 131 is reported that

"SYSCLK5: 1/6-rate clock (CHIP_CLK6) for other peripherals (PLL controller, PSC, L3 ROM, McBSPs, Timer64s, EMAC, HPI, UTOPIA, I2C, and GPIO).

SYSCLK6: 1/y-rate clock (CHIP_CLKS) for an optional McBSP CLKS module input to drive the clock
generator. The default for this clock is 1/10. This is programmable from /6 to /32, where this clock does not
violate the maximum clock rate of 100 MHz. This clock is also output to the SYSCLKOUT pin."

After reading this I thought that I could use SYSCLK6 (which is programmable while SYSCLK5 has a locked divider) as internal clock for the McBsp sample rate generator. But reading the C6457 McBsp User guide (sprugk8A revised on March 2010) I found the Figure 3 at pag 15 which shows that the internal clock source for the sample rate generator is CPU/4 and in the same document it is also written at pag 18 (par. 4.3 Data clock generation) that:

" The input clock to the sample rate generator, which can be either the internal clock source or a dedicated external clock source (CLKS). The C6457 device uses the CPU/6 clock as the internal clock source to the sample rate generator."

So at this point I am a little confused and I have the following questions

1) Which is the internal clock source for the sample rate generator between SYSCLK5, SYSCLK6 and CPU/4?

2)If possible, how do I select the internal clock source between SYSCLK6 and SYSCLK5?

Thank you for any help!

Alessandro

 

 

 

 

 

  • CLKS is generated by SYSCLK6 and can be used as the input to the McBSP's clocking for sample rate generation.  SYSCLK5 is still driven to McBSP but for internal logic usage - not CLKS and cannot be used to drive the sample rate clock.  If you want the sample rate clock to be SYSCLK/6 rate then you would need to program SYSCLK6 to output SYSCLK/6.  That said, SYSCLK/6 would exceed 100MHz for the slowest device speeds so this isn't feasible.

    The diagram should show CPU/Y as the sample rate generator when coming from CLKS. 

    Best Regards,

    Chad

  • Thank you!

    Alessandro