Electronics > Beginners

Commoning Of Open Collector Outputs On A Device?

(1/2) > >>

ShaunLeeClarke:
Quick question for those that know a bit more about this than I do.

If I have a device which has several programmable open collector outputs, is there any issue with commoning these up to get the functional equivalent of an "OR" gate?

The device in question is an alarm panel which supports activating open collector outputs on certain events, but only supports a single event per output. My plan is to simply tie two (or more) outputs together so that either event can trigger the connected device.

I believe this would work - but would there be any consequences to having the collector of the non-activated open collectors tied to ground through the open collector that is active?

If this isn't a good idea I can achieve the same functionality by wiring each open collector to its own relay, however it would be advantageous to avoid this if I can.

Thanks in advance.

UPDATE: It seems it's definitely possible, as per this quote from https://en.wikipedia.org/wiki/Open_collector:


--- Quote ---By tying the output of several open collectors together, the common line becomes a "wired AND" (positive-true logic) or "wired OR" (negative-true logic) gate. A "wired AND" behaves like the boolean AND of the two (or more) gates in that it will be logic 1 whenever (all) are in the high impedance state, and 0 otherwise. A "wired OR" behaves like the Boolean OR for negative-true logic, where the output is LOW if any of its inputs are low.
--- End quote ---

That being the case, are there any practical limitations to this? As in, do I need any extra components or anything I need to watch out for?

The other potential issue is, I don't know much at all about how they've implemented the open collector outputs on the device, so that could complicate it as well.

bob91343:
To be on the safe side, I'd add a diode in each output line to make sure the current won't flow backwards.  Other than that, I think parallel operation is perfectly feasible.  So if one collector is pulled down, the output is pulled down, no matter which collector or how many.  Otherwise the output will be high.

If the open collector is contained within an IC, check the data sheet for this capability.  Generally it should work.

JackJones:

--- Quote from: ShaunLeeClarke on May 30, 2019, 03:47:56 am ---The other potential issue is, I don't know much at all about how they've implemented the open collector outputs on the device, so that could complicate it as well.

--- End quote ---

I'm not sure if you can implement open collector outputs other than with.. open collectors! At least I'm not aware of any weird implementation of them, they should look just like open collectors.

It is definitely doable, for example I2C uses the same thing. Open collector on the master, open collector on the slave sharing the same line.

Brumby:

--- Quote from: ShaunLeeClarke on May 30, 2019, 03:47:56 am ---I believe this would work - but would there be any consequences to having the collector of the non-activated open collectors tied to ground through the open collector that is active?
--- End quote ---
No.  All of the non-active open collectors just won't have a voltage on the collector.  The main purpose of the whole "open collector" concept is to do exactly what you want to do.


--- Quote ---That being the case, are there any practical limitations to this? As in, do I need any extra components or anything I need to watch out for?

The other potential issue is, I don't know much at all about how they've implemented the open collector outputs on the device, so that could complicate it as well.

--- End quote ---
The limitations are first and foremost is choosing an appropriate resistor.  It must be low enough to ensure the output line is held high against everything that is connected to it when no active outputs are present - and it must be high enough to limit the current to a value less than the current capacity of the lowest (current) rated output.

When you have extremely high input impedance for the following stage, then you might be tempted to put in a really high value pull-up resistor - but this can make that next stage susceptible to random noise.  Keep the value down to a sensible value.

Brumby:

--- Quote from: JackJones on May 30, 2019, 04:20:57 am ---
--- Quote from: ShaunLeeClarke on May 30, 2019, 03:47:56 am ---The other potential issue is, I don't know much at all about how they've implemented the open collector outputs on the device, so that could complicate it as well.

--- End quote ---

I'm not sure if you can implement open collector outputs other than with.. open collectors! At least I'm not aware of any weird implementation of them, they should look just like open collectors.

It is definitely doable, for example I2C uses the same thing. Open collector on the master, open collector on the slave sharing the same line.

--- End quote ---

Oh yes.  Make sure that the only outputs you connect to an "open collector" line are open collector!

Navigation

[0] Message Index

[#] Next page

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