Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Nios Timer problem!

Altera_Forum
Honored Contributor II
880 Views

Hi, it's me again! Sad, yes! I manage to write code to execute the trajectory simulation. This code I test in Qt work fine. But I have some trouble to implement it in nios because of the Interval Timer. I can't seem to make it work.

 

So I make a timer and start running if the start_moving signal is 1. And everytime the timer update the target will move a distance equivalent to v*t (with t = 0.2s fixed). I tried to use interrupt, everytime the timer finished a cycle of t it will call the function timer_isr to calculate the position of the target. But somehow it didn't work. It only displayed the first position and stop there. Can anyone give me some pointer how to fix it.

 

Please see attached

0 Kudos
0 Replies
Reply