# D and T flip flop

Discussion in 'Homework Help' started by CSharpque, Nov 22, 2011.

1. ### CSharpque Thread Starter Member

Sep 23, 2011
40
0
hello
Can any one tell me the logic diagram and truth table of D and T flip flop using NAND to NAND or NOR to NOR gate?

Nov 25, 2009
5,151
1,266
3. ### CSharpque Thread Starter Member

Sep 23, 2011
40
0
Actually i want to develop a program for flip flop in C language. For that i want logic diagram (Circuit) an truth table for T and D flip flop. I have already seen lot of articles and sites for these but all say different diagram and truth table. So i confused which can be used and how i implement it in C language? I have already implement SR flip flop but confuse in these two.
Help me its urgent

4. ### CSharpque Thread Starter Member

Sep 23, 2011
40
0
any one help me for my question?

Sep 30, 2009
4,096
1,690

6. ### CSharpque Thread Starter Member

Sep 23, 2011
40
0
i have already search in Google and also read a book but no one says what are input and how it works? There is some previous state and next state value to be input.But how i don't understand.
ANyone help me!

7. ### lupinkr New Member

May 17, 2011
9
0
Well if it is a truth table you want, the link georacer gave has one ! Look :

Code ( (Unknown Language)):
1. Truth table:
2. Truth table:
3. Clock           D   Q   Qprev
4. Rising edge 0   0   X
5. Rising edge 1   1   X
6. Non-Rising  X   Qprev
7.
8.
The input is D, the output if Q. If the clock is on Rising edge, and the input is low, then Q will be 0 regarless of what was the value of Q before. If the input is high, then Q will be 1 regardless of Qprev. But in the case of Non-rising, then whatever input you put, Q will remain the same as it was before.