Zero-Cross Detect (ZCD) Disable
The input bit always returns 0 , never 1. The signal is pulled to ground and can't be detected anymore (can't measure the high of the input). When the pin is configured as input, the device has about 0.7 V at the pin. Pulling the input to GND, still shows the voltage remains around 0.7 V.
The Zero-Cross Detect (ZCD) module can be permanently enabled upon power-up by clearing the ZCD Disable bit ZCDDIS/ZCD in the Configuration Word. Clearing this bit ensures that ZCDxIN is kept at a regulated and safe voltage as soon as the device is powered on. Therefore, ZCDxIN cannot be multiplexed with any other functionality. However, when ZCDDIS/ZCD is set, the ZCD can be enabled or disabled during firmware runtime by setting or clearing the Zero-Cross Enable ZCDxEN bit, respectively.