NXP Model-Based Design Tools

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

NXP Model-Based Design Tools

1,474件の閲覧回数
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,217件の閲覧回数
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,217件の閲覧回数
chaymabarka
Contributor I

Thank you for your support 

0 件の賞賛
返信