element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Dev Tools
  • Products
  • More
Dev Tools
Forum Latching Start Circuit using Flip Flops
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Dev Tools to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 16 replies
  • Subscribers 80 subscribers
  • Views 2364 views
  • Users 0 members are here
  • logic
  • digital
  • flip_flops
Related

Latching Start Circuit using Flip Flops

oldmanraskers
oldmanraskers over 10 years ago

I have been working on a CPLD project to run a state machine that will control a bunch of solenoids - I have mostly finished the hardware but now I'm moving onto the state machine. I can make the state machine conintually run, but what I really want is to implement a latching start/stop circuit that uses momentary pushbuttons... I want to be able to press start and have the state machine run (but I don't want to have to keep the start button pressed). I then want to press the stop button and make the state machine pause (again, i don't want to keep the stop button pressed). And finally, if I start the state machine but don't press the stop button, then I want the state machine to run to the last state and automatically stop. Thinking to years gone by, I kind of remember something about making a k-map for the start and stop inputs and building some s-r flip flop truth tables, but I can't remember and I also can't find exactly what I need on the web. I would be very grateful is someone could give me pointers on the method - I know I'm almost there image but it's years since I was taught this stuff and I simply can't remember image

Regards, MR.

  • Sign in to reply
  • Cancel

Top Replies

  • clem57
    clem57 over 10 years ago in reply to michaelkellett +1
    Did I miss something? Where is the logic for the state machine? Does it use a clock? Clem Edited: Ok see it now as attached.
  • michaelkellett
    michaelkellett over 10 years ago in reply to johnbeetem +1
    Hi John, I don't think we'll ever agree on this so I'm not trying to convert you When I design FSMs for FPGAs, I always do the state assignment (i.e., state encoding) by hand because I have no confidence…
Parents
  • michaelkellett
    0 michaelkellett over 10 years ago

    I assume that you are using the Quartus tool set from Altera.

    If you code in VHDL then you don't need to think about the gory details of flip flops.

     

    You do need to think about debouncing the buttons, very easy if they latch and you only need to see one condition - do you use separate start and stop buttons or is it the same one for both ?

     

    I'm going home now but I might be able to put a little framework together tomorrow.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • michaelkellett
    0 michaelkellett over 10 years ago

    I assume that you are using the Quartus tool set from Altera.

    If you code in VHDL then you don't need to think about the gory details of flip flops.

     

    You do need to think about debouncing the buttons, very easy if they latch and you only need to see one condition - do you use separate start and stop buttons or is it the same one for both ?

     

    I'm going home now but I might be able to put a little framework together tomorrow.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube