Hi,
You should have a look to the melab's site support section ...
example provided.
To answer your question ...
all depends upon the speed and duration of your incoming signal ...
Interrupts will ensure you'll catch the signal as soon as it "raises" ... but debouncing could be somewhat trickier ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks