Can I use two FTM Dual Edge Capture block?

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

Can I use two FTM Dual Edge Capture block?

跳至解决方案
2,955 次查看
utkuckmgl
Contributor III

Hello,

   I need to get two different time values which are Rising-Falling edge time and Rising-Rising time of one PWM signal. I'm changing duty cycle with potentiometer and assuming observe same duty cycle value from (Rising-Falling time)/(Rising-Rising time) calculation.

   Used different modules and different pins(I made connection of pins on breadboard with jumpers) caused error. I can take time values seperately but when I use two blocks at same time I have error. Can you please help me with this, thank you.

dualedgecapture.PNG

dualedgecaptureError.PNG

Regards

Utku Çekmegül

标记 (2)
0 项奖励
回复
1 解答
2,867 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello utkuckmgl@gmail.com‌,

Oh, I see that you are using the previous version 4.1.0. Now, I remember that this issue has been fixed in the latest release. You can find the patch in this community thread https://community.nxp.com/message/1254393 . Please apply the files from here!

Hope this helps,

Marius

在原帖中查看解决方案

5 回复数
2,867 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello utkuckmgl@gmail.com‌,

I can't reproduce it on my side.

Can you please tell me which MBDT for S32K are you using (run the ver command in Matlab and tell te results for MBDT). Also please consider attaching the model and the generated code :smileygrin:.

Thank you,

Marius

0 项奖励
回复
2,867 次查看
utkuckmgl
Contributor III

Hello mariuslucianandrei‌,

Here is my version;

Model-Based Design Toolbox for S32K1xx Series         Version 4.1.0       (R2017b-R2019a)

I also have;

MATLAB Version 9.6 (R2019a)
Simulink Version 9.3 (R2019a)

The complete model;

dualedgecapture2.PNG

Function block;

dualedgecaptureFunc.PNG

and error message on diagnostic viewer;

dualedgecaptureDiag.PNG

Thank you, regards

Utku Çekmegül

0 项奖励
回复
2,868 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello utkuckmgl@gmail.com‌,

Oh, I see that you are using the previous version 4.1.0. Now, I remember that this issue has been fixed in the latest release. You can find the patch in this community thread https://community.nxp.com/message/1254393 . Please apply the files from here!

Hope this helps,

Marius

2,867 次查看
utkuckmgl
Contributor III

Hello mariuslucianandrei‌,

I directly changed version of toolbox and it's working perfect. Thank you so much

Regards,

Utku Çekmegül

0 项奖励
回复
2,867 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello utkuckmgl@gmail.com‌,

That sounds great! 

Regards,

Marius

0 项奖励
回复