I am working on a zero crossing detector circuit. Can anyone please explain the function of highlighted circuit?
Q1 and D5 act as a pair of anti-parallel diodes allowing current to flow both ways through C1
when C1 is charging the current flows through D1, when discharging through Q1s base to it emitter.
This discharging turns on Q1 lighting the LED
The claim that this is a precision zero crossing detector seems dubious.
Here's a simulatable version of the circuit:
The key thing to note here is that the charging time constant (when Q1 is cut off) is controlled by R3, and at 220 ms, is much longer than the half-period of the line frequency. Therefore, C1 spends most of its time charging, and only discharges during the brief dips in Vrect around the zero-crossings. As Jasen notes, Q1 conducts and turns on the LED only when C1 is discharging. (R3 provides the base current for the transistor.)
The output current pulses are pretty much centered on the zero crossings, so I'm not sure about the "precision" part of the description. To me, a "precision" circuit would have either the leading or trailing edge of the output pulse precisely aligned with the actual zero crossing.
D1-D4 form a bridge rectifier that will charge C1 up to about 1/20th of the peak voltage of the incoming AC power. (R1 + R2 are 440K, R3 is 22k 440/22 = 1/20).
During this time that C1 is charging the current will flow through C1 and through D5. This will reverse bias the base emitter junction of Q1 so it will not pass any current.
For a short period at the the end of each 1/2 cycle of the incoming AC the voltage will will drop to a low value and C1 will start discharging into R3 via the base emitter junction of Q1. (The emitter will be negative with respect to the base). This in turn will cause a pulse of current to flow in the collector of Q1 through the optocoupler LED from C1 (which is still charged at this time).
The pulse of current will cause the output transistor of the opto-coupler to draw current and cause the output voltage to pulse to ground for a short time (500us-1ms).
These pulses will be centred on the zero-crossings of the input signal.