Triggering Interrups with external source

Hi all,

I have been experimenting with Unos a while now, and currently I wonder wether it may be advantageous (to get "real" multitasking), to hook an interrupt enabled pin to an external hardware (counter/pulse generator) and use the interrupt service routine for timing critical routines.

What do you think about such an approach? Has anyone ever been experimenting with it, and what were the findings? Is it worth to invest time into researching this approach, or a waste of time (why?).

Best regards,

Armin.

Write your code correctly and you don't need external interrupts.

You cannot do real multitasking. What happens if you get a task interrupt while writing to an SD card? What if the new task tries to read from a different file on the card?

To make real multitasking work you need a real operating system with drivers for handling hardware tasks like these.

The timer interrupt is already there. It is what drives "millis()".