Files
microchip-application-pec93…/Examples/dac/dac_base

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 mV
      • step= 128, PA8 Output= 407 mV
      • step= 256, PA8 Output= 815 mV
      • step= 384, PA8 Output= 1219 mV
      • step= 512, PA8 Output= 1627 mV
      • step= 640, PA8 Output= 2017 mV
      • step= 768, PA8 Output= 2413 mV
      • step= 896, PA8 Output= 2825 mV
      • step= 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 mV
      • step= 128, PA8 Output= 408 mV
      • step= 256, PA8 Output= 815 mV
      • step= 384, PA8 Output= 1218 mV
      • step= 512, PA8 Output= 1628 mV
      • step= 640, PA8 Output= 2018 mV
      • step= 768, PA8 Output= 2413 mV
      • step= 896, PA8 Output= 2825 mV
      • step= 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