- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm working on a senior design project with the DE2 board connected to external circuitry. My project is to design a heating controller which recieves inputs from two thermostats and then decides which heating unit to turn on. In my C code I have a while(1) loop so my program should run forever. However the program stops randomly when the inputs from the external circuitry change. Any suggestions on why the NIOS II IDE program will suddenly terminate? Thanks.Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try running in debug mode, press the "play" button to let the software run, then pause it when you know it's safe to do so to take a peak at what's going on. Also I'd put some breakpoints around the code affected by the external stimuli to see if the behavior you expected from your algorithm is indeed happening.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by badomen@Mar 29 2007, 04:49 PM try running in debug mode, press the "play" button to let the software run, then pause it when you know it's safe to do so to take a peak at what's going on. also i'd put some breakpoints around the code affected by the external stimuli to see if the behavior you expected from your algorithm is indeed happening.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22634)
--- quote end ---
--- Quote End --- Thanks for the reply. I'll try that out. I have another question unrelated to this post. For the project I'm working on, I have pushbuttons on the external circuitry which control leds. It turns out that those pushbuttons, which are Single-Pole-Double-Throw (SPDT) are not debounced. Therefore they give multiple outputs when I need clean signals. Any suggestions on how to build a debounced circuit for the SPDT pushbuttons in Quartus? Thanks. Kofi.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page