Cyclic timer

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Cyclic timer

Postby SKyd3R » Fri Aug 02, 2019 10:59 am

Hello there!

I'm developing an open source operative system for the Epiphany III and I'm needing a cyclic timer that set the timer counts once the timer reach the 0 value.
At the moment the interrupt handler is resetting the value but this is missing some cycles and it is problematic if another interrupt is being handled.

Is there anyway to set the timer in a way it resets by itself?

Greetings!
SKyd3R
 
Posts: 10
Joined: Mon Apr 03, 2017 7:26 am

Re: Cyclic timer

Postby jar » Wed Aug 07, 2019 9:34 pm

Is there anyway to set the timer in a way it resets by itself?


Not with Epiphany III.

Your interrupt routine could start at a value 0xffffffff minus the number of clock cycles for timer interrupt reset. Your other interrupts could potentially stall and/or reset the timer if it's near 0.
User avatar
jar
 
Posts: 295
Joined: Mon Dec 17, 2012 3:27 am

Re: Cyclic timer

Postby SKyd3R » Thu Sep 05, 2019 9:51 am

jar wrote:
Is there anyway to set the timer in a way it resets by itself?


Not with Epiphany III.

Your interrupt routine could start at a value 0xffffffff minus the number of clock cycles for timer interrupt reset. Your other interrupts could potentially stall and/or reset the timer if it's near 0.

Thank you.

That's the kind of solution I made.
SKyd3R
 
Posts: 10
Joined: Mon Apr 03, 2017 7:26 am


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: MSN [Bot] and 3 guests

cron