## Chapter 6. - Flip Flop Simulations |
Take the Quiz |

In this section we will be looking at some LabView simulations of
the four flip-flops discussed on the previous page. If you are unfamiliar
with LabView then please goto the LabView
Tutorial Page. Simulations to run are as follows: - SR type Flip-flop or Set / Reset
- T type Flip-flop or Triggered /Toggle
- D type Flip-flop or Data / Delay
- JK type Flip-flop
## SR Flip-flop - (Set / Reset)Getting started: - Open the simulation in LabVIEW
- In the front panel view, click on the button indicated in the LabVIEW tutorial to start the simulation.
- To resolve any simulation startup issues, click the LabView button
labelled
**clock**a few times. - In front of you there will be a representation of a SR flip-flop with three buttons (S, R and Clock) and two indicators (Q and Q'). The clock button is there so you can work through the simulation at your own pace.
A little task to do:
To download the example, "right click" the link below and click "save target as". You can then run LabView and open the downloaded file. SR Flip Flop Simulation (you may need this file to run some simulations). The answer to this task can be found at the bottom of this page. ## T flip-flop (Triggered / Toggle)Getting started: - Open the simulation in LabVIEW
- In the front panel view, click on the button indicated in the LabVIEW tutorial to start the simulation.
- To resolve any simulation startup issues, click the LabView button
labelled
**clock**a few times. - In front of you there will be a representation of a T flip-flop with two buttons (T and Clock) and two indicators (Q and Q'). The clock button is there so you can work through the simulation at your own pace.
A little task to do:
To download the example, "right click" the link below and click "save target as". You can then run LabView and open the downloaded file. T Flip Flop Simulation (you may need this file to run some simulations). The answer to this task can be found at the bottom of this page. ## D type flip-flop (Delay)Getting started: - Open the simulation in LabVIEW
- In the front panel view, click on the button indicated in the LabVIEW tutorial to start the simulation.
- To resolve any simulation startup issues, click the LabView button
labelled
**clock**a few times. - In front of you there will be a representation of a D type flip-flop with two buttons (D and Clock) and two indicators (Q and Q'). The clock button is there so you can work through the simulation at your own pace.
A little task to do:
To download the example, "right click" the link below and click "save target as". You can then run LabView and open the downloaded file. D Flip Flop Simulation (you may need this file to run some simulations). The answer to this task can be found at the bottom of this page. ## JK flip-flopGetting started: - Open the simulation in LabVIEW
- To resolve any simulation startup issues, click the LabView button
labelled
**clock**a few times. - In front of you there will be a representation of a JK type flip-flop with three buttons (J, K and Clock) and two indicators (Q and Q'). The clock button is there so you can work through the simulation at your own pace.
A little task to do:
JK Flip Flop Simulation (you may need this file to run some simulations). The answer to this task can be found at the bottom of this page. ## Answers to the tasks## SR Flip-Flop:Your piece of paper should have the state change table looking something
like this: ## T Flip-Flop:If you compare the operating characteristics of a JK flip-flop to a
T type flip-flop, then you will be able to see that if J=K then the
operating characteristics of a JK flip-flop equal that of a T flip-flop.
If J=K=0 then the output at Q(t+1) goes to Q(t), the same as if T=0.
The same scenerio is true when J=K=1 as T=1 and this has the property
that Q(t+1) goes to Q'(t). Compare the information for yourself: ## D Flip-Flop One D type flip-flop can store one bit of information for one clock
cycle. To have eight bits of information, simply arrange eight flip-flops
in parallel with a common clock. Your diagram should look like this: ## JK Flip-FlopThe first task is relativly straight forward. By manually clocking
the flip-flop, and systematically setting the different inputs, you
can see the output that each different input provides. By leaving J=K=0,
the output will remain at its previous state. If J=1 and K=0, then the
output on the next clock cycle will goto logic 1. The output will goto
logic 0 if J=0 and K=1. If both J and K equal 1, then the next output
will be the inverse of the current output. Your readings should look
like this: The second task is quite easy once you have identified that a T type
flip-flop has the property of frequency division as mentioned here.
To turn the JK flip-flop into a T type flip-flop, compare the two operating
characteristics diagrams. From this observation, it can be seen that
if we tie inputs J and K to logic 1, our JK flip-flop will now function
like a T type flip-flop in one state only (remember you are given logic
levels 0 and 1 in the task specification). Have a look at this LabVIEW simulation of a JK type flip-flop operating
like a T type flip-flop. JK Flip Flop as a freqency divider (you may need this file to run some simulations). |