PN Code Generation
PN Code Generation
PN codes are generated from prime polynomials using modulo 2 arithmetic. The state machines generating these codes are very simple and consist of shift registers and XOR gates
.
 
Masking will cause the generator to produce the same sequence, but offset in time
PN Offset (Masking)
Masking provides the shift in time for PN codes. Different masks correspond to different time shifts. In cdmaOne systems, Electronic Serial Numbers (ESN) are used as masks for users on the traffic code channels.