Hello All
I am trying to implement Output Override and Fault protection as shown below in the Diagram (Red Rectangle).
I want to have my PWM being disabled without any Software logic if I receive a fault from Motor Driver IC. How can I configure the PWM blocks for this purpose.
Thank you for the help.
Hello abhishek.kumar@chassisbrakes.com
Unfortunately, the MBDT Blocks for MPC574xP does not currently support the hardware FlexPWM Fault Mechanism configuration.
However, the fault mechanism can be enabled by injecting custom code in the model by using Simulink Custom Code blocks. Those blocks can be found in the Simulink Coder (see the image attached), from the Simulink library. The System Initialize block will inject the code in the generated initialize function and the System Outputs blocks will put your code in the step function.
Now, for enabling the fault mechanism, you need to:
To have an idea on how the bits are set by the MBDT, the FlexPWM_pnt_library.c file can be analysed in any generated code folder of a model that uses the PWM blocks.
Hope this helps you!
Best regards,
Marius