NXP Model-Based Design Tools

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

NXP Model-Based Design Tools

1,082 Views
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 Replies

825 Views
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

825 Views
chaymabarka
Contributor I

Thank you for your support 

0 Kudos
Reply