Input Capture
Libraries:
Simulink Support Package for Arduino Hardware /
Common
Description
The Input Capture block measures the frequency and duty cycle of the external input signal on the digital pin of the Arduino® hardware board. The block utilizes the timer counters available on the Arduino hardware board along with the interrupt service routines to compute the frequency and duty cycle of the external input signal.
For more information on the conflicting usage of digital pins for a Simulink® model that uses one or more combination of PWM, Standard Servo Read, Standard Servo Write, Continuous Servo Write, and Input Capture blocks, see the Conflicting Pin Configurations on Arduino Timer section.
Limitation
Arduino Board Architecture | Maximum Measurable Frequency | Measurable Duty Cycle Range |
---|---|---|
AVR | 50 KHz | 20 % to 80 % |
SAMD | 400 KHz | |
SAM | 400 KHz | |
Nano 33 BLE Sense | 50 KHz |
Ports
Output
Parameters
Version History
Introduced in R2020b