• 06-09-2002
nobody
....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
• 06-09-2002
Prelude
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
• 06-10-2002
s_ruchit
hey dear,

i couldn't understand u dear,

so please simplify it,please take help of someone with a good english...
• 06-10-2002
Shiro

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?
• 06-10-2002
DrakkenKorin
I think he/she is trying to code a J-K Flip Flop.
• 06-10-2002
Shiro
Could be, but then the Q and !Q should be passed back to the input the first NANDs.
• 06-10-2002
nobody
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