主要内容

事件调度和中断处理

R2026b
调度事件和处理硬件中断以处理 Arduino 的实时任务

针对各种架构的 Arduino® 板,使用外部和硬件中断提高系统对实时任务和事件的响应能力。

模块

External Interrupt blockExternal InterruptTrigger the downstream function-call subsystem from an Interrupt Service Routine
Arduino Hardware Interrupt IconHardware Interrupt SAMDTrigger downstream function-call subsystems from interrupt service routine for Arduino SAMD21 core (自 R2023b 起)
Arduino AVR Library Hardware Interrupt Block IconHardware Interrupt AVRTrigger downstream function-call subsystems from interrupt service routine for Arduino AVR core (自 R2024a 起)
Arduino SAM Library Hardware Interrupt Block IconHardware Interrupt SAMTrigger downstream function-call subsystems from interrupt service routine for Arduino SAM core (自 R2024b 起)
Arduino Teensy4 Library Hardware Interrupt Block IconHardware Interrupt Teensy4Trigger downstream function-call subsystems from interrupt service routine for Teensy 4.0 and 4.1 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.

精选示例