Part Number: LAUNCHXL-CC2640R2
What is the best way to generate a waveform using the LAUNCHXL-CC2640R2 (and possibly other tools such as Sensor Controller Studio)?
Specifically, I would like to generate a burst of square or sinusoidal pulses at a frequency of 40kHz and voltage of 5V for about 1ms. Then wait (stay idle) for 100ms. Then repeat the 1ms bursts. This loop should continue infinitely or until the program is terminated.
The time durations of 100ms and 1ms are flexible, these are just to provide an idea of the functionality. The basic goal is for the microcontroller to emit 40kHz pulses intermittently.
I am new to embedded programming, so I am wondering what is the best method. I read the Sensor Controller Studio can be used for waveform generation. I could also maybe use the AUX Timer 0 since it counts up to a specified delay value and then pulses an event output signal? But I am unsure of how I would set the frequency of this and make the pulse repeat for 1ms and then stay idle for 100ms.
Thank you in advance for the help.