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
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!
Well if it is a truth table you want, the link georacer gave has one ! Look :
Rich (BB code):
Truth table:
Truth table:
Clock D Q Qprev
Rising edge 0 0 X
Rising edge 1 1 X
Non-Rising X Qprev
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.