AnsweredAssumed Answered

MBD based stateflow timestep problem

Question asked by hao xue on Jun 30, 2020
Latest reply on Jul 7, 2020 by hao xue

hello

I have a question when i use the stateflow in the MPC5744P_MBD.

I want to use stateflow to do some pin voltage-level changes for some communication,

But when i do a simple test, every index++ in simulink-stateflow is inconsistent with index++ in MCU(200MHz index++ instruction will take ~50ns).

For example,.

When this program is downloaded to the MCU by openSDA, "Sample" pin was measured by oscilloscope with a period of 1ms. Why not 50ns*40=2us?

Can you help me explain it?

thank you very much.

best regards

hao

Attachments

Outcomes