Clamping using PN junction

Making a clamping circuit using a PN junction

Clamping

Clamping output

Reverse the diode direction a apply negative voltages to clamp in the reverse direction.