Le 4 mai 2021, la plateforme Yahoo Questions/Réponses fermera. Elle est désormais accessible en mode lecture seule. Aucune modification ne sera apportée aux autres sites ou services Yahoo, ni à votre compte Yahoo. Vous trouverez plus d’informations sur l'arrêt de Yahoo Questions/Réponses et sur le téléchargement de vos données sur cette page d'aide.

?
Lv 7
? a posé la question dans Science & MathematicsPhysics · il y a 1 décennie

Making a bistable or flip flop is easy . How to build a Tristable? preferably from three logic gates?

Mise à jour:

its actually for a model rail system

there are three buttons RED GREEN and OFF

so there are only 3 possible combinations allowed . not the full 8 states of 3 bits

2 réponses

Pertinence
  • il y a 1 décennie
    Réponse favorite

    You need to define the rules. A divide by 3 circuit can be made from a few FFs, depending on conditions, if a divide by 3 is what you want.

    A SR FF has a set of rules.

    S R Q Qbar

    1 0 1 0

    0 1 0 1

    0 0 keeps previous state

    1 1 indeterminate

    what are the co-responding rules for your tristable FF ?

    edit:

    so the logic would be

    inputs outputs

    R G O R G O

    0 0 1 .. 0 0 1

    0 1 0 .. 0 1 0

    1 0 0 .. 1 0 0

    0 0 0 .. keeps previous state

    for the other states, I'd say off predominates over the other two

    x x 1 .. 0 0 1 (x = don't care)

    This can be implemented via two FFs or via two or 3 relays.

    With the two FFs, the Red and Green inputs go to the set inputs of each of the two FFs

    The Off input goes to the Reset or clear inputs of the two FF, in parallel.

    So the permissible states are:

    red on (green off)

    green on (red off)

    both off

    You also need a power clear circuit to force the FFs into the clear state when power is first turned on. Usually consists of a large cap to ground and a resistor to +5v. When the power first turns on, the cap stays near ground for a fraction of a second. This is fed through an OR or NOR gate into the reset/clear inputs of all FFs.

    .

  • Anonyme
    il y a 5 ans

    i don't probable comprehend you yet i would be depressed....... the place's the chocolate it is gonna be a downhill runnaway bus with purely a million solid tire left on it. WHHHHHHHHHHHYYYYYYYYYYYYYYYYYYYYYYYYYYYY... :-( WHHHHHHHHYYYYYY

Vous avez d’autres questions ? Pour obtenir des réponses, posez vos questions dès maintenant.