Example MPC5744P FlexPWM SGEN synchronization

File uploaded by Petr Stancik Employee on Apr 14, 2015
Version 1Show Document
  • View in full screen mode

********************************************************************************

* Detailed Description:

*

*

* This example shows usage of FlexPWM and Sine Wave generator (SGEN) modules.

* The setting is selected in the way to have a PWM output signal synhronized with

* SGEN output signal. This is necessary for resolver usage in motor control appls.

*

* See attached Excel sheet for calculation of parammeters used here (AUX0_clk_DIV0,

* AUX0_clk_DIV1, SGEN_IOFREQ, PWM_PRESCALER, PWM_MODULO).

*

* This example is set for 2.44140625 kHz SGEN/PWM frequency.

*

*

* ------------------------------------------------------------------------------

* Test HW:  MPC57xx

* Maskset:  1N65H

* Target :  internal_FLASH

* Fsys:     200 MHz PLL with 40 MHz crystal reference

*

* EVB connection:

*

* P20.1 - D[7] .. SGEN output

*          connected to FEC PHY's MIIMODE input on motherboard,

*          to see full amplitude remove J26   

*

* P8.12    - A[11] .. FlexPWM A[0] output

* P8.11    - A[10] .. FlexPWM B[0] output

*

*

********************************************************************************

Outcomes