the amplitude is 5V the frequency of the low frequency is 100Hz and the high one is 5kHz both with duty 50%Give us an order of magnitude for the time intervals and some idea of the precision you need.
Are you familiar with how an "Output Compare" module works?
If you are and you have one available, then this sort of thing is pretty easy.
If not you have to work a bit harder.
I still think you should use an the output compare module with maybe a 500 kHz clock. 50 ticks will get you 100 µsec and 5,000 ticks will get you 10 msec. Is that about right?the amplitude is 5V the frequency of the low frequency is 100Hz and the high one is 5kHz both with duty 50%
by Duane Benson
by Jake Hertz