Hello NXP engineers.
Test environment:
S32K314 + RTD2.0.2
* Autosar Version : 4.4.0
* Autosar Revision : ASR_REL_4_4_REV_0000
* Autosar Conf.Variant :
* SW Version : 2.0.2
* Build Version : S32K3_RTD_2_0_2_D2211_ASR_REL_4_4_REV_0000_20221129
I'm testing with an IPWM acquisition lost cycle problem.
IPWM clock 1M
A jump problem was found during testing of the 3K 50% duty cycle.
Troubleshooting with an oscilloscope, the waveforms from the hardware input to the MCU are correct. There is no cycle loss problem
And the value after the jump is basically around 1.5K, 75% duty cycle.
Based on the phenomenon it is suspected that the IPWM acquisition is missing a cycle?



1M clock, counting: 3KHz, 50% duty cycle. The count should be: period value ≈ 333, A-B ≈ 167.
According to the phenomenon, the pulse width is correct, but the duty cycle is calculated incorrectly because the period value is not correct.
The debug adds variables to save the time of arrival of each pulse edge:

The test found that the value latched into register B is just not right:
