Quote Originally Posted by -Dan- View Post
Hi,
Has anyone got a sample program showing how to measure the frequency of an input, i want to measure the frequency of a transmitter.
i'm using a pic16f870, i've been reading the information on timer1 but i don't totally understand how to accomplish what i need.
Thanks
Dan
Straight from the manual...
COUNT Pin,Period,Var
Count the number of pulses that occur on Pin during the Period and
stores the result in Var. Pin is automatically made an input. Pin may
be a constant, 0-15, or a variable that contains a number 0-15 (e.g. B0)
or a pin name (e.g. PORTA.0).................
But seriously, what frequency range are you planning on counting?