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.

Compiler/TMS320F28335: 28335

Part Number: TMS320F28335

Tool/software: TI C/C++ Compiler

Hie,

I am working with 28335 with two interrupts. One interrupts is EPWM (at 2000hz) and other is a CPU timer (at 100kHz). The problem is that the code execution time of the EPWM interrupt itself is about 10us. Therefore, the CPU time interrupt is not generating an interrupt at regular intervals.

Please let me known how to reduce the time of the execution.

Also ,I am using the fast FPU library instead of the RTS library.

Thanks in advance.

  • Nikhil,

    You will need to nest the CPU timer interrupt. As you may already know, when an interrupt occurs the global interrupt mask (INTM) bit is disabled. For nesting interrupts you will need to manage the nesting your ISR. This will consist of enabling the appropriate interrupts and disabling the other interrupts by using the interrupt enable register (IER) bits and the PIE interrupt enable register (PIEIER) bits. Finally, you will need to re-enable the INTM.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken
  • Nikhil,

    I haven’t heard from you for a while, so I’m assuming you were able to resolve your issue. If this isn’t the case, please reject this resolution or reply to this thread. If this thread locks, please make a new thread describing the current status of your issue.

    - Ken