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.

How to decrease the interrupt context switching time in C code for TMS320F28027 ? CCS version 6.0.1

Other Parts Discussed in Thread: TMS320F28027

How to decrease the interrupt context switching time in C code for TMS320F28027 ? CCS version 6.0.1

  • Can you be more specific? What kind of interrupt that you mean?
  • Consider a PWM counter in UP-Mode and interrupt configured when PWM counter = PERIOD. Assuming that there are no other interrupts, my code length in the interrupt service routine is limited by the PWM counter's PERIOD value and interrupt context switching time. Considering that the PERIOD value is fixed, I want to increase my code in the ISR by decreasing the interrupt context switching time.

    The whole code is in C language. Does the c2000 compiler provide options for optimising the context switching? Is there any other way that I can reduce context switching time?
  • How about using the optimization setting in Project Properties? Do you think it will help?

    Best regards,

    Maria

  • Hi Maria. Thanks a lot! The suggestions that you made have decreased both code execution time and interrupt context switching time. However I am interested in knowing what is the down side of these optimisations.

    I have made a new post regarding this aspect. The link is
    http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/389923

    Best Regards,
    M R
  • Glad to know!
    And seems your other thread has been answered too.
    Cheers!

    Best regards,
    Maria