cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
2,369 Views
Registered: ‎02-10-2012

Implementing a milisecond counter.

Jump to solution

Hello

 

I was trying to implement a counter with a time out of 3 or 4 milliseconds in my project. Can any one suggest how to go about it? In the lwip library i can implement a counter with a 250 milli second resolution ( Using the tcp timer callback functions ) can any one suggest how to get a counter with 3 to 4 seconds resolution?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Voyager
Voyager
2,994 Views
Registered: ‎02-10-2012

Re: Implementing a milisecond counter.

Jump to solution

I figured it out! . Just in case of reference for any one who wants to know how to do this in the future here you go :

 

http://www.xilinx.com/support/answers/23013.htm

 

just follow those steps and once you have the cycle count , you can program the time out accordingly.

 

Also this is helpful :

 

http://forums.xilinx.com/t5/EDK-and-Platform-Studio/How-measure-number-of-clock-cycles-that-one-function-takes-in-C/td-p/17586

 

 

View solution in original post

0 Kudos
1 Reply
Highlighted
Voyager
Voyager
2,995 Views
Registered: ‎02-10-2012

Re: Implementing a milisecond counter.

Jump to solution

I figured it out! . Just in case of reference for any one who wants to know how to do this in the future here you go :

 

http://www.xilinx.com/support/answers/23013.htm

 

just follow those steps and once you have the cycle count , you can program the time out accordingly.

 

Also this is helpful :

 

http://forums.xilinx.com/t5/EDK-and-Platform-Studio/How-measure-number-of-clock-cycles-that-one-function-takes-in-C/td-p/17586

 

 

View solution in original post

0 Kudos