FTM: Output Compare

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

FTM: Output Compare

1,051 Views
Sam_ECU
Contributor V

Hello @Daniel_Popa 

Are Output Compare Blocks for S32K with MBDT envisioned?

Sam_ECU_0-1650624576047.png

https://www.nxp.com/docs/en/application-note/AN5303.pdf

 

Regards,

Sam

 

0 Kudos
Reply
2 Replies

1,024 Views
Sam_ECU
Contributor V

Hello Marius,

Thanks for the reply, I'll have a look at the example.

 

Cheers,

Sam

0 Kudos
Reply

1,028 Views
mariuslucianand
NXP Employee
NXP Employee

Hello @Sam_ECU ,

Unfortunately, we have no plans to add blocks dedicated to the output compare functionality in S32K1xx.

However, MBDT generates code on top of the S32SDK for ARM, which provides a driver to handle this functionality. What can be done, easily is to add such functionality inside your model, using the custom code similar to how it has been described here https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/How-to-use-your-own-C-code-in-our-Toolbox-... 

You can start with an S32DS project, and generate all the C structures required by the ftm_oc_driver.c driver according to your requirements, and integrate such file inside your Simulink model, how it has been described in the article mentioned above. Please let me know if you are interested in using custom code to get this functionality.

Hope this helps,

Marius

0 Kudos
Reply