An imaging device comprising: an imaging unit configured to perform an imaging operation; a data generator 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 , wherein the data generator includes a conversion unit configured to perform AD conversion, and the data generator 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 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 (TA) 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 (TB) 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 configured to perform an imaging operation; a data generator 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 , wherein the data generator includes a conversion unit configured to perform AD conversion, and the data generator 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 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 (TA) 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 (TB) 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). <EOS>