Example MPC5744P FlexPWM Init Capture test S32DS21

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

Example MPC5744P FlexPWM Init Capture test S32DS21

Example MPC5744P FlexPWM Init Capture test S32DS21

********************************************************************************
* Detailed Description:
*
* This example shows usage of FlexPWM module.
* The Submodule0 is set to generate independent PWMA and PWMB signals
* The PWMX is used as input for the Capture feature.
* Capture logic is set to capture one rising and one falling edge in one shot mode.
* Thus you can check the edge placing and calculate a generated duty cycle.
*
* ------------------------------------------------------------------------------
* Test HW: DEVKIT-MPC5744P rev.D
* Maskset: 1N16P
* Target : FLASH
* Fsys: 200 MHz PLL1
* Debugger: Lauterbach
*
* * EVB connection:
*
* J1.3 - D[9] .. FlexPWM X[0] input
* J1.5 - A[11] .. FlexPWM A[0] output
* J1.7 - A[10] .. FlexPWM B[0] output
*
*
* to measure generated pulse connect X[0] input with either A[0] or B[0] outputs.
*
********************************************************************************

Attachments
%3CLINGO-SUB%20id%3D%22lingo-sub-1380839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExample%20MPC5744P%20FlexPWM%20Init%20Capture%20test%20S32DS21%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1380839%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E********************************************************************************%3CBR%20%2F%3E*%20Detailed%20Description%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20This%20example%20shows%20usage%20of%20FlexPWM%20module.%3CBR%20%2F%3E*%20The%20Submodule0%20is%20set%20to%20generate%20independent%20PWMA%20and%20PWMB%20signals%3CBR%20%2F%3E*%20The%20PWMX%20is%20used%20as%20input%20for%20the%20Capture%20feature.%3CBR%20%2F%3E*%20Capture%20logic%20is%20set%20to%20capture%20one%20rising%20and%20one%20falling%20edge%20in%20one%20shot%20mode.%3CBR%20%2F%3E*%20Thus%20you%20can%20check%20the%20edge%20placing%20and%20calculate%20a%20generated%20duty%20cycle.%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20------------------------------------------------------------------------------%3CBR%20%2F%3E*%20Test%20HW%3A%20DEVKIT-MPC5744P%20rev.D%3CBR%20%2F%3E*%20Maskset%3A%201N16P%3CBR%20%2F%3E*%20Target%20%3A%20FLASH%3CBR%20%2F%3E*%20Fsys%3A%20200%20MHz%20PLL1%3CBR%20%2F%3E*%20Debugger%3A%20Lauterbach%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20*%20EVB%20connection%3A%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20J1.3%20-%20D%5B9%5D%20..%20FlexPWM%20X%5B0%5D%20input%3CBR%20%2F%3E*%20J1.5%20-%20A%5B11%5D%20..%20FlexPWM%20A%5B0%5D%20output%3CBR%20%2F%3E*%20J1.7%20-%20A%5B10%5D%20..%20FlexPWM%20B%5B0%5D%20output%3CBR%20%2F%3E*%3CBR%20%2F%3E*%3CBR%20%2F%3E*%20to%20measure%20generated%20pulse%20connect%20X%5B0%5D%20input%20with%20either%20A%5B0%5D%20or%20B%5B0%5D%20outputs.%3CBR%20%2F%3E*%3CBR%20%2F%3E********************************************************************************%3C%2FP%3E%0A%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎12-02-2021 01:33 PM
Updated by: