Hello @RegulusCheng
Thank you for your interest in Model-Based Design Toolbox for S32K3!
My understanding is that for the model to work as expected the value of SamplePin has to be 1 for 216 ns and then it should switch to 0. Based on the current Stateflow implementation, this will not be achieved, due to the way in which Matlab interprets the Stateflow code and how it is further generated into C code. If you try to assign 2 different values on the same variable on the same State action(e.g: entry, during, exit), only the latter will be kept.
More specifically, the Stateflow chart present in the attached project is "seen" as:

Therefore, no transition on the SamplePin output wil be detected, nor on the A0Pin and A1Pin.
Assiging those values on different State actions won't work either, since the time period between 2 model StepFunction calls is significantly larger than 216 ns.
You need to implement a mechanism that sends the first value, waits for ~216 ns(or slightly less due to basic instruction execution time) and then sends the second value on the desired variables.
I hope you find this short explanation helpful. Please let me know if I can assist you further.
Best regards,
Florin.