Page 1 of 1

Cyclic timer

PostPosted: Fri Aug 02, 2019 10:59 am
by SKyd3R
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!

Re: Cyclic timer

PostPosted: Wed Aug 07, 2019 9:34 pm
by jar
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.

Re: Cyclic timer

PostPosted: Thu Sep 05, 2019 9:51 am
by SKyd3R
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.