The PWM duty could not change in combine mode in the KEA128

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

The PWM duty could not change in combine mode in the KEA128

459 Views
hongjinzeng
Contributor IV

Hi everyone,

  My IDE is S32DS.My MCU is KEAZ128.I set the FTM2_CH0/FTM2_CH1 and FTM2_CH2/FTM2_CH3 in the combine mode.The init CH0 CnV is 0,CH1 CnV is 9999,CH2 CnV is 9999,CH3 CnV is 19999.In the While(1),I want to change those value,but those value could not be changed.The value always same with the init value.My program in the accessory.

Original Attachment has been moved to: FRDM_KEA128_FTM_Combine.zip

Labels (1)
0 Kudos
2 Replies

327 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi  hongjin,

Please select one of below code:

  1. FTM2_Config.mode|=FTM_MODE_FTMEN_MASK;
  2. FTM_SetFTMEnhanced(FTM2);

Best Regards,

Robin

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

327 Views
hongjinzeng
Contributor IV

Thank you.

After add the FTM2_Config.mode|=FTM_MODE_FTMEN_MASK.The PWM duty can be changed.

0 Kudos