摘要 |
<p>The invention relates to a method and a generator for generating a short orthogonal spreading code in a CDMA radio system. The method comprises obtaining control data, i.e. (302) the length, (304) the running number and (306) the code class of the spreading code. A spreading code is formed such that (308) the running number of the spreading code in the code class in question is first denoted by a binary code number of the same length as the code class. Thereafter, (310) a modified code number is formed by reversing the code number. The following operations are repeated (312) for each chip of the spreading code: (314) the running number of the chip is denoted by a binary chip number of the same length as the code class, and (316) a binary sum is formed with an AND operation between the modified code number and the chip number, and (318) one value is formed for the chip of the spreading code with an XOR operation between all the bits of the binary sum.</p> |