Notifications
Clear all

interrupts

4 Posts
3 Users
1 Likes
951 Views
(@outoftheblue1949)
Member
Joined: 4 years ago
Posts: 2
Topic starter  

could some body please simply explain what interrupts with microcontrollers.


   
Quote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1076
 

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


   
ReplyQuote
ZoolanderMicro
(@zoolandermicro)
Member
Joined: 4 years ago
Posts: 144
 

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


   
ReplyQuote
ZoolanderMicro
(@zoolandermicro)
Member
Joined: 4 years ago
Posts: 144
 

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


   
ReplyQuote