Continue to Site

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.

  • 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?
 
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.?
 

Attachments

  • im.PNG
    im.PNG
    77 KB · Views: 393
Last edited:
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.
 
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.

New Articles From Microcontroller Tips

Back
Top