Latch problem (RS NAND)

Discussion in 'General Electronics Chat' started by Robin Mitchell, Oct 28, 2009.

  1. Robin Mitchell

    Thread Starter Well-Known Member

    Oct 25, 2009
    732
    200
    Hi guys,

    How do I use the RS NAND to remember an input because i cant get it to work, i am using the 4044...(i have millions)
     
    Last edited: Oct 28, 2009
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    An RS latch only retains the maintained input. It's not like a flip flop.
     
  3. Robin Mitchell

    Thread Starter Well-Known Member

    Oct 25, 2009
    732
    200
    Great :mad:
    Is there anyway?
     
  4. beenthere

    Retired Moderator

    Apr 20, 2004
    15,815
    282
    Use a SPDT toggle switch so the input only changes with the switch. Otherwise, you need a flip flop to hold the change. Then you have to have some means of resetting the flip flop later. IC level logic can be a bit tedious.

    An RS latch usually gets used for switch debouncing.
     
  5. Papabravo

    Expert

    Feb 24, 2006
    10,144
    1,790
    The problem with an RS latch made from NAND gates is that it requires 2 different inputs, one to set the latch and one to reset the latch.

    What you want is called a transparent latch. It takes samples of a logic input in the following way. If the enable is HIGH the input data is passed to the output; that is the transparent part. When the enable goes low the data present on the input is held as long as the enable remains low.

    Look at the 74xx373, where xx could be any available logic family suitable for your purposes.

    They are easy to implement in an FPGA using the following Boolean equation
    Code ( (Unknown Language)):
    1.  
    2. Transparent Latch for output Q, Input D, and Enable G
    3. Q = QG* + DG + DQ
    4.  
    Smart readers may well ask about the apparently redundant 3rd term, DQ, in the above equation. It is a so called "covering term" designed to prevent a logic hazard when the input "D" and the enable "G" switch at close to the same time.
     
Loading...