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.

TMS320F28377D: Runtime CMPSS sampling window and threshold adjustment

Part Number: TMS320F28377D
Hi,
I followed the instructions from technical reference manual to initialize the CMPSS module for F28377D. And it works well.
Right now, I would like to adjust the sampling window and threshold during run time. Can I just do the following two lines for CTRIPHFILCTL at runtime?  Do I need to STOP CMPSS before and ENABLE it after? I hope that is not needed.
Fullscreen
1
2
CmpssRegs.CTRIPHFILCTL.bit.SAMPWIN = MY_SAMPWIN;
CmpssRegs.CTRIPHFILCTL.bit.THRESH = MY_THRESH;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Thanks
Fei