need to generate the square pulses with delay

5 views (last 30 days)
Hi every one......................firstly, i need to generate the 12 square pulses with 10% duty cycle at 20KHz Frequency and then after that need 20uSeconds delay the repeat the 12 cycles. i need this process repeated. how can i generate these pulses using simulink or simscape.

Answers (1)

Benjamin Thompson
Benjamin Thompson on 8 Feb 2022
In the Simulink Sources library, there are Continuous Pulse Generator and Discrete Pulse Generator blocks. Maybe use one for the 20 kHz signal, then one at the lower frequency to stop the pulse train at the right time using a Product block. If you have Stateflow you can model your signal with states and state transition delays a bit better to do the 20us delay. Not sure exactly what you are meaning about the 20 us specification but maybe trying something out and ask questions if you have problems with the Mathworks software?

Products


Release

R2021a

Community Treasure Hunt

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

Start Hunting!