How to modify pwm period in OPWMT mode for MPC5748G?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to modify pwm period in OPWMT mode for MPC5748G?

835 次查看
mahoneinsh
Contributor I

Dear NXP employee,

    In my recent project, i use OPWMT mode of eMIOS module to generate PWM waveform, and the periode of PWM should be modified while the waveform is being output. Acturally, i have realized that function by using the following instruction, and it worked successfully!

EMIOS_SetUCRegA(INST_EMIOS0_MC, PWM_MC_eMIOS_CHN, SetPwmPrd_real);

   But i read the mpc5748g datasheet and found that " OPWMT mode (MODE[0:6]=0100110) is intended to support the generation of Pulse
Width Modulation signals where the period is not modified while the signal is being
output" as show below. 

mahoneinsh_0-1691580667220.png

 

   My question is, does it mean that modifying period in OPWMT mode is not allowed?  and is there any risk?

   Thank you in advance.

 

0 项奖励
回复
1 回复

785 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

in OPWMT mode an external counter driven in either MC Up or MCB Up mode must be selected from one
of the counter buses. This selected counter determines PWM period and can be updated normally. In this case you should ensure OPWMT A1,B2,A2 values are within new counter bus boundary so PWM output and trigger will be generated.

BR, Petr

0 项奖励
回复