Pages: [1]   Go Down
Author Topic: event detector feasability  (Read 364 times)
0 Members and 1 Guest are viewing this topic.
silicon valley
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have a project where I need to detect a microsecond break in a dc signal. Given that the clockspeed of an arduino is in the MHz, would a loop that looked for a low signal, then kicked out a signal to turn on an LED be able to pick up such a short break? Thanks.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 525
Posts: 26538
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

That's what interrupts are for.
Can detect a signal that is I think 2 clock cycles in duration (0.125uS).
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

silicon valley
Offline Offline
Newbie
*
Karma: 0
Posts: 15
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! Just the answer I was looking for.
Logged

Offline Offline
Edison Member
*
Karma: 9
Posts: 1016
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

http://arduino.cc/it/Reference/AttachInterrupt
Logged

Pages: [1]   Go Up
Jump to: