Sequential 3 tone generation at different levels???
Frambo
Posts: 4
I have a project that I need to do the following:
1. Send a 2175 Hz tone for 125 ms @ +10dB
2. Send a 1950 Hz tone for 40 ms @ 0 dB
3. Send a 2175 Hz tone for 5000 ms @ -20dB
I understand how to send the above tone with FREQOUT but is there any level control in the BS2?
The tones above need to be sequential with no idle time in between.
Thanks for your help in advance!
Jim
1. Send a 2175 Hz tone for 125 ms @ +10dB
2. Send a 1950 Hz tone for 40 ms @ 0 dB
3. Send a 2175 Hz tone for 5000 ms @ -20dB
I understand how to send the above tone with FREQOUT but is there any level control in the BS2?
The tones above need to be sequential with no idle time in between.
Thanks for your help in advance!
Jim
Comments
There will always be a short time between the tones because the FREQOUT statement takes a little time to execute. EmeSystems has some discussion of execution time. Look at their app-note link.
1 : 0.316 : 0.0316
You could arrange resistors as a programmable attenuator, with one to the FREQOUT pin, with one directly to ground, and two others to auxiliary pins. When both of the auxiliary pins are INPUTs, you get +10dB, and when one or the other auxiliary pin is made LOW (in between FREQOUTs) you get the other two levels. Have to choose the values to give the correct ratios.
The higher power level may require an amplifier. For power levels you have to know the impedance. Supposing 0 dBm into a 600Ω load, that takes an RMS voltage of 0.775 V, or peak to peak, 0.775 * 1.414 * 2. = 2.191 V pk to pk. That could conceivably come directly from the Stamp output. But +10dBm into 600 Ω requires about 3 times that voltage, 6.93 V pk to pk. That will take an amplifier.
Would the Propeller be a better choice to develop this project with?
Thanks Again!
Jim
I think I will be going with the Stamp for simplicity.
Jim