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

cross mob
XMC-User
Level 1
Level 1
First question asked Welcome!

I have created PWM on the XMC1300 using DAVE under PWM_CCU8_0-->Signal settings
Channel 1 direct Output
passive state: After compare match
passive level: low

Channel 1 inverted Output
passive state: After compare match
passive level: low

I need to change to the below setting in runtime in software. 
Channel 1 direct Output
passive state: After compare match
passive level: High

Channel 1 inverted Output
passive state: After compare match
passive level: High

How do I change to this setting?

0 Likes
1 Solution
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Kindly check the XMClib API 

void XMC_CCU8_SLICE_SetPassiveLevel(XMC_CCU8_SLICE_t *const slice,
const XMC_CCU8_SLICE_OUTPUT_t out,
const XMC_CCU8_SLICE_OUTPUT_PASSIVE_LEVEL_t level);

Best Regards,
Vasanth

 

View solution in original post

0 Likes
1 Reply
Vasanth
Moderator
Moderator
Moderator
250 sign-ins 500 solutions authored First question asked

Hi,

Kindly check the XMClib API 

void XMC_CCU8_SLICE_SetPassiveLevel(XMC_CCU8_SLICE_t *const slice,
const XMC_CCU8_SLICE_OUTPUT_t out,
const XMC_CCU8_SLICE_OUTPUT_PASSIVE_LEVEL_t level);

Best Regards,
Vasanth

 

0 Likes