MOD54415 PWM Module: When is PWM_SMnVAL0-5 updated?

Discussion to talk about software related topics only.
Post Reply
nicobari
Posts: 110
Joined: Mon Jan 30, 2012 12:15 pm

MOD54415 PWM Module: When is PWM_SMnVAL0-5 updated?

Post by nicobari »

Hi,
I am generating a edge aligned PWM A from sub module 0 at 50 Hz (Servo Signal). To change the PWM value I am updating sim1.mcpwm.sm[0].val[3] register but I noticed that to actually update the PWM I also need to set LDOK and RUN bit in MCR register each time I update val[3] with new value. Is it the correct way of updating PWM values or there is another more efficient way of doing it, continuously?

Regards,TM
Post Reply