Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Need help with Altera Avalon Iterval Timer

Status
Not open for further replies.

MrZol

Newbie level 4
Newbie level 4
Joined
Sep 20, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,341
HI

I made a Project in qu@rtus II 5.0sp1 Web edition, and in SOPC Builder, I added NIOS II cpu, AvalonTri-State Bridge to an external SRAM, Jtag UART and a Interval Timer. The system generation and hardware configuration went fine. When did a simple application for the design in Nios II IDE Evaluation Edition 5.0, it alsow worked fine, although the aplication didn´t use the Interval Timer. So I want to try the Timer.
I want to use the Intervall timer to mesure the time for som executions for example
Sum = 5;

So I want to initalize the timer, start it, then after the execution stop it and then read the value.
For example like this :

int main(Void)
{
int Sum = 0;
int Time = 0;

........ // Here I want to initalize the timer
........ // Start the timer

Sum = 5;

........ // Stop the timer
Time = ........ // Read the value of the timer

return 0;
}


Can someone give me an example C code.

/MrZ
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top