Since the lightly doped impurity ion region n??? 409 adjoins the device isolation film 406 a, problems such as electron or hole carrier and leakage current may be caused at the boundary between the device isolation film 406 a and the photodiode region.