Hi,
I am currently working on the code to utilize the DWD feature of the TI RM48 microprocessor but I am not able to get it to work mainly because the time expiration of the DWD happened too fast and I can not slow it down no matter what I tried.
Here are the api function that is available from TI library via Halcogen utility for using this DWD feature of TI RM48 family:
// dwwdInit(Generate_NMI, 4095, Size_100_Percent);
// dwwdInit(Generate_Reset, 100000000, Size_25_Percent);
// dwwdInit(Generate_Reset, 100, Size_100_Percent);
//dwdCounterEnable();
The reason I commented it all out in this post is to show you that I have tried many different options to slow down the time expiration but it all did not work. The results that I have is either the system will reset too fast or the NMI will be invoked too fast that is beyond my control.
I like to do this DWD feature at the 10 second interval window or slower.
My main goal is to have this independent DWD feature of the TI RM48 to watch for my OS running wild to either reset the system or log the information before reset the system when the DWD time get expired on its own if is not serviced properly and so to reset the TI system or to give me the NMI function to get executed of whatever channel ??? (TBD) that I do not know for sure yet and I do not see the sample code for trying it out to verify if this channel is indeed for it.
I am guessing channel 24 of the VIM table based on TI documentation but do not know for sure and have not seen any example to use this channel for the DWD feature when the DWD time expired happened and if the violation of this window occurred without servicing its need.
I am seeking out to the expert for help to use this DWD feature with sample code. I have tried all sample code from Halcogen for the TI RM48 and it does not work the way I want it.
It seemly happened to fast no matter how I want to slow it down.
Please advice.
Thanks,
Kenneth Lai
Biolase, Inc.