A scrambling code generating apparatus of a downlink transmitter in a UMTS
mobile communication system, which uses one primary scrambling code for
separation of base stations and multiple secondary scrambling codes for
channel separation. The apparatus includes a first m-sequence generator
for generating a first m-sequence and a second m-sequence generator for
generating a second m-sequence. A first summer adds the first and second
m-sequences to generate the primary scrambling code. A plurality of first
masking sections each shift the first m-sequence, and a plurality of
second masking sections corresponding to the respective first masking
sections each shifts the second m-sequence. A plurality of second summers
each adds one of the first shifted m-sequences with the second m-sequence
corresponding to the first m-sequence. The output of the second summers
thus generates the multiple secondary scrambling codes.