Tool/software: Code Composer Studio
Dear All,
My application has a pwm cycle and within the pwm cycle, there is a timer interrupt that creates 5 slots. The pwm interrupt triggers the timer interrupt. After that, the reloaded 3 times to create the 5 slots. En each slot a high priority code is executed (this code needs may need between 50 % and 80 % of the slot time).
I need to add supervisor to monitor what is the time necessary for the execution of the code inside each time slot. Additionally, if an overlap occurs to the next cycle, an exception should be triggered.
To implement this, it will be good to have some cpu time counter tick, which is not available in the 28337D. All timers are in use. There is other alternative to use a dummy pwm in a up or down count and then adjust some trigger condition.
Your comments are welcome about how to implement this supervisor. Or some hints about how to implement an interruptless timetick counter that can be used for this purpose?
Best regards,
Oscar