S32K144 GPO Output pulse is different from Simulink scope

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K144 GPO Output pulse is different from Simulink scope

248 次查看
HyeonJun94
Contributor I

Hello everyone

I’m trying to generate an engine crank signal using two GPOs of the S32K144 EVB via Simulink. The signal has 60 teeth with 2 missing teeth, and during the missing teeth section, one of the GPO outputs is held high (1) while the other is held low (0) to represent an intermediate 'idle' state.

In the attached Simulink model, when I observe the combined waveforms using a Scope block, the output appears as a clean square waveform, and the idle section is clearly and correctly shown.

However, when I implement this on the actual S32K144 EVB, I connect each GPO output through a 1k Ohm resistor and combine them to observe the waveform on an oscilloscope. In this case, I notice that the idle state appears very briefly between every pulse, not just at the missing teeth section.

Simulink_Result.pngActual_Result.jpg

I’m wondering why there is a discrepancy between the Scope output in Simulink and the actual waveform from the hardware. Could this be due to a mistake in my hardware setup or Simulink configuration? I would appreciate any guidance or suggestions.

Thank you!

标记 (2)
0 项奖励
回复
0 回复数