....thx ...thx...thx...because you have read my problem...(sorry but my english is miserable)....

I have a problem to write (programmer) this logic in C....here is the shematic...i hope it is legible......

----NAND-Operator-------Preset/not
_ _ _ |_ _ _
----NAND-Operator-----| J |--- Q/not
-----Clock-----------------|> Flip Flop|
----NAND-Operator-----|_ _ _ K _ _|--- Q
|
-----NAND-Operator-------Clear/not

thx thx htx thx thx thx thx thx thx thx thx...........
.....for help.....ups.....i need it for a project for my study...thx

2. I'm not sure I quite understand your problem. Try placing the schematic in code tags and explaining exactly what the purpose of it is as well as what you can't get to work.

-Prelude

3. hey dear,

i couldn't understand u dear,

so please simplify it,please take help of someone with a good english...

Code:
----NAND-Operator-------Preset/not
_ _ _ |_ _ _
----NAND-Operator-----| J |--- Q/not
-----Clock-----------------|> Flip Flop|
----NAND-Operator-----|_ _ _ K _ _|--- Q
|
-----NAND-Operator-------Clear/not
Ehm, well. You could start by first writing small functions for each block. Just like:

Code:
bool NAND (bool input1, bool input2)
{
return (!(input1 && input2));
}
Then connect the functions. Your scheme is not very clear, can you explain it?

5. I think he/she is trying to code a J-K Flip Flop.

6. Could be, but then the Q and !Q should be passed back to the input the first NANDs.

7. ## ooohhh....noooo!!!!

THX for all messages & your time............but i see the problem with my shematic...that look like a modern art....but really...iīm not Piccasso.... ;-).....only sometimes........

...this should be a JK-FlipFlop.....at their gates are &-Operators
(but they donīt be passed back from Q and !Q)

...my Question is....how can i realize the JK-FF with all inputs (Clock,Clear,Preset,J- and K-Input) and outputs like Q and !Q in C.....

....DrakkenKorin--> are right.....thx.....(i`m male)...i try to code a JK-FF....that is my problem.....

PS: special THX : Prelude;Ruchit;Shiro;DrakkenKorin for very fast answers