Jan 26, 2017
12:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 26, 2017
12:03 PM
Hello,
I would like to generate a slow PWM (turn signal for a car). For that I use to inputs (IN_L and IN_R) to control two different PWM (CCU4). If i stop one PWM at that moment that the assigend output channel is on, it will remain on. How can I change the behaviour so that the output is low?
Thanks
M.Schneiders
I would like to generate a slow PWM (turn signal for a car). For that I use to inputs (IN_L and IN_R) to control two different PWM (CCU4). If i stop one PWM at that moment that the assigend output channel is on, it will remain on. How can I change the behaviour so that the output is low?
Thanks
M.Schneiders
- Tags:
- IFX
2 Replies
Not applicable
Jan 27, 2017
04:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 27, 2017
04:55 PM
Do you mean stop by software or an external event? If you stop it by software, then make sure you clear the timer when you stop it (set both CC4yTCCLR.TRBC and CC4yTCCLR.TCC).
If by external event, set CC4yTC.ENDM to 11 so the timer flushes when gets stopped.
If by external event, set CC4yTC.ENDM to 11 so the timer flushes when gets stopped.
Jan 31, 2017
10:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jan 31, 2017
10:37 AM
Stop by software with the function PWM_CCU4_Stop. After stoping the PWM the assigned output pin should be low.
Where do I find the registers that you mentioned?
Inside of PWM stop function used timer ist stoped an cleared:
Where do I find the registers that you mentioned?
Inside of PWM stop function used timer ist stoped an cleared:
XMC_CCU4_SLICE_StopTimer(handle_ptr->ccu4_slice_ptr);
XMC_CCU4_SLICE_ClearTimer(handle_ptr->ccu4_slice_ptr);
XMC_CCU4_DisableClock(handle_ptr->ccu4_module_ptr, handle_ptr->slice_number);