Example MPC5744P FlexPWM shifted PWM GHS616

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

Example MPC5744P FlexPWM shifted PWM GHS616

Example MPC5744P FlexPWM shifted PWM GHS616

********************************************************************************
* Detailed Description:
*
* The example shows how to initialize 3 submodules to generate 120° phase shift
* between submodules.
* CNTR register of each submodule is initialized with shifted value when PWM
* generators are disabled using FORCE feature.
*
* ------------------------------------------------------------------------------
* Test HW:  MPC5744P (MPC5744P-257DS + MPC577xx motherboard)
* Maskset:  1N15P
* Target :  internal_FLASH, RAM
* Fsys:     200 MHz PLL with 40 MHz crystal reference
*
* EVB connection:
*
* P8.12    - A[11] .. FlexPWM A[0] output
* P8.11    - A[10] .. FlexPWM B[0] output
* P8.13    - A[12] .. FlexPWM A[2] output
* P8.14    - A[13] .. FlexPWM B[2] output
* P10.8    - C[7] .. FlexPWM A[1] output
* P10.7    - C[6] .. FlexPWM B[1] output
*
********************************************************************************

pastedImage_1.png

Attachments
Comments

I need to control a motor, do you know how to change the duty of PWM while the code is running?

No ratings
Version history
Last update:
‎04-26-2017 01:39 AM
Updated by: