The present disclosure provides a method of fabricating a semiconductor device. The information may be used by an embedded processor of the motor to provide diagnostics andor prognostics of the motor, machinery operating in conjunction with the motor, andor a process in which the motor may be configured to operate. In this case, for the oxide of a first metal, the redox potential of a conduction band lower end in the oxide is on a rather negative side than 0.