Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top