Photon energy absorbed outside the depletion region will produce carriers that are collected by diffusion and the response time of these carriers will be relatively slow. Figure 4 illustrates the transient response of a photodiode to a square pulse of radiation.