PWM output not LOW when Compare == 0

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

cross mob
UrPl_1236626
Level 4
Level 4
10 likes given First solution authored 50 replies posted

Hi,

In a PSoC4 CY8C4146 project I use 16-bit TCPWM in which case the PWM compare value is varied from 0 to some value.

However, for compare value 0, the output is set HIGH instead of LOW, also depicted by the GUI:

TCPWM-cmp0.png

Atm the workaround that worked for me is to use PWM + deadband and by setting the deadband further away, but wonder is this bug?

Best regards,
Uros

0 Likes
3 Replies
Alakananda_BG
Moderator
Moderator
Moderator
50 likes received 250 sign-ins 250 replies posted

Hi Uros,

We tried the project at our end and we are seeing 0.

Can you please let us know whether you have connected to line or line_n.

Regards

Alakananda

Alakananda
0 Likes

Hi Alakananda,

it is wired like this, where reload signal is constantly re-triggering the pwm and actual period is longer (it's set to max possible) and PWM never TC.

Screenshot from 2020-01-23 22-13-25.png

BR URos

0 Likes

Hi Uros,

We tried it at our end and we are seeing that PWM output is going low when compare value is 0.

Can you please share your project so that we can verify

Regards

Alakananda

Alakananda
0 Likes