Interrupt

nounStandard termElectronics

A hardware or software signal that forces a processor to pause its current task and execute a specific routine.

An interrupt alerts a CPU or microcontroller that an immediate event requires attention, such as a timer expiring or a peripheral receiving data. The processor saves its current state, runs an interrupt service routine (ISR) to handle the event, and then resumes its previous workload. This avoids the inefficiency of constantly polling pins for changes.

Heard on the job

The button press isn't registering because the debounce circuit is triggering the interrupt too many times.

Insider tip

Keep interrupt service routines as short as possible. Doing heavy lifting inside an ISR will stall the rest of the system.