Capacitive Effects in the pn junction