Forum Discussion
Help Please
Does anyone have any suggestions regarding the most straightforward (easiest) way to have a Nios processor evaluate inputs continuously during run time? Using Nios II software build tools for eclipse right now and doing run as hardware, it only evaluates input states once for each run. Thanks
4 Replies
- Altera_Forum
Honored Contributor
I doubt this is it, but the following code would do that:
while (1) { //evaluate inputs here } If you can post some sample code of what you are trying to do it may help people understand the question better. - Altera_Forum
Honored Contributor
checking the inputs in a while(true) loop will do. what do u exactly mean?
- Altera_Forum
Honored Contributor
thank you both. Ive had only a few programing classes, I've got refresh myself on these fundamentals. After running my program I thought I had to set up a Micro/0S or something, but both your suggestions work fine for now. This is for a senior design project, I'm trying to develop a digital synthesizer platform for guitar, as I'm an electronics engineering student this is expanding my boundaries.
- Altera_Forum
Honored Contributor
Thanks, I needed this too