Hi, I have a problem with setting etpu about mpc5777c.
The etpu pin setting for A,B,C about Top and Bottom is gpio 115,116,117,118,119,124.
Etpu pwm made with mcal doesn't come out, so I'm trying to randomly make two pwm master channels and output them, but I'm not sure how to configure them, so I'm asking for help.
The 5777c etpu pin setting is shown in the following figure. As far as I know, a,b,ctop,bottom should act as complementary after allocating one pwm master channel of etpu Think.
But the pwm output didn't come out, so I arbitrarily modified the code to separate and output top and bottom.
I'm trying to output the duty ratio to be deformed for the Vref output, but if I do this, it only comes out to 82V, not 92V.
So, the conclusion is that when using one PWM master channel and complementary operation, I want to set pwm output and PWM master channel to top and bottom single output, and then set etpu as same as output, so I want to get help.
Hello,
not sure if you have performed all the steps needed to get the eTPU PWMM funciton up and running. I have noticed one thing in your channel assignment - for phase C your configuration of base and complementary channels is not correct, complementary channel always have to be base channel +1. Here is what you need to configure with examples:
1. perform the eTPU PWMM defines in etpu_gct.h:
2. perform function configuration in etpu_gct.c
3. Get the eTPU PWMM function running by calling the initialization and start routines in the main function. You can then perform the update of the duty cycles by changing pwmm_inputs structure values in endless loop for example (below is just example, adjust that to your application)
Hello,
Could you explain the issue more closely? Are you using any configuration tool? Any drivers? Or the code is written by you?
Which version of SW?
From the information you have provided I am not able to help you.
Furthermore the functions of SIU is explained in Chapter 8\ System Integration Unit (SIU, SIU_B) reference manual and its attached IO spreadsheet.
Best regards,
Peter