JK flip-flop built from op amps?

Thread Starter

xox

Joined Sep 8, 2017
936
Where do you trying to use that circuit and why the standard digital ic as 74HC76 or CD4027 that they can't match what you need?
Sure, those would be the natural choice. I was just wondering if it could be done with op amps.

Also just crossed my mind that a simple relaxation oscillator could possibly be modified to do the job, but still a little hazy in my mind's eye as to how that might work...
 

MrChips

Joined Oct 2, 2009
34,866
Sure, you can do it with op amps. You can also do it with two transistors.

But you did not say what type of flip-flop you would like to implement, D, T, J-K, R-S?
 

Thread Starter

xox

Joined Sep 8, 2017
936
Sure, you can do it with op amps. You can also do it with two transistors.

But you did not say what type of flip-flop you would like to implement, D, T, J-K, R-S?
Well all the others seem to be most easily adapted from the JK-type, so preferably that one. I did think about using a transistor multivibrator as a building block, but control circuits based on transistors are just such a hassle; more complex circuit interactions, instabilities due to transistor mismatches and temperature variations, higher component counts, etc, etc.
 

MrChips

Joined Oct 2, 2009
34,866
Sorry, missed the J-K in the title.
In that case, it is not worth the effort. Go buy an off-the-shelf J-K flip-flop such as 74HC112.
 

MrChips

Joined Oct 2, 2009
34,866
It is the other way around. Start with something simple before moving to the more complex.
Build an R-S flip-flop using two transistors.
 

Thread Starter

xox

Joined Sep 8, 2017
936
It is the other way around. Start with something simple before moving to the more complex.
Build an R-S flip-flop using two transistors.
What I'm aiming for here is a single op amp configuration, which is most likely going to be based on some very different principles of operation. That said, the transistor versions still may come in handy for comparison so I will definitely keep them in mind.
 

AnalogKid

Joined Aug 1, 2013
12,158
A J-K flipflop has three inputs, so right there an exact version of one cannot be made from a single opamp. Beyond that, a J-K is a clocked flipflop, so an opamp version would need several amps plus diodes or open-collector outputs for the combinatorial functions.

It can be done if you are dedicated enough. There are projects on the innergoogle where an LED clock is made from all opamps.

ak
 
Last edited:

MrAl

Joined Jun 17, 2014
13,720
This would be a fairly useful circuit, I think. Anyone know of a working example of something like this?
Hi,

Your question title reads, "op amps", which is the plural form of "op amp", meaning more than one op amp.

With that in mind, you can make any logic circuit you like with op amps as long as it does not have to work at super high speed like regular logic gates and flip flops. The fastest op amp will never create a flip flop as fast as the fastest logic will because the fastest logic is designed to take advantage of certain features of the sub components so as to get maximum speed without regard for linearity.

The transformation is somewhat easy to visualize.
We start with an op amp that is wired as a comparator. Using resistors and a comparator we can make any type of gate we want:
OR, AND, NOR, NAND, INVERT

using more than one comparator we can also make an XOR gate.

Given that we can make any gate with comparators and we can wire an op amp as a comparator, that means we can make any gate with op amps.

Also, any type of flip flop can be made with logic gates because flip flops are just gated cross coupled logic gate arrangements.

Given that a flip flop of any kind can be made with logic gates and given that we can make any logic gate with op amps, with enough op amps we can thereby make any type of flip flop with op amps. As addressed above, the usable speed will always come into question however.
 
Last edited:

Thread Starter

xox

Joined Sep 8, 2017
936
An op amp flip flop might still be useful. You can get op amps at a few cents per op amp, but buying different logic stuff can get expensive. Sometimes you need a flip flop but only have op amps and other stuff.
Plus op-amps a lot more stable than logic gates (not so sensitive to static electricity and such).
 

danadak

Joined Mar 10, 2018
4,057
An op amp flip flop might still be useful. You can get op amps at a few cents per op amp, but buying different logic stuff can get expensive. Sometimes you need a flip flop but only have op amps and other stuff.
And then there is tiny gate logic, very low cost -

https://www.fairchildsemi.com/collateral/TinyLogic.pdf

http://www.ti.com/lit/sg/scyt129g/scyt129g.pdf


But I do not see a J-K there.



Then there is PSOC, drag and drop and make your own logic (and
wire up to pins using click and mouse) -

upload_2018-9-26_16-6-53.png

See attached component list. A component is an onchip resource.
You can also design custom logic using verilog on this chip.


Regards, Dana.
 

Attachments

AnalogKid

Joined Aug 1, 2013
12,158
As above, a true JK flipflop circuit that meets all of the logical conditions will take several opamps plus other components.

ak
 
Top