In this paper, we address the cell averaging (CA), greatest of (GO), and smallest of (SO) constant false-alarm rate (CFAR) processors for code acquisition in a homogeneous and a nonhomogeneous environment. The performance characteristics of the CA, GO, and SO processors are analyzed and compared when receiving antenna diversity is employed in the pseudonoise code acquisition of direct-sequence code-division multiple-access systems. From the simulation results, it is observed that the GO CFAR scheme has the best performance in a nonhomogeneous environment and has almost the same performance as the CA CFAR scheme in a homogeneous environment.