High resolution timer in driver

Wolfgang Denk wd at denx.de
Tue Apr 27 04:06:49 EST 2004


In message <20040426164104.21828.qmail at web41503.mail.yahoo.com> you wrote:
>
> I am writting a device driver. I have a requirement
> that i need a timer base interrupt serive routine
> which shall be called 1024 times in a second. But my

Find an unused timer on your processor, install an interrupt  handler
for it, and finally programm it in periodic mode with f=1024 Hz.

Where is the problem?

> understanding is saying that i can call it only once
> in a second through generic linux timer.

This is definitely wrong. Wrong twice, at least.

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
They say a little knowledge is a dangerous thing,  but it is not  one
half so bad as a lot of ignorance.   - Terry Pratchett, _Equal Rites_

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list