intermediate

Interrupts: Responding to Events Instantly

React to fast or rare events without polling: what an interrupt is, attachInterrupt with RISING, FALLING and CHANGE, interrupt-capable pins, the rules for writing an interrupt service routine, volatile variables and atomic access, the flag pattern, counting pulses for frequency, RPM and flow, ISR load and debouncing in an ISR.

65 min

Interrupts: Responding to Events Instantly

React to fast or rare events without polling: what an interrupt is, attachInterrupt with RISING, FALLING and CHANGE, interrupt-capable pins, the rules for writing an interrupt service routine, volatile variables and atomic access, the flag pattern, counting pulses for frequency, RPM and flow, ISR load and debouncing in an ISR.

In this lesson:

  • interrupt
  • isr
  • attachinterrupt
  • volatile
  • atomic
  • pulse counting
  • rpm
  • latency
  • race condition

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

Official References

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans