The invention discloses a digital-to-analog converter, which comprises a reference
voltage giving device, a bit weight network, N analog switching tubes and an
operational amplifier, wherein the reference
voltage giving device is used for providing a reference
voltage to the bit weight network; the bit weight network is used for respectively generating weight currents on N
branch circuits of the bit weight network according to the reference voltage; the N analog switching tubes are used for respectively controlling the switching on or off between the N
branch circuits and the
operational amplifier according to N paths of digital signals, and each analog switching tube comprises a charge absorbing module which is used for absorbing spurious charges released by the analog switching tube during switching transition; and the
operational amplifier is used for summing and amplifying the weight currents of
branch circuits in the N branch circuits which are accessed to the operational
amplifier, and then converting the weight currents into analog currents or analog voltages. According to the digital-to-analog converter, the charge absorbing modules absorb the charges generated by the analog switching tubes, and a
discharge channel is provided for the spurious charges, thereby the output of the digital-to-analog converter is not affected, the burr phenomenon at an output end of the digital-to-analog converter is effectively reduced, and the output characteristics of the digital-to-analog converter are improved.