C2000 BLDC Hall Sensor Interrupts

There are a lot of very sophisticated examples in simulink on how to use the C2000 with the embedded coder e.g. sensorless FOC etc.
However, I can not find a simple example how to controll a BLDC with hall sensors.
My problem:
Every hall sensor generates an interrupt. Within every interrupt the three half bridges change to the next step. For this the ePWM of every half bridge modules need to be updates. However, it is not allowed to use more than one ePWM for the similar output. How to solve this problem?
Or in general: How can independend interrupts change the same ePWM module?
Within C-Code I would write a separate function which is called within the interrupts.
Or in general: Is it possible to call a function block out of different interrupt functions?
Regards,
Heinz

Answers (0)

Products

Release

R2020b

Asked:

on 11 Dec 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!