mcu program running speed optimization

The test found that the accumulation of more than 1,000 data is almost 1ms.

The test found that every time there is a jump, there are too many jumps, try to write once in the loop, so that there are half fewer jumps, and the test finds that the time is reduced a lot.

m0 does not have a division instruction without a floating-point unit.

Guess you like

Origin blog.csdn.net/C_ROOKIES/article/details/108574794