Rules | Recent posts | topic RSS | Search | Register  | Log in

pic16f84a pulse counter

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews
Author Message
hermi12345



Joined: 07 Apr 2008
Posts: 1


Post07 Apr 2008 19:12   pic16f84a pulse counter

we're doing a project on 16f84a that needs to count pulses... any ideas how to do it?
Back to top
Amrsfmt



Joined: 27 Jan 2007
Posts: 14
Helped: 4
Location: Egypt


Post03 May 2008 14:01   Re: pic16f84a pulse counter

There are alot of ideas to do this:

1- Set a pin as input and poll on this pin in the code and count changes or rising or falling edges.

2- Set Timer0 using an external clock and adjust the all the settings you want for the timer (prescaler , rising , falling edges or both, etc...) and use pin RA4 for counting.

Regards
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Software Problems, Hints and Reviews
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap