PCM converts an analog signal into a digital signal using pulse code modulation. It samples the analog signal at regular intervals and quantizes the amplitude of each sample into binary code. The digital signal is then transmitted as a sequence of coded pulses. At the receiver, the digital signal is decoded and reconstructed using a low-pass filter to recover the original analog signal.