Help wanted for logic or flip Flop!

Thread Starter

bytraper

Joined Sep 28, 2010
127
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.
 

Thread Starter

bytraper

Joined Sep 28, 2010
127
JDT, that inverter only works if both PWM are active at the same time, but only 1 at a time will be active, not both.
 
Last edited:

Thread Starter

bytraper

Joined Sep 28, 2010
127
Jdt,
that works, but it leaves the other input switched on when the direction is changed!
For example, when PWM A is firing, and the direction switch is in one direction, output A might be pulsing but output B is an active high (only one of the outputs can be on at once), and when you switch the direction, output B is pulsing, but output A then goes to an active High.

Dave, that switch looks interesting, I'll check that out!
 
Last edited:
Top