Creating an xor and xnor gate using only resistors, spdt/spst switches, and red LED d

Discussion in 'Homework Help' started by gslime422, Feb 21, 2013.

  1. gslime422

    Thread Starter New Member

    Feb 21, 2013
    5
    0
    Hello I am doing a simple project, where I have to create the logic gates using only the items listed. I have created a not,and,or,nand and nor gate thus far. However I am stuck in creating the xor and xnor gate. I figure I have to use spdt switches, but I do not understand the concept. Thank you

    note: this is suppposed to be done in multisim
     
  2. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    Think of how the lights in a stairway work where you have a switch at the top and a switch at the bottom. Flipping either switch toggles the state of the light. This is an XOR function. It is known as a "three-way" switch. Look into that.
     
  3. gslime422

    Thread Starter New Member

    Feb 21, 2013
    5
    0
    yeah i have read about that and understand the idea of an xor gate. basiclly the led should turn on when either of the switches are on, but not when either both of them are on/off. I just have no clue how to set up resistors and spdt switches to turn on this dang red LED in multisim
     
  4. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    Look up how a hallway or stairwell light is wired in a house.
     
  5. gslime422

    Thread Starter New Member

    Feb 21, 2013
    5
    0
    Okay so I would need two power sources? I'm not sure if I'm reading the descriptions right.
     
  6. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    Why would you need two power sources?

    Could you please provide a diagram of what you are thinking about? Also, provide a diagram for one of the circuits you have already done, say the NAND, so that we can use it as a basis for discussion.
     
  7. gslime422

    Thread Starter New Member

    Feb 21, 2013
    5
    0
    okay heres my nand i did on multisim. And i meant resistors * not power supply, sorry about that.
     
  8. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    Okay, now draw the circuit for a three-way switched light.
     
  9. gslime422

    Thread Starter New Member

    Feb 21, 2013
    5
    0
    heres my attempt at an XOR, although the best I could come up with is pretty much an OR gate. i don't really understand how to use the single pull double throw switches. Am i getting the right components? Is there anything I need to add/remove?
     
    • xor.jpg
      xor.jpg
      File size:
      121.9 KB
      Views:
      83
  10. WBahn

    Moderator

    Mar 31, 2012
    17,716
    4,788
    Have you looked up three-way switches? Do a Google search for "three-way switch" and look at the dozens of images that come up.
     
Loading...