Stop PWM without falling PWM output pin to Hi-Z

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

cross mob
lock attach
Attachments are accessible only for community members.
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

If you stop PWM with "PWM_Stop" API, it releases all allocated resource including the output pin.

So, the PWM output pin  is Hi-Z!!!

If you want to stop PWM output pin at "low" level, you should use "PWM_TriggerCommand" API.

You should configure "PWM" component below.

pastedImage_0.png

The "#define pwmstop" definition enables PWM_Stop API.

The "#define pwmtriggercommand" definition enables PWM_TriggerCommand API.

Please use them exclusively.

Best regards,

Yocchi

0 Likes
1 Reply
Takashi_M
Moderator
Moderator
Moderator
1000 replies posted 500 solutions authored 750 replies posted

Dear Yocchi-san,

Thank you very much for sharing your Code Example.

We appreciate your contribution for this.

Best regards.

0 Likes