The invention discloses a
pulse width modulation excitation and
pulse density modulation acquisition method, and relates to the technical field of electronic testing and measuring instruments, and the method comprises the steps: S1, employing a
pulse width modulation (PWM)
peripheral of a
microcontroller MCU, and cooperating with an external low-pass filter to generate an AC excitation
voltage; wherein one path of AC excitation
voltage is applied to a known reference
resistor to generate a
reference current, and the other path of adjustable balanced
voltage is applied to a to-be-tested device to generate a to-be-tested current. According to the
pulse width modulation excitation and
pulse density modulation acquisition method provided by the invention, traditional high-cost ADC and DAC components are abandoned, high-precision
alternating current excitation is generated by utilizing a built-in PWM
peripheral and an external low-pass filter of a
microcontroller, and meanwhile, an
error signal is converted into a PDM
digital signal flow through an analog
comparator; according to the invention, digitalization and simplification of
signal acquisition are realized, the
system cost and the complexity of
circuit design are greatly reduced, the expandability of the
system is obviously enhanced, and multichannel parallel measurement can be realized.