Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 12th April 2004, 06:51 AM   (permalink)
Default Help With a JK Flip Flop.

I have constructed this circuit which I found online. I powered it with 12v and with 5v and I cannot get it working. I have checked the connections 1000 times.

If somebody would like to offer a different idea, Im looking for a soft on off switch. I an going to use it so I can use my car alarm to control various of things in the car.

Can somebody please help!!! Im ripping my hair out!!!
Attached Images
File Type: gif soft_on_off2.gif (3.7 KB, 2622 views)
Hellraz0r1 is offline  
Old 12th April 2004, 02:30 PM   (permalink)
Default

I really don't see how this circuit could work. I think the idea was that if J and K are tied high, the output will toggle with a clock pulse. Looking at the datasheet, there is no such thing. A place to start would be to feed back the Q output to the K input, but I still don't think this is a good circuit. Although it looks like there is an attempt to debounce the switch, I don't know if it will give a sharp enough pulse to prevent multiple transitions of the JK.

If you just want an on-off, try this:

j.
Attached Images
File Type: gif Smart_switch.gif (5.9 KB, 2609 views)
John Sorensen is offline  
Old 12th April 2004, 03:54 PM   (permalink)
Default

The 4027 will in fact toggle on each rising clock edge when both J and K inputs are tied high. This is not obvious from the state table in the TI datasheet, but it's there. The HEF4027 state table is easier to decipher. I see no reason why the circuit won't work - although it may not do what HellRaz0r1 wants. What is meant by "soft on off switch"?
Roff is online now  
Old 12th April 2004, 05:40 PM   (permalink)
Default

Soft on off: the switch would be a momentary push button. It would push on, and then push off... Yeah all that circuit does is get hot and sit there.... cant figure it out
Hellraz0r1 is offline  
Old 12th April 2004, 06:07 PM   (permalink)
Default

Quote:
Originally Posted by Hellraz0r1
Soft on off: the switch would be a momentary push button. It would push on, and then push off... Yeah all that circuit does is get hot and sit there.... cant figure it out
It may get warm (probably not hot) if you don't have all the unused inputs of the spare flip-flop tied to a supply voltage rail (I would use GND). The circuit should still work. What do you have the outputs connected to, if anything?
Roff is online now  
Old 12th April 2004, 06:48 PM   (permalink)
Default

they arent connected to anything, they are connected to a multimeter... do i need to connect them to something so that there is a load? I also read the schematic wrong while i was getting my parts and mistook the 100n for nano and not micro. I have a 100uf electrolitic an a .1uf ceramic, which would you reccomend.
Hellraz0r1 is offline  
Old 13th April 2004, 12:15 AM   (permalink)
Default

Quote:
Originally Posted by Hellraz0r1
they arent connected to anything, they are connected to a multimeter... do i need to connect them to something so that there is a load? I also read the schematic wrong while i was getting my parts and mistook the 100n for nano and not micro. I have a 100uf electrolitic an a .1uf ceramic, which would you reccomend.
You don't need a load. I would use the 0.1uF cap for the switch debounce circuit.
Roff is online now  
Old 13th April 2004, 12:25 AM   (permalink)
Default

What if you tried tying the Q output back to the K input, and grounding the J input?

The part may be smoked by now, if it really is getting hot.

j.
John Sorensen is offline  
Old 13th April 2004, 05:09 AM   (permalink)
Default

Quote:
Originally Posted by John Sorensen
What if you tried tying the Q output back to the K input, and grounding the J input?

The part may be smoked by now, if it really is getting hot.

j.
If you do this, the Q output will go low and stay low on the first clock pulse, if it is not aready low. This is not the toggle mode. JKs are designed to toggle when both inputs are high. Below are the function tables for the Philips HEF4027 and the TI CD4027. The Philips table is easier to interpret than the TI datasheet table.
The HEF4027 also has a Schmitt trigger on the clock input, which is apparently not in the CD4027.
I also suspect that the part you have is dead, and you need to try another one.
Attached Images
File Type: gif jk.gif (17.1 KB, 2551 views)
File Type: gif TI_JK.GIF (46.0 KB, 2551 views)
Roff is online now  
Old 13th April 2004, 05:39 AM   (permalink)
Default Re: Help With a JK Flip Flop.

