A pn junction (D) shown in the figure can act as a rectifier. An alternating current source (V) is connected in the circuit.
The current (I) in the resistor R can be shown by
The given circuit acts as a half-wave rectifier and clips-off negative voltage. So, no current will flow in the negative cycle while I=VR will flow in the positive cycle.