Lars,=20 Do not feel hurt by Olin's posting. Almost nobody avoided some olinization here. By the way, my Outlook 6 shows your message=20 quite acceptably.=20 =20 Regarding frequency measurement, you should, I think, give us more details: - Your RC oscillator frequency, amplitude, impedance - 16F877 frequency - Desired accuracy Mike. Olin wrote: > Now you've made it even worse. This time your message=20 > had two separate MIME documents, both quoted printable. =20 > One was text, the other was HTML. Lars Th=C3rnqvist wrote: > Best Pic'ers, >=20 > I'm trying to measure a frequency created from an RC oscillator using > a > 16F877. My problem is that my program takes to long to "find" the > frequency, and it never stabilizes even though the input signal is > constant. >=20 > Have anyone done this before using CCS or any other C-compiler? >=20 > Any idea how to do this? Right now I'm trying to calculate amount of > interrupts I get during a specified time period (Using built in > timer)... but as I said... It never stabilizes well enough. >=20 > So which pin is best to measure with? And which kind of auto ranging > method is best to use to get a fast an accurate measurement? >=20 > Any input is highly appreciated. >=20 > Thanks, >=20 > Lars T -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.