S12ZVC任务执行周期不对

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVC任务执行周期不对

633 Views
张三san
Contributor II

我参考下面的链接

(How-to) Multitasking on S32K144 MBDT Simulink 

制作了一个模型,应该是每1秒反转一次,但是在板子上表现为大约2秒反转一次。我不知道是什么原因。

我使用的板子:

DEVKIT-S12ZVC development platform for S12ZVC | NXP 

模型见附件

0 Kudos
1 Reply

530 Views
dumitru-daniel_
NXP Employee
NXP Employee

Hello, 

Do you have an oscilloscope ? It would be interesting to check the fundamental time stamp on your setup. For example, i would configure the Simulink time stamp to run at 0.1seconds and toggle a GPO (like a LED) and check it with the oscilloscope. That will confirm the board is set correctly. If that is not showing that the pin changes its value at each 0.1sec then there might be 2 causes: a logic error in the model, or even worst an issue in our toolbox.

Best regards,
Daniel

0 Kudos