[ECOS] Time base

Robin Farine acnrf@dial.eunet.ch
Tue Jan 15 00:07:00 GMT 2002


On Mon, 2002-01-14 at 18:02, Igor Trevisan wrote:
> Hi!
> 
> I've a problem with time-base: I need to check a certain event every
> 5ms, so I need a time-base resolution that is less than the 5ms 
> interval I have to deal with;
> I thought to create a high priority task that awakes every 5ms, 
> does some simple operations to handle "its" event and then
> sleep for other 5ms.
> How can I do this?

If your platform has a hardware timer capable of generating interrupts
and with the required resolution, then you could hook an ISR to the
interrupt vector associated with that timer.

> I'm working with a CirrusLogic EP7209 ARM core processor.
> I built a short test program to check real-time clock ticks interval
> duration and it seems to be about 10ms, that's really longer
> then what I would need!
> Thanks 4 the attenction you would pay to my question!
> 	Igor.

Robin

>   
> 
> 
> ------------------------------------------------------------------------------------------
>   >>>>>> BlueWind    Embedded Systems Design <<<<<<
>  Via Steffani, 7/b - 31033 Castelfranco V.to (TV) Italy
>  Tel: 0423-723431  Fax: 0423-744738  Mobile: 0335-7298820
> 
>  "Make things as simple as possible, but not simpler" 
>             (A. Einstein)
> 
> 
> 




More information about the Ecos-discuss mailing list