Patent ID: 6388583
Filing Date: 2002-05-14
Classification: H04J

Abstract:
A method for code generation wherein the method involvessetting of a vector comprising bit strings of a plurality of bits; addition of a plurality of combinations of bits in said vector taking 2 as a modulus; input of each added result to a predetermined bit position; circular-shift of said vector; and output of the bit at said predetermined bit position, in generating a long-code of a mobile station set a long-code cycle in synchronization with that of a base station, the method further comprising the steps of: dividing one cycle in said long-code cycle of said mobile station into a plurality of sub-cycles; setting a combination of said sub-cycles, to express a time taking said sub-cycles as unit; previously generating mask data comprising a bit string corresponding to a number of cyclic shifts corresponding respectively to a period of a combination of said sub-cycles; when generation of said long codes is required, selecting a pre-set timing at timing taking said sub cycle as a unit in the proximity of immediately after the generation of said long codes is required; selecting said mask data corresponding to a period between said pre-set timing and the beginning of the long-code cycle including said pre-set timing; and starting said long-code generation from said pre-set timing, using a vector generated by sequential operation of said mask data and an initial value of said vector.