lkml.org 
[lkml]   [2001]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: RTC !!
Date

npunmia@hss.hns.com said:
> The RTC interrupt is programmable from 2 Hz to 8192 Hz, in powers of
> 2. So the interrupts that you could get are one of the following:
> 0.122ms, .244ms, .488ms, .977ms, 1.953ms, 3.906ms, 7.813ms, and so on.
> Is there any workaround , so that i can use RTC for meeting my
> requirement of an interrupt every 1.666..ms!! ( I know that i can use
> UTIME or #define HZ 600, but i want to know if i can use RTC for this
> purpose )

You could also use the RTC for providing the system tick (You'd need to
make HZ a power of two, obviously) and then use the 8254 for providing your
600Hz interrupt.

--
dwmw2


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.037 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site