A digital-to-analog converter of reduced number of elements and smaller area includes a reference
voltage generating circuit for outputting a plurality of reference voltages having
voltage values that differ from one another; a first logic circuit for outputting the result of a logical operation on a first bit group comprising even-numbered bits (or odd-numbered bits) of an input
digital data signal composed of a plurality of bits; a second logic circuit for outputting the result of a logical operation on a second bit group comprising the odd-numbered bits (or even-numbered bits) of the input
digital data signal composed of the plurality of bits; a switch group circuit for supplying first and second terminals with voltages selected, inclusive of voltages that are identical, from among the plurality of reference voltages, which are output from the reference
voltage generating circuit, in accordance with respective outputs from the first and second logic circuits; and an
amplifier circuit for outputting an output voltage that is the result of applying a predetermined operation to voltages supplied to the first and second terminals.