C2000 BLDC Hall Sensor Interrupts
Show older comments
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
1 Comment
Venkatesh Chilapur
on 15 Dec 2020
Please create a service request by contacting our support:
Regards,
Venkatesh C
Answers (0)
Categories
Find more on Texas Instruments C2000 Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!