摘要 |
PROBLEM TO BE SOLVED: To provide a microcontroller that can cope with various input signal levels while suppressing an increase in cost.SOLUTION: A microcontroller (1A, 1B) includes an internal circuit (16-21), a first input terminal (PIN1-PIN6, PIN1-PIN3) for inputting a digital signal, and an input interface circuit (10_1-10_6, 20_1-20_3) for receiving the signal (DIN11-DIN32, DIN1-DIN3) supplied to the first input terminal. The input interface circuit comprises an analog comparator circuit (30, HCMP, LCMP) for comparing the signal supplied to the first input terminal with a threshold voltage (Avref1-Avref3, Avref1H/1L-Avref3H/3L) and outputting a comparison result as a digital signal of a signal level depending on an operating voltage (VDD) of the internal circuit. The analog comparator circuit can change the threshold voltage. |