Arduino Generic Logic Analyzer

This Arduino sketch implements a SUMP protocol compatible logic analyzer for the Arduino board supports up to 6 channels consisting of digital pins 8-13. On the Arduino Mega board 8 channels are supported and 7k of samples. Pins 22-29 (Port A) are used on a Mega.”

Link