The carrier quantity and the depth (or thickness) of the P-type buried rings 118 may be controlled by adjusting implanting parameters such as the dosage, energy, and impurity of the doping process, and the annealing parameters such as the annealing temperature and annealing time.