Oct 22, 2018
11:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Oct 22, 2018
11:02 PM
Hello, I need to keep the XMC PWM synchronized with an external synch signal.
PWM frequency is nominally 16 times the external synch signal, but since it comes from a different clock it has some error.
I would like to PLL the XMC PWM, so I need to update the PWM period from time to time, without stopping it.
DAVE has a PWM_SVM_SetPWMFrequency but it is clearly stated it only works when PMW is stopped.
Is there any particular reason for this?
How can it be done?
Thanks.
Alberto
PWM frequency is nominally 16 times the external synch signal, but since it comes from a different clock it has some error.
I would like to PLL the XMC PWM, so I need to update the PWM period from time to time, without stopping it.
DAVE has a PWM_SVM_SetPWMFrequency but it is clearly stated it only works when PMW is stopped.
Is there any particular reason for this?
How can it be done?
Thanks.
Alberto
- Tags:
- IFX
1 Reply
Nov 07, 2018
01:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 07, 2018
01:20 PM
Hi,
check the section Updating the Period and Duty Cycle in the CCU4 and CCU8 chapters.
Each CCUx timer slice provides an associated shadow register for the period and the
two compare values. This facilitates a concurrent update by software for these three
parameters, with the objective of modifying during run time the PWM signal period and
duty cycle.
The PWM_SVM might not fit your needs. Check the PWM_CCU4 and PWM_CCU8.
Regards,
Jesus
check the section Updating the Period and Duty Cycle in the CCU4 and CCU8 chapters.
Each CCUx timer slice provides an associated shadow register for the period and the
two compare values. This facilitates a concurrent update by software for these three
parameters, with the objective of modifying during run time the PWM signal period and
duty cycle.
The PWM_SVM might not fit your needs. Check the PWM_CCU4 and PWM_CCU8.
Regards,
Jesus