PCM operates by exploiting the different electrical resistivity of the amorphous and crystalline states. In the crystalline state, the material has low resistance and allows current to pass through easily. Conversely, in the amorphous state, the material exhibits high resistance. These states correspond to the binary data values of 0 and 1, respectively.