A code detector which may rapidly obtain initial code synchronization by generating different phases of a pseudo noise (PN) codes by a plurality of PN code generators. Also, the code detector implements multipliers in the code detector to perform simple and rapid multiplying operations of the output of the PN code generators.