How to modify pwm period in OPWMT mode for MPC5748G?

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

How to modify pwm period in OPWMT mode for MPC5748G?

441 Views
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 Kudos
Reply
1 Reply

391 Views
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 Kudos
Reply