Hello,
A spreading code is a pseudo-random code that has a narrow ambiguity function, unlike other narrow pulse codes. In CDMA a locally generated code runs at a much higher rate than the data to be transmitted.
To ensure multiple users on a CDMA system cause minimal mutual interference the spreading codes must be orthogonal - various different forms of code can be used.
Although using DSSS it is not possible to decode a signal unless the correct spreading code is used in the receiver, using CDMA, it is also necessary to ensure that the minimum level of mutual interference is caused between different users accessing a base station.
To ensure the minimum levels of interference orthogonal spreading codes must be used. Being orthogonal, the different CDMA signals are able to operative with little mutual interference.
The CDMA spreading codes are used to increase the bandwidth of the signal to gain the benefits of spread spectrum communications, but reducing the mutual interference requires the codes are orthogonal. There are different types of orthogonal code that can be used for CDMA
Thanks