TMS320F28027: Simulink SCI transmit disable

1 回表示 (過去 30 日間)
Roger Roger
Roger Roger 2017 年 5 月 3 日
コメント済み: Roger Roger 2017 年 5 月 9 日
Hi, I'm using simulink to program TMS320F28027 microcontroller. Each second a two bytes buffer is being sent to SCI transmiter (the function called by interruption INT9.2 is empty). I would like to send the data only when I want, not periodically (p.e. when a switch is on, etc). I don't know how to do so because in Sample time you must put a real number. Any ideas? Thank you very much. PD: do not take into account ADC-PWM Synchronization via ADC Interrupt...

採用された回答

Antonin
Antonin 2017 年 5 月 9 日
You can use an "Enabled Subsystem" and put your SCI Transmit block inside to only send when you want. The control of the enabled subsystem can come from a switch or any other signal.
I hope it helps!
  1 件のコメント
Roger Roger
Roger Roger 2017 年 5 月 9 日
Thanks!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by