• Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

counting pulses with micro.

Status
Not open for further replies.

t.man

New Member
i'm trying to count pulses using my AVR.
but i'm not sure how to accomplish that.
I was thinking of using timer interrupt using the same frequency as the pulses.

any idea?
 

ericgibbs

Well-Known Member
Most Helpful Member
i'm trying to count pulses using my AVR.
but i'm not sure how to accomplish that.
I was thinking of using timer interrupt using the same frequency as the pulses.

any idea?
hi t,
Does the AVR have an 'interrupt on change pin' function.?
 

Papabravo

Well-Known Member
Some of the timers in the AVR also have an input capture feature. It will provide an interrupt on rising or falling edges and record the value of the timer on that edge. You can measure time intervals between successive edges.
 

tytower

Banned
Phone rings would be detected with a 48V zener accross the line .Each ring is a 50V or so burst is it not? When the handset is picked up the line goes to 50V and stays there until hangup.
 
Status
Not open for further replies.

Latest threads

EE World Online Articles

Loading
Top