In this task,
A 124 kHz sinusoidal signal has been generated and modulated using a pulse with a duration of 100 ms and a duty ratio of 50%.
The source code is attached below