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.
Tool/software:
Hi Team,
I test the program on F2800137, it worked well. But when the code run on F2800132(because small Flash, need open optimization). It very strange:
PWM_value should be equal 50, but equal 3. I can't why cause this, open optimization will cause wrong ?
Best Regards,
Zane
Hi Zane,
Can you try splitting up the operations to different lines of code so you can step through and see which operation is going wrong? Also just to verify, the PWM_value remains at 3 when you step over it, correct?
Best Regards,
Delaney
Hi Delaney,
I think I find the root of this issue. It should use ((100000000.0/capCountArr[3])+0.5) rather than ((100000000/capCountArr[3])+0.5) .
Best Regards,
Zane