pic16f84a pulse counter

Status
Not open for further replies.

hermi12345

Newbie level 1
Joined
Apr 7, 2008
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,285
we're doing a project on 16f84a that needs to count pulses... any ideas how to do it?
 

pic16f84a 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
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…