Arduino hardware for 1Mhz interrupt?

Hello everybody,

I'm using my Arduino Uno to do some datalogging of my car computer. :slight_smile:

It appears that this ECU uses serial communication between components with a 0-5V 1Mhz clock.

I tried to read the data with my Arduino Uno using this 1Mhz clock to trigger an interrupt, but it appears that my poor Arduino Uno is too slow to execute even a small amount of code inside this interrupt.

In a nutshell, the code inside the interrupt will have to remove the header bits of the frames and put the useful bits in RAM for further use.

I would like to keep up with some Arduino hardware, so I wonder if a more powerful hardware like Arduino Mega or Arduino Due could fit my needs?

Thanks in advance for your help.

so I wonder if a more powerful hardware like Arduino Mega or Arduino Due could fit my needs?

The Mega isn't "more powerful". It simply has more memory (both flash and SRAM) and more pins.

The Due is 5 times as fast, so it might be fast enough.

What's the spec/datasheet for this ECU? The Arduino can handle SPI at a clock rate of 8 MHz, but you don't do it by having an interrupt for each clock pulse.