Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- TK_SLEEP() is not declared. In which header is it? --- Quote End --- Can't remember Try # include <ucos_ii.h> Or maybe # include "osport.h" --- Quote Start --- I also recognized an other probelm. I can read the valu with the instruction "r2" and "r3" but if I read the value "r1" over the PIO my system hang and nothing more happens. What made I'm wrong that this happens if I try to measure the frequency over the "r1" instruction? --- Quote End --- You definitely have a problem in your function count_The_Frequency_Of_The_FAD(). I can't see the function body, but I guess it contains an infinite loop.