Hello, We're having some trouble setting up the McBSP clocks with BIOS psp drivers
versions
CCS 5.4
SYS/BIOS 6.35.3.47
EDMA3 2.11.4
BIOSPSP 3.00.01.00
XDC 3.25.2.70
C6748 LCDK (modified gel file to run at 456Mhz, DDR2 at 150Mhz)
We started with the McBSP DLB example, and we've been modifying it for use with an ADS1274 ADC. We've gotten to the point where we've disabled the Tx, and gotten the Rx module to generate a clock and a framesync signal, but we can't seem to figure out how to set the clock speeds correctly. From the alpha code version (C6748 starterware, no RTOS) we know that CLKR should be ~33Mhz, and FSR should be ~124Khz.
The only clock speed references I can find in the McBSP driver are
mcbspSrgParams.srgrInputFreq = 150000000; and
Mcbsp_ClkSetup mcbspClkConfigRx =
{
Mcbsp_FsClkMode_INTERNAL,
96000, /* 96KHz */
Mcbsp_TxRxClkMode_INTERNAL,
Mcbsp_FsPol_ACTIVE_HIGH,
Mcbsp_ClkPol_FALLING_EDGE
};
I can modify the input frequency and the 96000 just fine, but they seem to be dependent on one another, and modifying the 96000 will change the CLKG speed. So... we've found the code to tell the driver what the input clock speed is...how do you tell the driver what you want to output clock speed to be? Previously, I was using the startware to manually set CLKGDIV and FPER.