Digital Electronics/Lecture Flip-flops

History
The first electronic flip-flop was invented in 1919 by William Eccles and F. W. Jordan. It was initially called the Eccles-Jordan trigger circuit and consisted of two active elements (radio-tubes). The name flip-flop was later derived from the sound produced on a speaker connected with one of the backcoupled amplifiers output during the trigger process within the circuit. Note that this original flip-flop was transparent and thus probably would be labeled latch today (see here).

S R Latch
The S R Latch or set reset Latch is the root behind most flip flops.

One example of usage for this would be a simple security system. R is hooked up to a key to arm it and a trigger or switch on a door or window is hooked up to S to set it off.

For devices with a clock input it may be needed to tie the clock high or low (active low clock pin). 2-6V (TI CD74HC112) 3-18V (TI CD4027)

Logic Components
A SR latch is not a basic logic gate - rather it consists of 2 other NOR gates. The left most 2 NAND gates in the image below are only needed to add a clock functionality to the latch.
 * Schematic for usage
 * Different Devices

J K Flip Flop
For the most part the J K flip flop is the same as a SR latch except that when both inputs are high the output will toggle with the clock rather than being an unstable state as with the SR latch. Some flip flops also feature a preset and clear pin which operates asynchronously to the clock. Setting preset high will set Q high and clear will set Q clear regardless of the clock state. For devices with a clock input it may be needed to tie the clock high or low (active low clock pin). 2-6V (TI CD74HC112) 3-18V (TI CD4027)

logic components

 * Schematic for usage
 * Different Devices

T Flip Flop
Toggle Flip Flop, an edge trigger flip flop. Assuming the input port named "T", controlling signal named "clk" and the output port named "Q"; then @edge of clk (positive edge or negative edge according to flip flop design) the output "Q" toggles its value iff input "T"='1' otherwise the output "Q" sustains its value.

notice that the flip flop senses the "T" at the edge of "clk"; thus any changes occurs in "T" value at any other time is ignored

it's a JK flip flop with "J" and "K" connected together to form the input "T"
 * logic components


 * Schematic for usage
 * Different Devices

D Flip Flop
An edge trigger flip flop. Assuming the input port named "D", controlling signal named "clk" and the output port named "Q"; then @edge of clk (positive edge or negative edge according to flip flop design) the output "Q" takes the value of the input "D"; otherwise the output "Q" sustains its value.

notice that the flip flop senses the "D" at the edge of "clk"; thus any changes occurs in "D" value at any other time is ignored

it's a JK flip flop with "J" connected to the input "D" and "K" connected to the inverted value of input "D".
 * logic components


 * Schematic for usage
 * Different Devices

Notes and references
https://en.wikibooks.org/wiki/Digital_Circuits/Latches

https://en.wikibooks.org/wiki/Digital_Circuits/Flip-Flops