Can you please share your schematic so that we can understand which 4 output signals you are trying to mix?
Can you provide your application so that we can suggest an alternative?
The digital outputs are normally should be joined through some logic elements (XOR, OR, etc.), else circuit may be shorted. If you trying to sum PWMs for analog output, they can be connected externally using resistors (in parallel). Please make clear what is the goal of summing PWMs.
I'm investigating alternate ways to drive a stepper motor controller.
I am curious if it would be possible to change the number of pulses in a PWM interval without modifying the PWM settings.
Being able to do this digitally would allow a lot of control, while simplifying the control mechanism.
I was able to find a PWM config that outputs rising edges with (almost) equal time between them.
Controlling each output allows 1-4 pulses per interval, with (I assume) less delay than changing the PWM and input clock settings.
I already added independent control of the outputs with 4 AND gates and a Control Register.
If the 4 outputs could be muxed together, a single Pulse Converter could be used, instead of the 4 separate ones I'm using now.
You can see the rising edges on each output of the PWM are (almost) evenly spaced. (The falling edges are ignored.)
The PWM outputs are controlled via AND gates and a Control Register.
Pulse Converters trigger on the rising edges of the outputs and generate pulses of equal length.
I've built and tested this implementation, and it works as I expected, (except there is a strange delay after 10 pulses, but that is probably something to do with the PWM settings).
Now I would like to mux the PWM outputs down to a single signal. I think 2 layers of OR gates after the AND gates will do it.
If anyone has suggestions/comments on any part of this design, please reply!
This is very close to what I need. I think replacing the second and third stages of AND gates with OR will do it.
Thanks for your comment!