- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I do PWM_SetPWMDeadTime(x) in psoc6?
I can't find any Cy_TCPWM.... to do it.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.