事件调度和中断处理
调度事件和处理硬件中断以处理 Arduino 的实时任务
针对各种架构的 Arduino® 板,使用外部和硬件中断提高系统对实时任务和事件的响应能力。
模块
External Interrupt | Trigger the downstream function-call subsystem from an Interrupt Service Routine |
Hardware Interrupt SAMD | Trigger downstream function-call subsystems from interrupt service routine for Arduino SAMD21 core (自 R2023b 起) |
Hardware Interrupt AVR | Trigger downstream function-call subsystems from interrupt service routine for Arduino AVR core (自 R2024a 起) |
Hardware Interrupt SAM | Trigger downstream function-call subsystems from interrupt service routine for Arduino SAM core (自 R2024b 起) |
Hardware Interrupt Teensy4 | Trigger downstream function-call subsystems from interrupt service routine for Teensy 4.0 and 4.1 Arduino compatible boards (自 R2024b 起) |
疑难解答
Workaround for Interrupt Workflow with Sensors
Follow the steps to use interrupts with sensors and the I2C protocol.
External Interrupts Workflow for Arduino
Follow the steps to use external interrupts in Simulink models.