I'm building a circuit and i'm having some problems toggling the PWM outputs between the 2 inputs!
The diagram below is that I have and what I'm trying to achieve.
Only 1 pwm will be active at any time, and I need the direction switch to toggle the pwm outputs between one or the other inputs.
So for example if PWM A or B is on, and the direction switch is low, then the PWM signal goes to input A, but if the direction switch is high, then PWM goes to INPUT B.
So basically, either PWM will be active at one time, and I need to toggle the outputs from input A to B depending on whether the toggle switch is an active high or active low.
Has anybody got a solution to this? I was thinking a flip flop would work, but I cant get my head around the states.
The diagram below is that I have and what I'm trying to achieve.
Only 1 pwm will be active at any time, and I need the direction switch to toggle the pwm outputs between one or the other inputs.
So for example if PWM A or B is on, and the direction switch is low, then the PWM signal goes to input A, but if the direction switch is high, then PWM goes to INPUT B.
So basically, either PWM will be active at one time, and I need to toggle the outputs from input A to B depending on whether the toggle switch is an active high or active low.
Has anybody got a solution to this? I was thinking a flip flop would work, but I cant get my head around the states.