[En-Nut-Discussion] High Speed timer

Ole Reinhardt ole.reinhardt at kernelconcepts.de
Thu May 12 17:51:46 CEST 2005


Hi All,

I have an exactly timed application where I'd like to use NutOS.

excatly:

I have 48 relais that are all controlled by I2C IO expander circuits.
All these relais have to be switched by an exaclty controlled timed
sequence. These sequence needs to have a precision of 1ms.

AFAIK NutOS can not handle timer with a precision less than 62.5 ms?

Does anybody has an Idea how to implement this?

An nother question concerning thread switching:

If I use one of the AVR timers (Timer 2 for example) to generate the 1ms
pulses and use NutEventPostFromIRQ to signal a waiting thread that
should send out the i2c commands to switch the relais, what would be the
latancy of thread switching? Can I guaranty a latancy less than a ms?

Best regards,

Ole Reinhardt


-- 
kernel concepts    Tel: +49-271-771091-14
Dreisbachstr. 24   Fax: +49-271-771091-19
D-57250 Netphen    E+ : +49-177-7420433
--





More information about the En-Nut-Discussion mailing list