Electronics > Beginners

I need to convert a 0/1 signal to pulse when the output changes

(1/2) > >>

ELS122:
I have MOSFETs switching relays (low side) for a tube amp and I need to get a pulse that pulses each time any mosfet turns off/on.
is there a simple circuit that does this?

Circlotron:
Differentiate the rising and falling edges of the mosfet gate drive.

brucehoult:
You want both 0->1 and 1->0 changes on any MOSFET to produce a 0->1->0 pulse on an output?

What do you want to do if more than one changes at the same time -- or at least before the previous pulse finishes?

I think what you'll need to do is:

1) XOR together all the MOSFET outputs
2) create a 0->1 triggered one-shot
3) create a 1->0 triggered one-shot (can be the same as the above, with an inverter before it)
4) OR together the previous two signals

Alternatively, you could do 2-3 for each MOSFET and then OR together all the outputs.

This seems definitely complex enough that it would be simplest to use a microcontroller with enough digital inputs and a very short program.

ELS122:
well basically I need to get a pulse from every mosfet uppon switching off or on
then connect all of them together
then shorting the audio signal to ground somewhere, the FET shorting the signal to ground will be much faster than the relays so I wont need to delay the relays.
I checked how Mesa amps do this and they connect all of the backwards diodes from the relays together, put that into a 1:10 voltage divider to ground and using that to get the pulse.
but this seems it should only produce a pulse when it switches off.

Dmeads:
Okay so look at the schematic I drew. I think this is what youre trying to do.

Link the signal going into your MOSFET to one input of an OR gate. Tie the other input of the OR gate to Ground. (this is called enabling the gate, because x OR 0 is always x), so you will just get whatever your input signal is (0 or 1) on the output of the OR gate.

You can then send this to a one shot (mentioned above). This can give you a longer pulse out than the input. Lets say your input signal is low (0), then it is high (1) for 20ms. Depending on the one shot circuit and the external components attatched to it, you could get an output pulse that is high for maybe 100ns or greater (all depends on the one shot circuit).

If you want the pulse to be the same length as your input signal, just use the output of the OR gate (although there will be a slight propagation delay in the order of nano seconds).

in other words: want pulse to stay high even after input signal has gone low? Use oneshot, otherwise, just use output of OR gate.

555 timers can be used for one shots and so can 74121 chips. If you use electrolytic caps with the 74121 make sure to use a switching diode too (see attatched datasheet) for proper operation.

Hope this helps!

-Dom

555 timer:  http://www.ti.com/lit/ds/symlink/lm555.pdf
74121: https://pdf1.alldatasheet.com/datasheet-pdf/view/177142/FAIRCHILD/DM74121.html

more info on oneshots: https://www.utm.edu/staff/leeb/3b3.htm

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod