All About Circuits Forum  

Go Back   All About Circuits Forum > Electronics Forums > Homework Help

Notices

Homework Help Stuck on a textbook question or coursework? Cramming for a test and need help understanding something? Post your questions and attempts here and let others help.

Reply   Post New Thread
 
Thread Tools Display Modes
  #1  
Old 05-10-2011, 08:55 AM
miklee miklee is offline
New Member
 
Join Date: Mar 2011
Posts: 8
Default sequence recognizer

I done a sequence recognizer for the string 1001 with FF JK

The equations are:
J1 = X' Q0
K1 = X + Q0
J0 = X + Q1
K0 = X'
Z = Q1 Q0 X

Now I have to simulate it with LTspice, but it doesn't work. The output of the FFs is always 0. Can you help me?
I simulated the circuit with an other logic simulator and it works, i don't know if I set some wrong value.
Thank you.
Attached Images
File Type: jpg riconoscitore jk.jpg (109.3 KB, 10 views)
Attached Files
File Type: asc recognizer JK schematic.asc (2.3 KB, 1 views)
Reply With Quote
  #2  
Old 05-11-2011, 10:43 AM
miklee miklee is offline
New Member
 
Join Date: Mar 2011
Posts: 8
Default

I remake the circuit using D FF (i change cause may the jkff downloaded from LTspice group don't works).

Equations:
D1=Q1 Q0' X' + Q1' Q0 X'
D0=X + Q1 Q0'
Z=Q1 Q0 X

I set the source V2 for the sequence 1001 (1st clock high value, 2nd and 3rd low value and 4th clock hight again). But when I start the simulation I have an error: "Analysis: Time step too small; time = 0.00012, timestep = 1.25e-019: trouble with dflop-instence a2"

Thank you
Attached Images
File Type: jpg riconoscitore D.jpg (92.0 KB, 7 views)
Attached Files
File Type: asc riconoscitore D.asc (2.5 KB, 0 views)
Reply With Quote
  #3  
Old 05-11-2011, 04:02 PM
Georacer's Avatar
Georacer Georacer is offline
Super Moderator
 
Join Date: Nov 2009
Location: Athens, Greece (GMT +2)
Posts: 4,870
Default

I ran your first circuit by hand and I disagree with something:
You have the state 00 as the Reset state.
With a '1' you go to 01 and you start reading the '1001' sequence.
A '0' drives you to 10.
Another 0 gets you to 11.
And then with the final '1' you go to 01, which should be your final state but it has been used before.

I understand that you tried to build a Mealy machine, but to be honest I don't trust them much in actual fast circuits. I would use a fifth state even though that would add another Flip Flop.

That said, your JK circuit works in theory as you would like to, but I don't know what problems your software might cause. Maybe you could make the input last a bit longer, in order to avoid gate delays and propagation of them.

For example, make a clock tick every 1ms and synchronize your input in the same period and make your '1's last at about half a ms.
__________________
.
I am a prisoner of high standards and low social skills
____________________________________

I wish I was the best at what I would do, and what I would do wouldn't be pretty.
Reply With Quote
Reply   Post New Thread

Tags
,


Related Site Pages
Section Title
Worksheet Boolean algebra
Video Lecture JK Flip-Flop - Digital
Worksheet Counters
Worksheet Simultaneous equations for circuit analysis
Worksheet Series and parallel AC circuits
Textbook Finite-state machines : Principles Of Digital Computing
Video Lecture Counters - Digital
Textbook Solving simultaneous equations : Algebra Reference
Textbook Finite State Machines : Sequential Circuits Counters
Textbook LED sequencer : Digital Integrated Circuits


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with a camera controlling sequence joshzstuff The Projects Forum 6 04-26-2011 10:26 PM
Led Sequence Rabster The Projects Forum 5 03-05-2011 11:49 PM
Need help to design a counter that follows a given sequence using D Flip Flops dragstang86 Homework Help 8 11-18-2010 07:42 PM
Sequence Counter with D ffs logicpro9999 Homework Help 3 04-03-2010 05:08 PM
fsm sequence recognizer xmadmaxx Homework Help 3 06-28-2007 07:19 AM

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:37 PM.


User-posted content, unless source quoted, is licensed under a Creative Commons Public Domain License.
Powered by vBulletin
Copyright ©2000 - 2014, vBulletin Solutions, Inc.