configuring RB) as an interrupt pin

Status
Not open for further replies.

sjjm

Junior Member level 1
Joined
Apr 17, 2006
Messages
16
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,410
hie
I wld want to use RB0 to count the rising edges from a zero crossing detector. i will then count the number of pulsese.g 200 pulses.
pliz help me wit the code if someone has it

thanx
 

Hi,
You could do this by interrupt, but I think it would be very easy to count your pulses using RA4 T0CKI. Look up frequency counters. Here are a couple of links the first to a complete project (good one) and the second to a discussion on this board.
http://www.piclist.com/techref/piclist/weedfreq.htm

on this board, see:
which has some projects posted.
Hope this is of some help to you.
Regards,
Robert
 
Last edited by a moderator:

hai

using TMR0 or TMR1 in counter mode is very good to count
pulses. And it couts very well without missing a single pulses. Try to use this pins.
still if u have doubt send me a pm i will send u the exact code what u need
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…