Tool/software: Code Composer Studio
XN after PID calculate , we get YN . Can we limte the YN value before get YN value ?
Because in fast interrupt of HSFB :
vloop_filter = (signed int) (Filter0Regs.FILTERYNREAD.bit.YN);
iloop_filter = (signed int) (Filter1Regs.FILTERYNREAD.bit.YN);
I find YN0 value is higher than YN1 value , so I want to limte the max of YN .Is that right ?