Logic analyser

Maybe you should have a look at this

http://arduino.cc/forum/index.php/topic,52881.0.html

Or buy a Saleae logic, it will be the best $149 you'll ever spend.


Rob