dac_base
This example is used to demo the usage of DAC
It is a
10-bits DAC
Log
Use serial port with baudrate 115200, 8bit, no parity check.
-
DAC0
-
Measure DAC outupt (PA8)
step= 0, PA8 Output= 1 mVstep= 128, PA8 Output= 407 mVstep= 256, PA8 Output= 815 mVstep= 384, PA8 Output= 1219 mVstep= 512, PA8 Output= 1627 mVstep= 640, PA8 Output= 2017 mVstep= 768, PA8 Output= 2413 mVstep= 896, PA8 Output= 2825 mVstep= 1023, PA8 Output= 3231 mV
Oct 1 2025 16:42:52 Run DAC-0 and output to PA8 <--- If VDD = 3300 DAC step= 0, Expect Output= 0 mV DAC step= 128, Expect Output= 412 mV DAC step= 256, Expect Output= 825 mV DAC step= 384, Expect Output= 1237 mV DAC step= 512, Expect Output= 1650 mV DAC step= 640, Expect Output= 2062 mV DAC step= 768, Expect Output= 2475 mV DAC step= 896, Expect Output= 2887 mV DAC step= 1023, Expect Output= 3296 mV
-
-
DAC1
-
Measure DAC outupt (PA8)
step= 0, PA8 Output= 1 mVstep= 128, PA8 Output= 408 mVstep= 256, PA8 Output= 815 mVstep= 384, PA8 Output= 1218 mVstep= 512, PA8 Output= 1628 mVstep= 640, PA8 Output= 2018 mVstep= 768, PA8 Output= 2413 mVstep= 896, PA8 Output= 2825 mVstep= 1023, PA8 Output= 3231 mV
Oct 1 2025 16:50:50 Run DAC-1 and output to PA8 <--- If VDD = 3300 DAC step= 0, Expect Output= 0 mV DAC step= 128, Expect Output= 412 mV DAC step= 256, Expect Output= 825 mV DAC step= 384, Expect Output= 1237 mV DAC step= 512, Expect Output= 1650 mV DAC step= 640, Expect Output= 2062 mV DAC step= 768, Expect Output= 2475 mV DAC step= 896, Expect Output= 2887 mV DAC step= 1023, Expect Output= 3296 mV
-