Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Help Please

Altera_Forum
Honored Contributor II
1,033 Views

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

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
322 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
322 Views

checking the inputs in a while(true) loop will do. what do u exactly mean?

0 Kudos
Altera_Forum
Honored Contributor II
322 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
322 Views

Thanks, I needed this too

0 Kudos
Reply