Quantcast
Channel: Infineon Forums
Viewing all articles
Browse latest Browse all 9892

Problems with restarting a PWM using the PWM_CCX_stop/PWM_CCX_start routines

$
0
0
Hi,

rather than leave this dangling I thought I would add my findings.

In the function PWM_CCU8_start() in my case it was set to external sync start so it wouldn't restart.

Instead you can use

XMC_CCU8_EnableClock(PWM_CCU8_0.ccu8_module_ptr, PWM_CCU8_0.slice_number);
XMC_CCU8_SLICE_StartTimer(PWM_CCU8_0.ccu8_slice_pt r);
PWM_CCU8_0.state = PWM_CCU8_STATE_RUNNING;

Hope this helps.

Viewing all articles
Browse latest Browse all 9892

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>