Connect with us

2's complement with JK and Multiplexer

Discussion in 'Electronics Homework Help' started by Claudiu, Jan 15, 2017.

Scroll to continue with content
  1. Claudiu

    Claudiu

    2
    0
    Jan 15, 2017
    Hi all ,
    I try to create a circuit who can show the 2's complement for 8 bit numbers.I have to use JK Flip Flop and Multiplexer but i am not understand how these are connecting.I have IC CD4027 but i don't know how to use it in combination with Mux and how many JK are necessary.
    Can someone give me an electrical schema or any advice?
    Thanks.
     
  2. Harald Kapp

    Harald Kapp Moderator Moderator

    11,662
    2,697
    Nov 17, 2011
    You do know how a 2's complement number is mathematically created from the input, do you?

    This is a mathematical operation involving subtraction or inverting and addition. In no way is a flip flop directly involved (other than maybe storing the input and/or output and thus serving as a latch only).
    It is possible to abuse the CD4027 as an inverter by using the set and reset inputs only (see datasheet, page 5).

    You're still missing the required adder function. That's where the multiplexer comes into play. You can construct an adder from a multiplexer.

    You now have inverters and adders, everything you need to make a 2's complement circuit.
     
  3. Claudiu

    Claudiu

    2
    0
    Jan 15, 2017
    Hi,
    I tried to make an circuit.
    I guess that now i have an inverter(CD4027) but i don't know how to create that adder with 74LS151N.
    Thanks.
     

    Attached Files:

    Last edited: Jan 18, 2017
  4. Harald Kapp

    Harald Kapp Moderator Moderator

    11,662
    2,697
    Nov 17, 2011
    Please upload a regular schematic diagram. Following a nest of wires on a breadboard is rather difficult (although you setup does look reasonably neat :D).

    Follow the last link in my post #2.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-