An imaging device comprising: an imaging unit (9, 10) configured to perform an imaging operation; a data generator (20, 43) configured to generate first power supply voltage data (VCODEH; VCODEM; VCODEL) corresponding to a first power supply voltage (VDDH; VDDM; VDDL), the first power supply voltage (VDDH; VDDM; VDDL) being supplied to the imaging unit (9, 10), wherein the data generator (20, 43) includes a conversion unit configured to perform AD conversion, and the data generator (20, 43) is configured to generate the first power supply voltage data (VCODEH; VCODEM; VCODEL) by the conversion unit performing the AD conversion on a basis of the first power supply voltage (VDDH; VDDM; VDDL); and a voltage detection unit configured to generate a first detection voltage (VDDH34) and a second detection voltage (VDDH12), the first detection voltage (VDDH34) and the second detection voltage (VDDH12) are both based on the first power supply voltage (VDDH; VDDM; VDDL),wherein the data generator (20, 43) is configured to generate the first power supply voltage data (VCODEH; VCODEM; VCODEL) on a basis of a difference between a result (CODEA) obtained in a first period by the conversion unit performing the AD conversion on a basis of the first detection voltage (VDDH34) and a result (CODEB) obtained in a second period by the conversion unit performing the AD conversion on a basis of the second detection voltage (VDDH12); and a flag generation section configured to generate a flag signal (XERR) for the first power supply voltage (VDDH; VDDM; VDDL) by comparing the first power supply voltage data (VCODEH; VCODEM; VCODEL) and first reference data (THmax; THmin). an imaging unit (9, 10) configured to perform an imaging operation; a data generator (20, 43) configured to generate first power supply voltage data (VCODEH; VCODEM; VCODEL) corresponding to a first power supply voltage (VDDH; VDDM; VDDL), the first power supply voltage (VDDH; VDDM; VDDL) being supplied to the imaging unit (9, 10), wherein the data generator (20, 43) includes a conversion unit configured to perform AD conversion, and the data generator (20, 43) is configured to generate the first power supply voltage data (VCODEH; VCODEM; VCODEL) by the conversion unit performing the AD conversion on a basis of the first power supply voltage (VDDH; VDDM; VDDL); and a voltage detection unit configured to generate a first detection voltage (VDDH34) and a second detection voltage (VDDH12), the first detection voltage (VDDH34) and the second detection voltage (VDDH12) are both based on the first power supply voltage (VDDH; VDDM; VDDL),wherein the data generator (20, 43) is configured to generate the first power supply voltage data (VCODEH; VCODEM; VCODEL) on a basis of a difference between a result (CODEA) obtained in a first period by the conversion unit performing the AD conversion on a basis of the first detection voltage (VDDH34) and a result (CODEB) obtained in a second period by the conversion unit performing the AD conversion on a basis of the second detection voltage (VDDH12); and a flag generation section configured to generate a flag signal (XERR) for the first power supply voltage (VDDH; VDDM; VDDL) by comparing the first power supply voltage data (VCODEH; VCODEM; VCODEL) and first reference data (THmax; THmin).