SetPWMDeadTime in PSOC6

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

cross mob
APe_3909046
Level 1
Level 1
5 replies posted First reply posted First question asked

How can I do PWM_SetPWMDeadTime(x) in psoc6?

I can't find any Cy_TCPWM.... to do it.

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

You can open the PWM code example, find the API:

_VAL2FLD(TCPWM_CNT_CTRL_GENERIC, ((CY_TCPWM_PWM_MODE_DEADTIME == config->pwmMode) ?

                                                                     config->deadTimeClocks : config->clockPrescaler)));

If PWM in DT mode, you can change the Dead time use the API.

But you can set the value in the component like:

pastedImage_0.png

View solution in original post

2 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

You can open the PWM code example, find the API:

_VAL2FLD(TCPWM_CNT_CTRL_GENERIC, ((CY_TCPWM_PWM_MODE_DEADTIME == config->pwmMode) ?

                                                                     config->deadTimeClocks : config->clockPrescaler)));

If PWM in DT mode, you can change the Dead time use the API.

But you can set the value in the component like:

pastedImage_0.png

Thanks, im actually trying to modify the dead time clock through code. I mean the dead time clocks are not going to be fixed, its going to be modified on the go.

0 Likes