PIM
R2026bMeasure period and duty cycle of a pulse width modulation (PWM) input signal
Since R2026b
Libraries:
Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers /
AURIX TC4x
Description
Add-On Required: This feature requires the Embedded Coder Support Package for Infineon AURIX TC4x Microcontrollers add-on.
Pulse input measurement (PIM) block measures the period and duty cycle of a PWM input signal. The block uses the timer input module (TIM) of the generic timer module (GTM) or enhanced generic timer module (EGTM) on the Infineon® AURIX™ microcontroller board.
The block outputs the measured period in seconds and the duty cycle in percentage, both
as single-precision values. It also outputs status flags for new data
availability, timeout detection, and counter overflow as uint8
values.
To configure PIM peripherals, see PIM Peripheral Configuration.
Ports
Output
Parameters
Version History
Introduced in R2026b