Re: SUMP compatible Arduino based logic analyzer.
Reply #13 –
I agree that AND is the "proper" way, but I have always been lazy when implementing it on tiny devices :) I set a change interrupt on the masked pins (with edge select in some PIC models), and start sampling on first interrupt.
assign trigger=(((pins[7:0] ^ trigger_value[7:0]) & trigger_mask[7:0])==0);
Here's the trigger used in the SUMP VHDL core from the Logic Sniffer. I recently used it in a CPLD demo project. I think it would probably work well in a microcontroller too.