Hi Community ,
We are using EVk -MIMXRT 1020 for our application development , We have a requirement to switch 5 mosfets .
I have understood the Reference manual and have generated 5 PWMs
5 PWMs with 50 percent duty cycle and 100KHz frequency .
The requirement is these 5 PWM signals must be phase shifted .
In the reference manual there is no detailed description on how to configure the PWMs so that they can be phase shifted .
Is there any code that is existing , that explains the phase shifted pwms for imxrt 1020 ?
Is there any register in the IMXRT 1020 , with which we can configure phase shift ?
Below is a code that has configuration of 5 PWMs
Pin Number | Pad Number | Signal Name |
---|---|---|
93 | GPIO_AD_BO_15 | PWM2 - B0 |
94 | GPIO_AD_BO_14 | PWM2 - A0 |
95 | GPIO_AD_BO_13 | PWM2 - B1 |
96 | GPIO_AD_BO_12 | PWM2 - A1 |
98 | GPIO_AD_BO_10 | PWM2 - A2 |
Hello Naren,
Regarding your questions please see my comments below.
Is there any code that is existing , that explains the phase shifted pwms for imxrt 1020 ?
Unfortunately, we don't have any example code for this.
Is there any register in the IMXRT 1020 , with which we can configure phase shift ?
No, there isn't any register on the eFlexPWM module that you can configure to achieve this.
But i need to configure these 5 PWMs with a phase shift of 72 degrees between them , How do it do it ?
I found the following community document where one of my co-workers explains how to achieve this for an LPC. Although the module that he's using it's from the LPC family the same concepts apply for the RT eFlexPWM module. Generating phase-shift PWM signal with SCTimer/PWM module
Regards,
Victor