Hi Ranjith Shanbhag,
You can consider to use 500HZ PWM function as the timer, not PWM output.
The timer is 1Khz, or others, it determined by your duty design.
When the according match happens, you enable the 100Khz output. when the next match happens, you disable the 100Khz, then you will this the wave you post in one pin.
Please try to modify it by yourself.
Normally, for the new question, you need to post the new case.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------