How to use ePWM7 to ePWM12 of F28379D using Matlab Simulink
21 views (last 30 days)
Show older comments
Hi there,
My project requires 12 PWM signals. I've successfully generated PWM signals from ePWM1 to ePWM6 using Simulink and verified them on an oscilloscope using the external pins (P0-P5 and P6-P11) as per the pinout diagram.

I have two question,
Q1) I am able to configure, build and load remaining ePWM blocks. How can I route the output signals from (ePWM7-ePWM12) to external pins on the device?.(As there are not specified in pinout diagram)
Q2) Is it possible to disable the DAC feature of ePWM 7 & ePWM8?. I need unfilitered 12 PWM singals for my application.
1 Comment
Hassan Saleem
on 11 Jan 2025
i am stuck with same problem. i need to use 8 PWMs while i have used 6 just like you. please share if you find any solution.
best regards
Accepted Answer
Kothuri
on 27 Jan 2025
Hi Tharun,
The F28379D supports 12 ePWM modules which are not directly available from the ePWM pins to external connectors. But, you can route these signals by remapping them using the GPIO MUX functionality.
- You can refer to the page 40 in the below link to determine which GPIOs can be configured as outputs for ePWM7 to ePWM12.
- Use the GPIO Control Registers (GPxMUX1/GPxMUX2) to map ePWM outputs to available GPIO pins. This configuration can be set in Simulink using the appropriate GPIO blocks.
- Use "GPIO MUX Selection" in the GPIO block to assign the available GPIO pins to ePWM signals.
- ePWM7 and ePWM8 are shared with DAC1 and DAC2 (pins P0 and P1). You can disable the DAC functionality by ensuring the corresponding DAC blocks in Simulink or code are not configured.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!