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.
Dear Experts,
In my project, I want to set the OVM bit of Status Register 0 (ST0) of the 28335 device to ensure that saturation occurs on overflow. However, I am unable to find this register in the 28335 header files that are part of my project.
Any assistance in helping find this will be much appreciated.
Thanks,
Sira
Hi Devin,
Thank you, this is very helpful. A few more questions and comments, just to make sure I have everything down right:
1. It appears that if Optimization is enabled in the project, all bets are off as to whether the compiler will properly use the OVM setting to saturate on overflows in the ACC. If Optimization is Disabled, it should work properly. Correct?
2. The above would probably hold true regardless of the specific mathematical operation e.g. add, sub, divide. Correct?
My plan is to place this setting (asm(" SETC OVM");) in main(), in the initialization code, and my division operations etc. occur much later. My project also has optimization disabled.
Thanks,
Sira