Electronic Circuits and electronic circuits, electronic schematics plus an extensive resource for hobbyists, inventors and engineers

DiscoverCircuits.com, has 28,000+ electronic circuits or schematics carefully
cross-referenced into 500+ categories.   As a vital resource for engineers,
hobbyists, inventors & consultants, the site's collection of information
will help you find quick solutions to electronic design problems.

Discovercircuits Home Schematics Hobby Corner Dave's Circuits Electronic Resources DC-Magazine Contact Info

Web www.discovercircuits.com

Forum Registration   Forum Rules    Posting Images                               

 REMINDER: DON'T PUT ADS  IN FORUM POSTS - THEY WILL BE REMOVED!
Topic Options
#3832 - 07/23/05 06:35 PM JK flip flops
CoulombMagician Offline
rookie

Registered: 07/17/05
Posts: 130
Loc: San Jose, California
Here's one for the students. Suppose I'm using an FPGA or a CPLD with D flipflops and AND/OR/Inverter logic resources. I want to make two different kinds of JK flipflops, one with set dominant over reset and the other with reset dominant over set. How do I do this?

Top
#3833 - 08/13/05 04:25 PM Re: JK flip flops
ice_k99 Offline
newbie

Registered: 08/13/05
Posts: 3
Loc: Fort collins, co
Not exactly sure what you are talking about...maybe a web search can help you out. Info.com is a great web search engine...be specific and u just might find your results u need.

Top
#3834 - 08/16/05 02:43 AM Re: JK flip flops
CoulombMagician Offline
rookie

Registered: 07/17/05
Posts: 130
Loc: San Jose, California
I have made these two and other special versions of the "JK" flipflop before. I posted this question because it was one of my standard interview questions and I had always been surprised at how many EEs, especially FPGA designers, weren't familiar with feedback around a D flipflop. Much like a C programmer who isn't familiar with the underlying assembly language.

Top
#3835 - 09/05/05 09:00 AM Re: JK flip flops
mark Offline
newbie

Registered: 09/05/05
Posts: 16
Loc: wallingford
isnt that easy? just add an AND gate to each... so for when set is dominant, just have 'set' from outside world connected to 'set' input... and then inverted and connected to one input of the AND gate. Then have 'reset' from outside world into other input of AND gate. Then output of the AND gate goes to the 'reset' of the flip flop.

or have i got the wrong idea?

Top
#3836 - 09/08/05 02:19 AM Re: JK flip flops
CoulombMagician Offline
rookie

Registered: 07/17/05
Posts: 130
Loc: San Jose, California
The feedback goes into the D input, the output of a two input OR gate. One OR input is J, the set input. If it is high Q goes high on the next clock edge irrespective of K the reset input or the current state of Q. The other OR input is the output of a two input AND gate with ine inverted input. The inverted input is K and the noninverted input is the Q output. If both J and K are low Q is fed back into D and the FF retains it's state. If K is high and J is low the D input is low and the FF is reset, so J is dominant over K. Now interchange the OR and AND
gates and think about the behaviour, the reset is dominant over the set input. You can expand the number of gates and inputs to get various things like clocked D FFs, multi-input JKs, gated T FFs etc. It's all based on D FFs and feedback.

Top
#3837 - 09/09/05 05:29 PM Re: JK flip flops
T. Offline
rookie
*****

Registered: 06/23/05
Posts: 216
Loc: Georgia, USA
If you had asked me how to make a gated odd-length ring counter with JK flip flops, I could have told you - but alas, I am a newbie and my head is still ringing dully after reading the thread. Are there any set dominant over reset or vice versa conditions in an odd or even length ring counter? If there are it would be a great teaching point to explain.


-T.

Top


Moderator:  Dave Johnson 
Search

Newest Members
spelunker, steve319, todor, Dhonikapil, Paul Donnelly
3741 Registered Users
Who's Online
0 registered (), 26 Guests and 1 Spider online.
Key: Admin, Global Mod, Mod
Top Posters
Dave Johnson 2689
analog 971
Stalker 566
bootstrapbrown 259
T. 216
(Views)Popular Topics
modifying a pulse frequency? 122184
digital clock 79289
Shake to Charge Flashlight 71532
Seismic Earthquake Detector 63397
can't reconcile propagation time 54919
circuit to close relay when intercom rings... 54895
Website In India Robbed Our Material 42827
Anti-slosh circuit 40895
Current-dropping current source! 39836
Simple AC thermostat? 35848
Forum Stats
3742 Members
16 Forums
3312 Topics
14293 Posts

Max Online: 131 @ 11/19/11 05:52 PM


    Buy Faraday Switches
HOME Schematics Discover Forum Hobby Corner Electronic Resources Our Book Corner Contact Info
Discover Solar Energy Imagineering Ezine Dave Johnson & Associates
 About Us   |  Advertise on DiscoverCircuits.com   |   Report Broken Links  |    Link to DiscoverCircuits.com
Copyright  2002 - 2010 David A. Johnson & Associates.  All Rights Reserved to the contents & graphics of Discovercircuits.com
Linking is welcomed but COPYING any content or graphics to your server is expressly prohibited.