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
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
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