gct wrote:
> I'm trying to simulate a spread spectrum signal (a spread version of a pure
> tone). But I'm not quite clear on how to apply the code to the signal. My
> data is 16-bit integer but the code produces a bit at a time. So do I take
> 1 6 PN bits and XOR it with each element of the signal? Confused.
You're confused enough that you're confusing me.
I _think_ you're talking about direct sequence spread spectrum, I
_think_ the 'tone' you're talking about is coded digital data, and I
_think_ you think you clock the sequence at the same rate as your data.
What you _do_ with direct sequence spread spectrum is to generate a
pseudo-random sequence of bits at a much higher rate than the bandwidth
of your unspread signal, then modulate the signal with the bits.
Usually this is done by transmitting the signal straight through on a
'1' and inverting it's phase on a '0' (or visa versa), although you
could cook up fancier schemes.
The result is a signal that, to the casual observer, has a high
bandwidth with no particular spectral concentration. If you demodulate
it with the right method and sequence, however, you reconstitute the
original signal ready for demodulation.
Dunno if this helps -- try doing a web search on "direct sequence spread
spectrum".
--
Tim Wescott
Wescott Design Services
http://www.wescottdesign.com
Do you need to implement control loops in software?
"Applied Control Theory for Embedded Systems" gives you just what it says.
See details at
http://www.wescottdesign.com/actfes/actfes.html