Example MPC5744P FlexPWM_0&1 synchronization GHS716

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Example MPC5744P FlexPWM_0&1 synchronization GHS716

Example MPC5744P FlexPWM_0&1 synchronization GHS716

MPC5744P FlexPWM offers possibility to synchronize the FlexPWM modules via external synchronization.

Attached is example application how to properly synchronize 2 FlexPWMs modules:

FlexPWMs run with motor control clock (MOT_CLK) with 100MHz frequency:

pastedImage_1.png

PWM period is 20MHz with 50% duty cycle:

Below is figure representing External synchronization of 2 PWM (on this frequency I have 2 clocks delay between synchronization)

pastedImage_2.png

With adjusted FlexPWM0 channel A0 init value by 2 clocks I have reached following results:

pastedImage_3.png

pastedImage_4.png

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1123862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20FlexPWM_0%26amp%3B1%20synchronization%20GHS716%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123862%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EMPC5744P%20FlexPWM%20offers%20possibility%20to%20synchronize%20the%20FlexPWM%20modules%20via%20external%20synchronization.%3C%2FP%3E%3CP%3EAttached%20is%20example%20application%20how%20to%20properly%20synchronize%202%20FlexPWMs%20modules%3A%3C%2FP%3E%3CP%3EFlexPWMs%20run%20with%20motor%20control%20clock%20(MOT_CLK)%20with%20100MHz%20frequency%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20582px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F76332i23D29A31C51A71FF%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EPWM%20period%20is%2020MHz%20with%2050%25%20duty%20cycle%3A%3C%2FP%3E%3CP%3EBelow%20is%20figure%20representing%20External%20synchronization%20of%202%20PWM%20(on%20this%20frequency%20I%20have%202%20clocks%20delay%20between%20synchronization)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_2.png%22%20style%3D%22width%3A%20743px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F76136i90E7999A055974B6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_2.png%22%20alt%3D%22pastedImage_2.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWith%20adjusted%20FlexPWM0%20channel%20A0%20init%20value%20by%202%20clocks%20I%20have%20reached%20following%20results%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_3.png%22%20style%3D%22width%3A%20716px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F76167i76155B75A875146D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_3.png%22%20alt%3D%22pastedImage_3.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_4.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_4.png%22%20style%3D%22width%3A%20691px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F76211i344254F994BFAC6D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_4.png%22%20alt%3D%22pastedImage_4.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎10-23-2018 06:19 AM
Updated by: