How to turn off and turn on PWM signal?

4 ビュー (過去 30 日間)
Yaswanth
Yaswanth 2024 年 3 月 6 日
コメント済み: Yaswanth 2024 年 3 月 7 日
I could not stop and start the PWM signal in a specifed interval of time.
For instance, the pulse should run for 0.02 sec and off for next 0.02 sec and repeate the sequence where the stop time is considered as 0.006 sec.
sample description of signal is attached for refernce.

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2024 年 3 月 6 日
  1. Generate the PWM signal that is always on. Its period or width could all change as needed.
  2. Generate another pulse signal. This is your switch signal.
  3. Do an "AND" logic on the two signals. When the pulse is high (1), the PWM signal is passed on. When the pulse is low (0), the PWM signal is turned off.
  1 件のコメント
Yaswanth
Yaswanth 2024 年 3 月 7 日
Thank you. It works....

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

カテゴリ

Help Center および File ExchangePulse and Transition Metrics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by