How to configure general purpose TIMER on f28379d TI c2000

15 ビュー (過去 30 日間)
Yanis Benmohammed
Yanis Benmohammed 2018 年 8 月 7 日
コメント済み: tcagdas 2023 年 3 月 21 日
Hello everyone,
I use the f28379D TI target on the MATLAB 2018a version. I need to use a Timer as independant time base to post interrupts under precise conditions. I see that ther is EV Timer blocks on the c281x librairie:
But about the f28379 I can not find anything that corresponds. Should I use a PWM module and set it?
Also, how to obtain the instaneous value of the timer in order to take action and post interrupts?

回答 (3 件)

Venkatesh Chilapur
Venkatesh Chilapur 2018 年 8 月 8 日
Please refer the example 'c281x_asyncscheduling_ert' in which the EV timer blocks are used. And the equivalent model for F2837x 'c2807x_2837xx_asyncscheduling_ert' in which the Timer functionality is realized using ePWM blocks.

Yanis Benmohammed
Yanis Benmohammed 2018 年 8 月 13 日
Hi Venkatesh, Many thanks for your response. But I would like to reset my Timer on an external evenement. How can I do that using the PWM block parameters?
Thanks.

Venkatesh Chilapur
Venkatesh Chilapur 2018 年 8 月 20 日
The Trip Zone unit in ePWM can be used to drive the output high/low based on the external event.
  1 件のコメント
tcagdas
tcagdas 2023 年 3 月 21 日
hi, can you share any example file?

サインインしてコメントする。

製品


リリース

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by