Introduction - If you have any usage issues, please Google them yourself
This the generation code for direct spread spectrum using pseudo-random noises.
it shows how to generate it and also is implemented bit error ratio and the checking of autocorrelation.