An analog input device, which converts an analog signal input to the analog input device to a digital signal and outputs the digital signal that is converted, the analog input device comprising:
- a high resolution analog to digital converter executing an analog to digital conversion to the analog signal with a first resolution and outputting a first digital signal that is converted;
- a first microcomputer including a first low resolution analog to digital converter, the first low resolution analog to digital converter executing an analog to digital conversion to the analog signal with a second resolution and outputting a second digital signal that is converted, and the second resolution being lower than the first resolution;
- a second microcomputer including a second low resolution analog to digital converter, the second low resolution analog to digital converter executing an analog to digital conversion to the analog signal with the second resolution and outputting a third digital signal that is converted;
- a first comparator comparing the first digital signal output from the high resolution analog to digital converter with the second digital signal output from the first low resolution analog to digital converter as a first comparison process;
- a digital signal output unit outputting the first digital signal when a result of the first comparison process indicates that a difference between the first digital signal and the second digital signal is equal to or less than a predetermined first threshold, and the digital signal output unit stopping an output of the first digital signal when a result of the first comparison process indicates that the difference between the first digital signal and the second digital signal is larger than the predetermined first threshold;
- and
- a switching unit permits or forbids an output of the first digital signal to the first comparator according to an instruction output from at least one of the first microcomputer or the second microcomputer,
- wherein
- at least one of the first microcomputer or the second microcomputer includes a second comparator that compares the second digital signal output from the first low resolution analog to digital converter with the third digital signal output from the second low resolution analog to digital converter as a second comparison process,
- when a result of the second comparison process indicates that a difference between the second digital signal and the third digital signal is equal to or less than a predetermined second threshold, the second comparator controls the switching unit to permit the output of the first digital signal to the first comparator, and
- when a result of the second comparison process indicates that the difference between the second digital signal and the third digital signal is larger than the predetermined second threshold, the second comparator controls the switching unit to forbid the output of the first digital signal to the first comparator.