Pages: [1] 2   Go Down
Author Topic: Logic gates without transistors?  (Read 1548 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Edison Member
*
Karma: 29
Posts: 2360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset



i don't see how both diodes either and being triggered would not pull high to low? both diodes would do the same? i don't get how AND is made?
« Last Edit: March 23, 2013, 12:44:55 am by cjdelphi » Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I cant see what your talking about but



if 4 or 5 is low, then current is sinked thus logic = low

if both are high then current sinks though 1, thus logic = high
« Last Edit: March 22, 2013, 11:12:38 pm by Osgeld » Logged


Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17262
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you referring to the classic wired-AND gate using two diodes and a resistor pull-up?

http://upload.wikimedia.org/wikipedia/commons/thumb/9/9d/WiredAND.svg/220px-WiredAND.svg.png

Two high inputs equal a high output, either (or both) inputs low equals a low output, that statisfies the classic AND truth table.

Then you can contrast that with the classic wired-OR gate:

http://upload.wikimedia.org/wikipedia/en/8/82/WiredOR.JPG

Lefty
« Last Edit: March 22, 2013, 11:19:17 pm by retrolefty » Logged

Offline Offline
Edison Member
*
Karma: 29
Posts: 2360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, the image was not showing....  what's going on with those 2 diodes and pull up, so there's always 9v high ...   

I would presume either not both but either of the diodes would pull it ground? not both like an AND logic calculation
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17262
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sorry, the image was not showing....  what's going on with those 2 diodes and pull up, so there's always 9v high ...   

I would presume either not both but either of the diodes would pull it ground? not both like an AND logic calculation

You don't seem to understand how a truth table works. Just map out the four possible input voltage combinations (low-low, low-high, high-low, high-high) that are possible and the resulting voltage output for each of the conditions and see if you can't spot the AND function after all.

Lefty
Logged

Offline Offline
Edison Member
*
Karma: 29
Posts: 2360
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

[path deleted - seems to have been hijacked by a semi-porn site - Moderator]

if pin 11 and pin 14 are low (B and C of the binary output)

Reset triggers, but i don't understand why this circuit ONLY triggers off when both B and C are LOW, i don't understand
why would it not tigger off if B was low and C was high? B would provide a low signal to trigger reset?  how's the AND part
to this circuit working via the 2 diodes and a pull up?

« Last Edit: March 23, 2013, 01:09:18 am by CrossRoads » Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 524
Posts: 26433
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

But it is an AND.  Look at the truth table:

In1  In2   Out
0     0       0
0     1       0
1     0       0
1     1       1

Thus Wired AND - both inputs must be High for output to be High.

If Both needed to be High to make the output Low, that would be a NAND -  if you were to take that output and invert it using a NPN collector follower,

In1  In2   Out
0     0       1
0     1       1
1     0       1
1     1       0

And there's Wired OR, with diodes flipped around - either input High makes outpt High:
In1  In2   Out
0     0       0
0     1       1
1     0       1
1     1       1

If you were that output and invert it using a NPN collector follower, then you have NOR:

In1  In2   Out
0     0       1
0     1       0
1     0       0
1     1       0

In all cases, the diode serve to isolate the inputs from each other.

If either but not both were to affect the output, that would be Exclsive OR, XOR:

In1  In2   Out
0     0       0
0     1       1
1     0       1
1     1       0

XOR/XNOR more difficult to pulloff with just diodes & resistors tho.

and inverted, XNOR

In1  In2   Out
0     0       1
0     1       0
1     0       0
1     1       1

Generally, Wired OR and  Wired AND are all that's needed - if any of several inputs go low, the output goes low - such as with a keypad, pressing any key to Gnd can be used to create an interrupt and tell the code to go scan the keypad.

If you want action only with 1 or the other, that's easier to mimic in software - similar example, with multiple keys pressed, scan the inputs, if more than 1 was pressed, ignore the result.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 158
Posts: 2887
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

For historical reference, the diagram in reply #2 is probably about the very first AND
gate ever invented. Since you can't make a very good computer that way [ie, it loses
noise margin after about 3 gates in series], they added an NPN inverter to it's output,
and invented the modern computer world, starting from there.

http://www.google.com/search?&site=imghp&tbm=isch&source=hp&biw=1033&bih=858&q=diode+transistor+logic
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes, you can only do rather simple things with diode logic (though its fun to mess with)
Logged


SF Bay Area (USA)
Offline Offline
Tesla Member
***
Karma: 124
Posts: 6647
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which came first, diode logic or relay logic?
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would guess relay as it was introduced into practical application about 60 years before the diode (in practical application)
Logged


nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8472
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I had a calculator once that was entirely diode logic, there must have been 1000s of them plus some magnetic core memory as well and to top it off a nixie display.

I hope I've still got it somewhere.

As for relay logic, we built an entire runway lighting system using relay logic, flip flops, NAND, AND, OR gates etc were each a large PCB. All at 48V IIRC.

______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Edison Member
*
Karma: 64
Posts: 2463
Now, More Than Ever
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Which came first, diode logic or relay logic?

http://www.thocp.net/biographies/shannon_claude.htm
Logged

"Hello, I must be going..."
"You gotta fight -- for your right -- to party!"
Don't react - Read.
"Who is like unto the beast? who is able to make war with him?"

the land of sun+snow
Offline Offline
Faraday Member
**
Karma: 158
Posts: 2887
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Which came first, diode logic or relay logic?
Yeah, I knew someone would bring this up, ;-).
Logged

Worst state in America
Offline Offline
God Member
*****
Karma: 32
Posts: 792
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I cant see what your talking about but



if 4 or 5 is low, then current is sinked thus logic = low

if both are high then current sinks though 1, thus logic = high

That diagram reminds me of the logic gates used in the Apollo Guidance Computer.....
Logged

Gentlemen may prefer Blondes, but Real Men prefer Redheads!

Pages: [1] 2   Go Up
Jump to: