Hi all!
I'm currently building a basebord for the 28335 Control Card.
I'm accessing an ADC, and a DAC throug the McBSP in SPI mode.
As I need to get an exact 6kHz cyclic frequency, I need to change the crystal, because the 6kHz can't be realised with the 20MHz crystal.
As even a 30MHz crystal should be possible with this DSC their shouldn't be a problem with exchanging the crystal.
Unfortunatly the code doesn't work any more after changing the crystal. (It worked with the 20MHz crystal and 2kHz cyclic frequency).
My settings for the PLL are the same as for the 20MHz crystal x10 /2 (20MHz * 10/2 = 100MHz, 24MHz *10/2 = 120MHz)
I've built my code upon the existing example project for the McBSP inside the sprc530 - C2833xC2823x CC++ Header Files and Peripheral v1.2.
I've adapted every occasion of the 150MHz, and 100MHz define in the code order to fit 120MHz system frequency.
I am using the XDS100 debugger from the experimenters kit, and it even freezes during debugging in step over mode. However it doesn't freeze in single step mode.
Does anyone have an idea what could be wrong?
Is there a special procedure that needs to be taken before setting up the PLL ?
Does the debugger need to be recalibrated or something else?
Are there some settings for the project that need to be changed that I haven't found so far?
I attached the whole project, but the 4 files that I changed compared to the original files are:
McBSP_Test/DSP2833x_common/include/DSP2833x_Examples.h (This file contains the pll settings)
McBSP_Test/DSP2833x_common/source/DSP2833x_Mcbsp.c (This file contains the code for the McBSP)
McBSP_Test\DSP2833x_common\source/DSP2833x_SysCtrl.c (This
file contains minimum waitstates required for the flash operating)
McBSP_Test/Main_C_Code/mcbsp_test/Example_2833xMcBSP_DLB.c (This is the main c file)
Thanks
Markus