Electronics-Related.com
Forums

Emulating Open-Collector operation with TTL 74LS138...

Started by John Robertson October 6, 2022
John Walliker wrote:
> On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: >> On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin >> wrote: >> >> <snip gibberish> >>> That's not clear. Got a schematic? >>>> >> He's wasting his time, there's nothing wrong with the original >> circuit. >> >> He's just one of those people who, when they can't understand >> something, think something is wrong. LS doesn't have ESD clamp >> diodes on its outputs, and, in fact, nothing is being avalanched by >> applying a very current limited 20V to its outputs. Maybe an >> insignificant elevated leakage is all that happens. The original >> circuit is well-designed and should be left as is. > > I can see that the original circuit might work fine, but it does > depend on parameters that are not specified in the data sheet like > the breakdown voltage of the output pull-down transistor, so I > wouldn't be comfortable calling it "well designed". > > John >
I'd also be worried about zenering the B-E junction of the top transistor. Probably fine for a hobby project, but not for a mission-critical application such as a pinball table in a bar. ;) Cheers Phil Hobbs (Those wizards can cut up rough if their favourite table isn't working.) -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com
On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote:
> On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin wrote: > > > > <snip gibberish> > > > That's not clear. Got a schematic? > > > > > > He's wasting his time, there's nothing wrong with the original circuit. > > > > He's just one of those people who, when they can't understand something, think something is wrong. > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > I can see that the original circuit might work fine, but it does depend on parameters that > are not specified in the data sheet like the breakdown voltage of the output pull-down > transistor, so I wouldn't be comfortable calling it "well designed".
Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought transmission line effects into standard logic design. If the typical LS output gate transitioned a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high impedance input of another LS gate as its only load. The signal will be reflected 100% positively for 5V traveling back down the trace to the driver. Since the driver pulled high is high impedance, the returning pulse again is reflected positively 100% making the voltage at the driver output 10V. The new +5V transition sends a 10V edge traveling down the line to the LS input and gets clamped at 5V which is a full negative reflection to return back to the driver and reduce the 10V at the output node ideally to 5V etc. So we know for a *fact* the process has to be designed to withstand a repetitive 10V applied to the output. And that's not just withstand to survive, that's withstand with no internal circuit disruption. Typical margins are factor of 2x or more, making a withstanding voltage of 20V a done deal, and that can be verified for the part. That's why I'm saying it's a good design.
> > John
On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote:
> On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin wrote: > > > > <snip gibberish> > > > That's not clear. Got a schematic? > > > > > > He's wasting his time, there's nothing wrong with the original circuit. > > > > He's just one of those people who, when they can't understand something, think something is wrong. > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > I can see that the original circuit might work fine, but it does depend on parameters that > are not specified in the data sheet like the breakdown voltage of the output pull-down > transistor, so I wouldn't be comfortable calling it "well designed".
I think you mean the lack of absolute maximum ratings for the outputs, as I'm sure they never expected anyone to think it would be safe to treat a totem pole output to be treated as an open collector. -- Rick C. --+ Get 1,000 miles of free Supercharging --+ Tesla referral code - https://ts.la/richard11209
On Friday, October 7, 2022 at 7:10:22 PM UTC-4, Fred Bloggs wrote:
> On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: > > On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > > On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin wrote: > > > > > > <snip gibberish> > > > > That's not clear. Got a schematic? > > > > > > > > He's wasting his time, there's nothing wrong with the original circuit. > > > > > > He's just one of those people who, when they can't understand something, think something is wrong. > > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > > I can see that the original circuit might work fine, but it does depend on parameters that > > are not specified in the data sheet like the breakdown voltage of the output pull-down > > transistor, so I wouldn't be comfortable calling it "well designed". > Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought transmission line effects into standard logic design. If the typical LS output gate transitioned a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high impedance input of another LS gate as its only load. The signal will be reflected 100% positively for 5V traveling back down the trace to the driver. Since the driver pulled high is high impedance, the returning pulse again is reflected positively 100% making the voltage at the driver output 10V. The new +5V transition sends a 10V edge traveling down the line to the LS input and gets clamped at 5V which is a full negative reflection to return back to the driver and reduce the 10V at the output node ideally to 5V etc. So we know for a *fact* the process has to be designed to withstand a repetitive 10V applied to the output. And that's not just withstand to survive, that's withstand with no internal circuit disruption. Typical margins are factor of 2x or more, making a withstanding voltage of 20V a done deal, and that can be verified for the part. That's why I'm saying it's a good design.
I thought I was following this ok, until I got to the point of the second wave being clamped at the LS input to the 5V rail. Is that were the case, how could the first reflection be above 5V? That aside, your whole description is pretty off track. The LS output driving the "high impedance" trace, does not pull up to 5V in the first place. The "high impedance" trace is not high enough to be ignored. The reality is the driver output will only drive hard to maybe 3.5V. Combine that with the trace impedance loading of around 110 ohms, and you get something like a 2V initial edge on the trace. This will be doubled at the far end reflection at the LS input, to about 4V. So there's no need to worry about over voltage from reflections. It's been too many years since I've looked at waveforms of LSTTL signals on a scope. When I was looking at TTL signals, people didn't understand impedance matching very widely. But things worked pretty well without terminations. It was later that higher clock rates were attempted and people finally figured out that the signals were not reaching the other end of the trace perfectly when there was more than one receiver. Also, CMOS. -- Rick C. -+- Get 1,000 miles of free Supercharging -+- Tesla referral code - https://ts.la/richard11209
On Friday, October 7, 2022 at 4:10:22 PM UTC-7, Fred Bloggs wrote:
> On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: > > On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote:
> > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being > > >avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant > > >elevated leakage is all that happens. The original circuit is well-designed and should be left as is.
> > I can see that the original circuit might work fine, but it does depend on parameters that > > are not specified in the data sheet like the breakdown voltage of the output pull-down > > transistor, so I wouldn't be comfortable calling it "well designed".
> Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought > transmission line effects into standard logic design. If the typical LS output gate transitioned >a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high >impedance input of another LS gate as its only load. The signal will be reflected 100% positively ...
>Typical margins are factor of 2x or more, making a withstanding voltage of 20V >a done deal, and that can be verified for the part. That's why I'm saying it's a good design.
Actually, would substituting a 74HCT138 or 74ACT138 be a good solution? There's certainly protection diodes built into its outputs (MOS body diode). 74ACT138 can take 50 mA into its output pin. <https://www.ti.com/lit/ds/symlink/cd74act138.pdf>
On Saturday, 8 October 2022 at 05:07:50 UTC+1, whit3rd wrote:
> On Friday, October 7, 2022 at 4:10:22 PM UTC-7, Fred Bloggs wrote: > > On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: > > > On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > > > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being > > > >avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant > > > >elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > > > > I can see that the original circuit might work fine, but it does depend on parameters that > > > are not specified in the data sheet like the breakdown voltage of the output pull-down > > > transistor, so I wouldn't be comfortable calling it "well designed". > > > Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought > > transmission line effects into standard logic design. If the typical LS output gate transitioned > >a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high > >impedance input of another LS gate as its only load. The signal will be reflected 100% positively ... > >Typical margins are factor of 2x or more, making a withstanding voltage of 20V > >a done deal, and that can be verified for the part. That's why I'm saying it's a good design. > Actually, would substituting a 74HCT138 or 74ACT138 be a good solution? > There's certainly protection diodes built into its outputs (MOS body diode). > 74ACT138 can take 50 mA into its output pin. > > <https://www.ti.com/lit/ds/symlink/cd74act138.pdf>
The problem with that is that the darlington would never turn off. John
On Saturday, 8 October 2022 at 02:52:12 UTC+1, Ricky wrote:
> On Friday, October 7, 2022 at 7:10:22 PM UTC-4, Fred Bloggs wrote: > > On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: > > > On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > > > On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin wrote: > > > > > > > > <snip gibberish> > > > > > That's not clear. Got a schematic? > > > > > > > > > > He's wasting his time, there's nothing wrong with the original circuit. > > > > > > > > He's just one of those people who, when they can't understand something, think something is wrong. > > > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > > > I can see that the original circuit might work fine, but it does depend on parameters that > > > are not specified in the data sheet like the breakdown voltage of the output pull-down > > > transistor, so I wouldn't be comfortable calling it "well designed". > > Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought transmission line effects into standard logic design. If the typical LS output gate transitioned a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high impedance input of another LS gate as its only load. The signal will be reflected 100% positively for 5V traveling back down the trace to the driver. Since the driver pulled high is high impedance, the returning pulse again is reflected positively 100% making the voltage at the driver output 10V. The new +5V transition sends a 10V edge traveling down the line to the LS input and gets clamped at 5V which is a full negative reflection to return back to the driver and reduce the 10V at the output node ideally to 5V etc. So we know for a *fact* the process has to be designed to withstand a repetitive 10V applied to the output. And that's not just withstand to survive, that's withstand with no internal circuit disruption. Typical margins are factor of 2x or more, making a withstanding voltage of 20V a done deal, and that can be verified for the part. That's why I'm saying it's a good design. > I thought I was following this ok, until I got to the point of the second wave being clamped at the LS input to the 5V rail. Is that were the case, how could the first reflection be above 5V? > > That aside, your whole description is pretty off track. The LS output driving the "high impedance" trace, does not pull up to 5V in the first place. The "high impedance" trace is not high enough to be ignored. The reality is the driver output will only drive hard to maybe 3.5V. Combine that with the trace impedance loading of around 110 ohms, and you get something like a 2V initial edge on the trace. This will be doubled at the far end reflection at the LS input, to about 4V. So there's no need to worry about over voltage from reflections. > > It's been too many years since I've looked at waveforms of LSTTL signals on a scope. When I was looking at TTL signals, people didn't understand impedance matching very widely. But things worked pretty well without terminations. It was later that higher clock rates were attempted and people finally figured out that the signals were not reaching the other end of the trace perfectly when there was more than one receiver. Also, CMOS. >
It has been many years for me too. I spent several months in 1974 building prototype digital television equipment using 74S devices. I don't recall ever seeing overshoots of more than about 6V. I had access to excellent test equipment. However, this was all hand-wired on perforated Veroboard and any signals going more than a couple of cm were wired as twisted pair. Every chip usually had its own decoupling capacitor, chosen for low Q so as to absorb switching transients. John
On 2022/10/08 2:54 a.m., John Walliker wrote:
> On Saturday, 8 October 2022 at 05:07:50 UTC+1, whit3rd wrote: >> On Friday, October 7, 2022 at 4:10:22 PM UTC-7, Fred Bloggs wrote: >>> On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: >>>> On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: >> >>>>> LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being >>>>> avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant >>>>> elevated leakage is all that happens. The original circuit is well-designed and should be left as is. >> >>>> I can see that the original circuit might work fine, but it does depend on parameters that >>>> are not specified in the data sheet like the breakdown voltage of the output pull-down >>>> transistor, so I wouldn't be comfortable calling it "well designed". >> >>> Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought >>> transmission line effects into standard logic design. If the typical LS output gate transitioned >>> a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high >>> impedance input of another LS gate as its only load. The signal will be reflected 100% positively ... >>> Typical margins are factor of 2x or more, making a withstanding voltage of 20V >>> a done deal, and that can be verified for the part. That's why I'm saying it's a good design. >> Actually, would substituting a 74HCT138 or 74ACT138 be a good solution? >> There's certainly protection diodes built into its outputs (MOS body diode). >> 74ACT138 can take 50 mA into its output pin. >> >> <https://www.ti.com/lit/ds/symlink/cd74act138.pdf> > > The problem with that is that the darlington would never turn off. > > John
Which is why we went back to the original 7445 device for this small run (Rotation 8 pinball by Midway) replacement MPU board. The open-collector was needed for allowing the TIP125 to turn off...we are going to make a simple tiny sub-board to sub the 7445 in for the 138 and use a couple of extra gates on the MPU to get the select logic right. The initial run was five PCBs, the next run will have the fix built in of course. Thanks for all the ideas folks - appreciate your efforts! Reworking 1970s tech can be fun! John :-#)# -- (Please post followups or tech inquiries to the USENET newsgroup) John's Jukes Ltd. MOVED to #7 - 3979 Marine Way, Burnaby, BC, Canada V5J 5E3 (604)872-5757 (Pinballs, Jukes, Video Games) www.flippers.com "Old pinballers never die, they just flip out."
On Friday, October 7, 2022 at 9:52:12 PM UTC-4, Ricky wrote:
> On Friday, October 7, 2022 at 7:10:22 PM UTC-4, Fred Bloggs wrote: > > On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: > > > On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: > > > > On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin wrote: > > > > > > > > <snip gibberish> > > > > > That's not clear. Got a schematic? > > > > > > > > > > He's wasting his time, there's nothing wrong with the original circuit. > > > > > > > > He's just one of those people who, when they can't understand something, think something is wrong. > > > > LS doesn't have ESD clamp diodes on its outputs, and, in fact, nothing is being avalanched by applying a very current limited 20V to its outputs. Maybe an insignificant elevated leakage is all that happens. The original circuit is well-designed and should be left as is. > > > I can see that the original circuit might work fine, but it does depend on parameters that > > > are not specified in the data sheet like the breakdown voltage of the output pull-down > > > transistor, so I wouldn't be comfortable calling it "well designed". > > Well I would and here's why. The ultra-fast (for its day) rise/fall times of the logic family brought transmission line effects into standard logic design. If the typical LS output gate transitioned a typical high impedance interconnecting trace to 5V, and that 5V pulse meets a high impedance input of another LS gate as its only load. The signal will be reflected 100% positively for 5V traveling back down the trace to the driver. Since the driver pulled high is high impedance, the returning pulse again is reflected positively 100% making the voltage at the driver output 10V. The new +5V transition sends a 10V edge traveling down the line to the LS input and gets clamped at 5V which is a full negative reflection to return back to the driver and reduce the 10V at the output node ideally to 5V etc. So we know for a *fact* the process has to be designed to withstand a repetitive 10V applied to the output. And that's not just withstand to survive, that's withstand with no internal circuit disruption. Typical margins are factor of 2x or more, making a withstanding voltage of 20V a done deal, and that can be verified for the part. That's why I'm saying it's a good design. > I thought I was following this ok, until I got to the point of the second wave being clamped at the LS input to the 5V rail. Is that were the case, how could the first reflection be above 5V? > > That aside, your whole description is pretty off track. The LS output driving the "high impedance" trace, does not pull up to 5V in the first place. The "high impedance" trace is not high enough to be ignored. The reality is the driver output will only drive hard to maybe 3.5V. Combine that with the trace impedance loading of around 110 ohms, and you get something like a 2V initial edge on the trace. This will be doubled at the far end reflection at the LS input, to about 4V. So there's no need to worry about over voltage from reflections.
Not going to get into those details. Theoretically your 4V return pulse would get doubled to 8V at the LS OUT pin, but it doesn't, and here's why. When the LS totem pole gets pushed into back bias, its current is immediately cut off, inducing the superposition of a 2.0V negative going pulse on the line. So the 4V incoming combined with that gets you back to your original 2V, and then the load sees a negative 2V step one line length delay later. Stuff like shows why you're okay using unterminated lines most of the time for combinatorial inputs- it's the clocked inputs that are the weak link, unterminated line reflections cause the infamous glitchy double clocking problems. TTL drive levels are too weak for a DC termination but they're good enough for an AC termination. The AC termination is a series R+C shunting the line to signal COM at the load. The R is the interconnecting trace/wire characteristic impedance, and C is selected for an RC time constant equal to signal transition time. That one works pretty well. It's only needed in extreme situations where the line has to be run over 18" or so for some reason.
> > It's been too many years since I've looked at waveforms of LSTTL signals on a scope. When I was looking at TTL signals, people didn't understand impedance matching very widely. But things worked pretty well without terminations. It was later that higher clock rates were attempted and people finally figured out that the signals were not reaching the other end of the trace perfectly when there was more than one receiver. Also, CMOS. > > -- > > Rick C. > > -+- Get 1,000 miles of free Supercharging > -+- Tesla referral code - https://ts.la/richard11209
Fred Bloggs wrote:
> On Friday, October 7, 2022 at 4:41:24 PM UTC-4, John Walliker wrote: >> On Friday, 7 October 2022 at 18:25:51 UTC+1, Fred Bloggs wrote: >>> On Thursday, October 6, 2022 at 10:50:15 AM UTC-4, John Larkin >>> wrote: >>> >>> <snip gibberish> >>>> That's not clear. Got a schematic? >>>>> >>> He's wasting his time, there's nothing wrong with the original >>> circuit. >>> >>> He's just one of those people who, when they can't understand >>> something, think something is wrong. LS doesn't have ESD clamp >>> diodes on its outputs, and, in fact, nothing is being avalanched >>> by applying a very current limited 20V to its outputs. Maybe an >>> insignificant elevated leakage is all that happens. The original >>> circuit is well-designed and should be left as is. >> I can see that the original circuit might work fine, but it does >> depend on parameters that are not specified in the data sheet like >> the breakdown voltage of the output pull-down transistor, so I >> wouldn't be comfortable calling it "well designed". > > Well I would and here's why. The ultra-fast (for its day) rise/fall > times of the logic family brought transmission line effects into > standard logic design.
Don't know that I've ever seen "LS TTL" and "ultrafast" in the same connection. ;)
> If the typical LS output gate transitioned a typical high impedance > interconnecting trace to 5V, and that 5V pulse meets a high > impedance input of another LS gate as its only load. The signal will > be reflected 100% positively for 5V traveling back down the trace to > the driver. Since the driver pulled high is high impedance, the > returning pulse again is reflected positively 100% making the voltage > at the driver output 10V.
In real life it's never that bad. LS doesn't drive heavy loads (i.e. 50-100 ohms) very fast in the positive direction, and the ~10 ns edges mean that a normal-size board is too small to give that much overshoot--the rise is still going on at the driver when the reflection arrives.
> The new +5V transition sends a 10V edge traveling down the line to > the LS input and gets clamped at 5V which is a full negative > reflection to return back to the driver and reduce the 10V at the > output node ideally to 5V etc. So we know for a *fact* the process > has to be designed to withstand a repetitive 10V applied to the > output.
Nah.
> And that's not just withstand to survive, that's withstand with no > internal circuit disruption. Typical margins are factor of 2x or > more, making a withstanding voltage of 20V a done deal, and that can > be verified for the part. That's why I'm saying it's a good design.
Your average NPN BE junction avalanches at about 6V, leading to progressively reduced beta as well as current loading. The duty cycles of the lights on that machine are probably less than 50%, so it'll be in avalanche most of the time. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics Briarcliff Manor NY 10510 http://electrooptical.net http://hobbs-eo.com