- Direct sequence spread spectrum systems appeared and are used to protect the transmitted data DSSS Systems might be one of the solutions for reliable and secured communications. Also, it is one of the approaches used by signals for transmitting bandwidth larger compared to the satisfied frequency related to the original information. The communication systems of SS were vital to suppress interference, complicating the detection and processing of secure communications, the technology of spread spectrum (DSSS) has been initially created for military applications. In a traditional DSSS system, the PN code is the primary key to make the receiver recover the transmitted data. In this paper, by using the MATLAB R2020a is used to simulate the proposed system, it is considered that the transmitter sends data bits and wants to protect the sent data by making each bit send with a PN code consisting of 127 bits randomly without informing the receiver of that. here the artificial neural network (ANN) was used as a tool to find the PN code for each initial value of 7 flip-flops. so, the receiver could detect the transmitted data with BER =0.