Other Parts Discussed in Thread: C2000WARE
Hello Nirav ,
i am talking about this case , i want to test this case :
so i have configured this as mentioned
But i want to test complete loss in this case is it possible way ?
Thanks
Ushma Cholera
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.
Hello Nirav ,
i am talking about this case , i want to test this case :
so i have configured this as mentioned
But i want to test complete loss in this case is it possible way ?
Thanks
Ushma Cholera
Hi Ushma,
Yes it is possible.
Best Regards,
Nirav
Hello Nirav,
Could you tell me how to do the test for it ?
maybe any sample example .
Thanks
Ushma cholera
Hi Ushma,
We do not have sample example in C2000Ware at this point, but we plan to add it in future. You can reference below example which uses MCD to detect a failure, you will have to modify it based on the steps listed in the TRM to use PLL Ref. Clock lost circuit.
C:\ti\c2000\C2000Ware_3_04_00_00\driverlib\f28002x\examples\sysctl\sysctl_ex1_missing_clock_detection.c
Best Regards,
Nirav
hello Nirav ,
i followed the steps what i dotn get is this function:
SysCtl_disconnectMCDClockSource(); set the OSCOFF(to falsely inject the error) but it is for MCD module , how to do this in the above mentioned case
in TRM this part doesnt show how to inject the error
Thanks
SysCtl_disconnectMCDClockSource() function disconnects OSCCLK from MCD, but this OSCCLK also goes to PLL and other places. So in order to simulate fail condition instead of physically grounding the clock, in this example it disconnects / turns off the clock.
If you are physically going to ground the clock source than you dont need to execute this function.
Best Regards,
Nirav
Hello Nirav,
I have tried with this MCD module and it gives me NMI Interrupt then i have disable MCD and enable PLL refrence clock loss detection and then used this OSCOFF it doesnt give NMI Interrupt , it alos says here that connect and disconnect to MCD module , it looks like it is specific to MCD module .
Can you please try this :
OSCOFF bit to set and try with PLL refrence clock loss detction and MCD off it doesnt give NMI interrupt
If you are using OSCCLK=INTOSC2/XTAL, you do not need to disable MCD.
Why do you need to set OSCOFF bit?
Best Regards,
Nirav
Hello Nirav ,
yes i am using INTOSC2 and i am using the secod option to detect the complete loss of clock.
and i followed this steps to configure it
Now i want to test if this works so to test i want your suggestion as setting this bit OSCOFF doesnt not help .
could you please let me know how can i physically ground the clock or set other bit to test this configuration .
Thanks
If you are using INTOSC2, then there is no way to force a failure. But in order to test the PLL Reference Clock Detection logic you can use XTAL as OSCCLKSRC, and force a failure by setting XTALCR.OSOFF=1