FTM: Output Compare

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

FTM: Output Compare

1,053 次查看
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 项奖励
回复
2 回复数

1,026 次查看
Sam_ECU
Contributor V

Hello Marius,

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

 

Cheers,

Sam

0 项奖励
回复

1,030 次查看
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 项奖励
回复