cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating faster

DNewm.1
Associate III

Hello,

I'm working with spc560p and I want to calculate my code my code more faster as usual. I Impelement PIT DRIVER too for other use of my mcu. Is there any method to calculating faster?

Thanks for your attention

1 REPLY 1

Reduce the complexity of the math.

Look for common computations, or areas where you repetitively compute the same intermediate values.

Cache prior solutions or computations.

Perhaps use tables for long and complex computations that have a known range of usage or a common subset which can be readily optimized for and do the full computation for those outside that.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..