[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RTEMS and clock frequency specification
- Date: Sun, 08 Nov 2009 19:04:07 +0100
- From: Thomas.Doerfler at embedded-brains.de (Thomas Dörfler)
- Subject: RTEMS and clock frequency specification
Hi,
recently I once again hit the problem (with a powerpc board) that the
"standard" resolution to specify the system bus (and decrementer) clock
rate is in microseconds.
The hardware I have here has a 133MHz bus clock and the DEC clock is
divided by 16, which results in a decrement rate of 8.325MHz. Since the
standard decrementer driver expects its input clock to be specified in
"ticks_per_microsecond", we would get a timing error of 4%, which is way
beyond the acceptable deviation.
Wouldn't it be time to move to a higher resolution? I really would
recommend to switch to "ticks_per_second" which would allow us to be
more precise?
wkr,
Thomas.
--
--------------------------------------------
Embedded Brains GmbH
Thomas Doerfler Obere Lagerstrasse 30
D-82178 Puchheim Germany
email: Thomas.Doerfler at embedded-brains.de
Phone: +49-89-18908079-2
Fax: +49-89-18908079-9