could some body please simply explain what interrupts with microcontrollers.
A few years ago I explained the basics of interrupts in one of my videos:
Hopefully, that will help you. I've been considering doing another one to explain pin-change interrupts and interrupt masks, but those are more advanced techniques.
😎
Bill
"Never trust a computer you can’t throw out a window." — Steve Wozniak
Excellent video! I need to experiment with interrupts. In the video demonstration, both motors (through the optical sensors) are sending interrupts to the Arduino. How does the Arduino handle simultaneous interrupts?
ZoolanderMicro, where small ideas are a big deal
Things that make you say 'Hummm'. Apparently, external interrupt events are noted (flagged) and the ISRs are executed in order of priority. INT0 executes first, and clears its flag. Then INT1 executes and clears its flag. That's a distillation of information gleaned from a StackExchange forum. Perhaps a closer look at the TimerOne library would clarify.
ZoolanderMicro, where small ideas are a big deal