When the alternating waveform is referenced to the ground, as
shown in the figure below, the zero-cross is detected too late as the waveform rises and
too early as the waveform falls. When the waveform is referenced to VDD, as shown in the figure below,
the zero-cross is detected too late as the waveform falls and too early as the waveform
rises. The actual offset time can be determined for sinusoidal waveforms of a known
frequency using the equations shown below.
This offset time can be compensated by adding a pull-up or pull-down
biasing resistor to the ZCD input pin. A pull-up resistor is used when the external
voltage source is referenced to ground, as shown in the figure below.
A pull-down resistor is used when the voltage is referenced to
VDD, as shown in the figure below.
The resistor adds a bias to the ZCD input pin so that the external voltage
source must go to zero to pull the pin voltage to the ZCPINV switching
voltage. The pull-up or pull-down value can be determined with the equations shown
below.
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.