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.

TMS320F2800155: Software Test of Missing Clock Detect Functionality

Part Number: TMS320F2800155
Other Parts Discussed in Thread: C2000WARE

Hello,

I am trying to impelement the Software Test of Missing Clock Detect Functionality and I am successully able to enable the mechanism"Making MCLKOFF=0 and OSCOFF=1"

and see the interrupt is fired, 

My question is in proceedures required from my side after that. 

I see in the example to make the following: 

    1- Configure oscillator source to INTOSC1:
    I do that by setting OSCCLKSRCSEL = 0x2; -> in this step I watch on register CLKSRCCTL1, OSCCLKSRCSEL but those bits are not loaded with 0x2 they are loaded with 0x1
    2- Re-connect missing clock detection to clock source to stop simulating clock failure:
   I do that by setting OSCOFF= 0x0;
    3- Reset the missing clock detection logic after clock failure:
   I do that by setting MCLKCLR = 1;
    4- Set up PLL control and clock dividers using the original clock source-> In this step I will need to implement it manually"Not using the call to function SysCtl_setClock" so What I need know is to know what are the basic steps I should follow to fulfill the mentioned steps inside SysCtl_setClock function as it is complicated somehow.
  • Hello Amr,

    There is a software example in c2000ware: sysctl_ex1_missing_clock_detection that you can refer to directly.

    Have you tried that ?

    Not using the call to function SysCtl_setClock

    Why not use function call ?

    If you want to do it manually its essential that you follow the steps highlighted in the function itself and optionally you can also refer to Technical reference manual on steps for how to configure PLL source clock.

    Thanks