gnupic: pulse counting using timer1


Previous by date: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Snail Instruments
Next by date: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Laurence Withers
Previous in thread: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Snail Instruments
Next in thread: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Laurence Withers

Subject: Re: pulse counting using timer1
From: Phil ####@####.####
Date: 5 Apr 2004 00:43:07 +0100
Message-Id: <200404050942.58448.phil@spiderweb.com.au>

On Sun, 4 Apr 2004 08:06, Greg Hill wrote:
> Phil -
>
> I'm doing a project with tmr1 on the 876a as well. I've ported the code in
> the Microchip app note about implementing a frequency counter in software
> from the 16Cxx chip they used to the 876A I'm using.
>
> Your code looks good; I can't think of a reason why it wouldn't work.

Thanks for the replies Josef and Greg,

A couple of hours after posting my question I discovered the answer and that 
was to move the T1CON initialisation outside of the code enclosed by the 
STATUS instructions. Unfortunately I didn't notice that a reply to my own 
question returned to myself, and not the list, until after I'd logged off.

Now that the counter works I've found that the circuit is very sensitive to 
electrical noise. Turning on or off nearby appliances causes the count to 
advance, sometimes by hundreds and this is with the PIC circuit being battery 
powered and port C0 grounded.

I'll have a search for the frequency counter project.

-- 
Regards,
Phil.



Previous by date: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Snail Instruments
Next by date: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Laurence Withers
Previous in thread: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Snail Instruments
Next in thread: 5 Apr 2004 00:43:07 +0100 Re: pulse counting using timer1, Laurence Withers


Powered by ezmlm-browse 0.20.