Community
cancel
Showing results for 
Search instead for 
Did you mean: 
emark4
Beginner
410 Views

hi i want to use some delay in my program between 2 actions how can i do it with nios 2 ??

 
0 Kudos
1 Reply
AnandRaj_S_Intel
Employee
45 Views

Hi,

 

Hi you can implement delay like below example.

for more information look into below link.

https://forums.intel.com/s/question/0D50P00003yyPN3SAM/nios-ii-delay-calculation

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/n2cpu_nii51015.pdf

int delay=1; int main() { while(1) for (delay=1;delay<=300000;delay++) {   } delay = 0; }

Regards

Anand

Reply