1, circuit design, meet the impedance, voltage conversion, driving ability request, note that the DAC output current is only a few microamps of STM32 2, sine wave transformation, the ADC - & gt; Computing - & gt; DAC, the calculation formula of Vin + Vout (Vin * * Vout)/(Vmax * Vmax)=1, at the same time record the frequency and amplitude, 3, square wave turn triangle wave, use the timer to measure frequency, first with ADC value is measured, and then calculate Vout=kT; 4, if the frequency and amplitude is relatively stable, we can calculate the wave type data, using DMA output, speed faster, 5, the proposal chooses STM32F407, speed faster, low price,