Output pins with optional PWM

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

cross mob
KyGr_1968351
Level 2
Level 2
5 sign-ins 10 replies posted 5 replies posted

I want to have four output pins that can optionally use either PWM or bit-bang control. I'd like to be able to change them on the fly and, ideally, independently of one another. Can anyone suggest the simplest approach to this?

   

I'm thinking that perhaps the simplest approach is to simply toggle them between 100% and 0% when I want to use them in bit-bang mode. Otherwise, I would need four independant muxes. Thoughts?

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Toggling between 0% and 100% will be the easiest solution. For a different solution you could use an OR gate instead of a mux.

   

 

   

Bob

0 Likes