How can I obtain 12epwm signals from F28379D Launchpad?

22 views (last 30 days)
I want to see 12 epwm signals on the oscilloscope at the same time using TMS320F28379D launcpad, but Matlab/simulink-2022b does not allow me to use the same epwm block twice. I tried to set epwmA and epwmB using epwm1 block. According to the datasheet, I should have seen pwm from pins 39 and 40. However, I couldn't see it. I would be very happy if you could help.

Answers (1)

Vishwa
Vishwa on 16 May 2023
Hi,
You should certainly be able to use multiple ePWM blocks, just make sure that each block is configured to a different ePWM module. TMS320F28379D launchpad has 12 ePWM modules, depending on your requirements you can use either all 12 ePWM blocks or 6 ePWM blocks. (1 block can generate 2 complementary pulses)
GPIO Pins in which you prefer to see the output can be configured from “Model Settings > Hardware Implementation”
For detail description of ePWM block in Simulink please refer the following documentation: Generate enhanced Pulse Width Modulated (ePWM) waveforms - Simulink - MathWorks India
Hope it helps!
Regards,
Vishwa
  6 Comments
Merve Aydin
Merve Aydin on 29 May 2023
Hello again Vishwa,
I have another question, I tried obtaining SPWM with the blocks you sent me last time. I want to change the ePWM trigger as it is in the attached file I'm sending. I couldn't find where to change the form of the trigger signal inside the block. Do you have any suggestions?
Thank you for your time,
Best regards...

Sign in to comment.

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!