Skip to main content
Associate III
August 2, 2022
Question

Calculating faster

  • August 2, 2022
  • 1 reply
  • 962 views

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

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    August 2, 2022

    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 VenmoUp vote any posts that you find helpful, it shows what's working..