Higher FREQOUT resolution or PWM resolution
Andy McLeod
Posts: 40
I recently began working with a project to design and build some acoustic pingers for a free-floating spar buoy. I am using the BS2px to generate 30kHz pulses that run through a power amp and drive a transducer. The customer wants to be able to generate 'chirp' signals of various bandwidths around a center frequency. I intended to design a loop to step frequencies through a range established in a lookup table, but ran into an apparent PBasic limitation. Each step of the chirp must be better than 1ms, which seems to be the lower end of the FREQOUT capability. Does anyone know how to create PWM pulses of less than 1ms?
Comments
If not you might look at the PWMPAL.
Pretty nifty device.
The full cycle duration of PWM on the BS2px is 0.4 millisecond.
One piece of hardware that might help to tame the sweep would be a PLL, maybe a simple 8-pin tone decoder like the LMC567. Set it to the target frequeny, and then use the Stamp sweep it to to a nearby frequencies. It could sort of free wheel during the time the Stamp is looping.
Another option would be to move to a Propeller chip, and generate the main frequency with one of the counter modules.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
From 30khz to 50khz what is the resolution you need how many steps in between 30khz and 50khz
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think Inside the box first and if that doesn't work..
Re-arrange what's inside the box then...
Think outside the BOX!
FREQOUT 0,3,4146
FREQOUT 0,3,4478
... and so on for a stepped chirp.
Now, if I can figure out how to continually·trigger on a 1hz·PPS from a GPS, I'm on the done!
I bet it works well ......
Most OEM GPS modules have a 1hz PPS TTL output. You can use that to trigger your Basic Stamp on an input pin. The other option would be to parse the serial stream from the GPS.
Please elaborate......