PWM Single shot mode

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SWYoon
Level 2
Level 2
25 sign-ins 10 sign-ins 5 sign-ins
Hi~~

Board : XMC1302 boot kit
DAVE ver : DAVE4.0.0


I tried to make PWM_CCU8 single-shot mode function enable

1968.attach

step1 : single-shot mode -> change ->step2 : normal PWM mode
Is there any way possible to the normal PWM mode from the single-shot mode?

Please answer fast.

Thanks
0 Likes
3 Replies
chismo
Employee
Employee
First like received
Hello,

Do you mean that you want to switch between continuous mode and single-shot mode?
I think you can use the function "XMC_CCU4_SLICE_SetTimerRepeatMode()" from the CCU8 XMC_Lib for this purpose.

For example to switch to continuous mode:

XMC_CCU4_SLICE_SetTimerRepeatMode(SLICE_PTR, XMC_CCU4_SLICE_TIMER_REPEAT_MODE_REPEAT);


Regards,
Min Wei
0 Likes
Not applicable
swyoon wrote:
Hi~~

Board : XMC1302 boot kit
DAVE ver : DAVE4.0.0


I tried to make PWM_CCU8 single-shot mode function enable

1968.attach

step1 : single-shot mode -> change ->step2 : normal PWM mode
Is there any way possible to the normal PWM mode from the single-shot mode?

Please answer fast.

Thanks


try calling PWM_CCU8_Start(&PWM_CCU8_0); when you need the pulse to be generated.
0 Likes
SWYoon
Level 2
Level 2
25 sign-ins 10 sign-ins 5 sign-ins
Thank you for quick response.
Test OK!!
0 Likes