Quote:
Originally Posted by Hellraz0r1
I have constructed this circuit which I found online. I powered it with 12v and with 5v and I cannot get it working. I have checked the connections 1000 times.

If somebody would like to offer a different idea, Im looking for a soft on off switch. I an going to use it so I can use my car alarm to control various of things in the car.

Can somebody please help!!! Im ripping my hair out!!!
1. You need a Schmitt Trigger to speed up the clock signal. Use a 74C14, 40106, etc. Connect 2 Schmitt sections in tandem (in order to prevent inversion) between the capacitor and the clock input.

2. You don't need D1.

3. R1 should be about 100k in order to provide sufficient debounce.

4. Do you have a 100 nF capacitor across the IC supply pins?

5. The 4027 has Active High PR and CLR inputs. You have drawn them as Active Low.

Len
ljcox is offline  
Old 13th April 2004, 05:43 AM   (permalink)
Default

I REALLY REALLY all of this help but I cannot read datasheets, I can read schematics really well though. I got my CD4027 from jameco.

http://www.jameco.com/jameco/Products/ProdDS/12888.pdf

I dont think it has a schmidt trigger.

Also I was browsing this site and found these toggle circuits.

Would they be a good alternative because I do not have a schmidt trigger so Im gonna have to get some more IC's anyway.
Attached Images
File Type: gif 4013_184.gif (11.5 KB, 2534 views)
File Type: gif latch_102.gif (6.9 KB, 2533 views)
Hellraz0r1 is offline  
Old 13th April 2004, 03:21 PM   (permalink)
Default

Quote:
If you do this, the Q output will go low and stay low on the first clock pulse, if it is not aready low. This is not the toggle mode. JKs are designed to toggle when both inputs are high. Below are the function tables for the Philips HEF4027 and the TI CD4027. The Philips table is easier to interpret than the TI datasheet table.
If you look at the Philips datasheet, you're right. But if you read the TI datasheet, my idea should work. If (Q) K is low, J is DK, then following a clock pulse, Q goes high, K goes high, and so it goes. I find no fault with this logic, though maybe it isn't the preferred toggle mode for a JK. Just looking at the TI sheet, I would have called J=1 K=1 a "forbidden" state. I like the looks of the Philips on better :? .

Now, of course this all depends on nice sharp clocks...

j.
John Sorensen is offline  
Old 13th April 2004, 05:12 PM   (permalink)
Default

Quote:
If you look at the Philips datasheet, you're right. But if you read the TI datasheet, my idea should work.
I have included the TI CD4027 table below, with the lines numbered on the left.
Quote:
If (Q) K is low, J is DK, then following a clock pulse, Q goes high, K goes high, and so it goes.
There is no line where K is low and Q is low prior to clock. But if you look at line 3, you will see that, if J is low and Q is low, Q stays low after clock, regardless of the state of K.
Quote:
I find no fault with this logic, though maybe it isn't the preferred toggle mode for a JK. Just looking at the TI sheet, I would have called J=1 K=1 a "forbidden" state. I like the looks of the Philips on better :? .

Now, of course this all depends on nice sharp clocks...

j.
J=1 and K=1 is not a forbidden state. Line one says that if J=1 and Q=0, Q will change to 1 at clock time, regardless of the state of K.
Line 4 says that if K=1 and Q=1, Q will change to 0 at clock time, regardless of the state of J.
Taken together, this means that if J=1 and K=1, Q will toggle at clock time.
Ron
Attached Images
File Type: gif TI_JK_138.gif (44.1 KB, 2496 views)
Roff is online now  
Old 13th April 2004, 05:31 PM   (permalink)
Default

I just saw that Q column after the inputs (before the clock). I don't know how I missed it, but it makes a lot more sense if it's there! ops: Let me reconsider my idea.

j.
John Sorensen is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 06:11 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker