NXP Model-Based Design Tools

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

NXP Model-Based Design Tools

1,472 次查看
chaymabarka
Contributor I

Hello, 
I'm working on TWR-KV10Z32 eval board, and i'm using Motor Control Toolbox on Simulink to generate code. 
I would like to generate an interrupt when there's a timer overflow, but the bloc that enables that interrupt, attached in the figure below, can only enable the interrupt for module 1 and 2, while i'm using FTM0 (Module 0). 

pastedImage_1.png

In the help, it's mentionned that i can configure module 0

pastedImage_2.png

What  can i do to generate the FTM0 overflow interrupt? 

Thank you for your support.

2 回复数

1,215 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hi chaymabarka‌,

The TOF is designed to work in conjunction with:

pastedImage_4.png

or

pastedImage_3.png

Only these blocks can generated a TOF in our current implementation. Please be aware that the generated code is based on the SDK drivers. By the time of the release only this functionality was implemented.

In case you wish to extend the toolbox functionality you could use the Simulink Coder and add your custom code into the Simulink model.

Hope this helps! and sorry for not being able to provide you a workaround with the existing blocks.

Daniel

1,215 次查看
chaymabarka
Contributor I

Thank you for your support 

0 项奖励
回复