EveryCircuit
Contact
Reviews
Home
compiler413
modified 3 years ago

T-flip-flop based on RS-latch

0
2
296
01:55:07
This circut demonstrates how one can make an T-flip-flop using RS-latch. So, RS latch changes its state when rising (or falling) edge of the input signal comes to an input which is "opposite" to the current state of the latch. In order to make a circuit changing its state by each rising (or falling) edge of the input sequentially one can complete the RS-latch with the simple logic switching either the R input or or S input of the RS-flip-flop to the single common input the logic signal comes to. It can be implemented by connecting RS to the pair of AND elements having two inputs connected together and another inputs connected crosswise to the outputs Q and inv(Q) of RS-latch. Logically it's all clear here but such simpliest version of the circuit (containing only logic and RS flip-flop) won't always work properly (especially in EC since the delay adjustment affects simultaneously to all the components and can't be set separately say for RS and AND). Indeed when the latch starts to change its state with the coming input rising edge (for instance it comes to S input) the logic being connected to the outputs Q,inv(Q) quickly commutes opposite latch input (R) to the common input where the signal of high logic level exists still which forces the RS-flip-flop to switch to the reverse state and so on. This circumstance results that the circuit enters in some kind of oscillatory mode while switching and doesn't work as desired. So the auxillary R, C, VD components forms some proper "artificial" delay. The opened diodes perfoms a quick transition from high to low signal level for AND inputs but when the diode is closed the switching time from low to high level (at the mentioned inputs) is determined by parameters of RC-circuit. That's how it works. Note that the output state (red) changes by every rising edge of input (green) signal. In other words this circuit divides frequency of the input by 2.
published 3 years ago
592azy2circuitdude
3 years ago
Nice circuit. I've run into this same sort of time delay issue as well.
compiler413
3 years ago
Circuits of similar type look quite simple at first sight but including some important physical context about which system/circuit having several stable states is capable to switch among them correctly under some external impact of sufficient energy. In fact all such systems and their interacting combinations are models of discrete/"machine" time containing a kind of positive feedback which makes possible some avalange-like process to start, evolve in "real, physical" time an lead eventually to transition to another stable state. Each flip-flop whether it is electronic or mechanic nevermind actually contains inside something which is called "arrow of time" i.e. it works properly due to the distinction between the future and the past.. What does mean "(state, event)B is after A" - It means: "if A then B with probability so close to 1 that it's almost necessarily"

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy