Open Jay-esp opened 3 months ago
You will probably need to ask this at https://github.com/espressif/esp-idf/issues, since this is pure esp-idf code. First thing to check, however, is to collect the results of dac_cosine_new_channel
and dac_cosine_start
to make sure there are no errors there.
You will probably need to ask this at https://github.com/espressif/esp-idf/issues, since this is pure esp-idf code. First thing to check, however, is to collect the results of
dac_cosine_new_channel
anddac_cosine_start
to make sure there are no errors there.
I dont use the idf, just the arduino ide, tx for the tip but both functions return no error
The code comes from upstream, so it can't be fixed here.
Board
ESP32-WROOM-32
Device Description
devkit
Hardware Configuration
DAC output 1 (or 2) pins 25 or 26, tektronix oscilloscope for measurements
Version
v3.0.3
IDE Name
arduino 1.18.19
Operating System
windows 10
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
I generate a sine wave on one of the dac outputs, the old method with dac.h driver generates for a 500Hz setting a 520Hz signal, the new method with dac_cosine libraries generates 390Hz for the 500Hz setting, comparable errors on other frequencies. Plus there are spikes in the signal when using dac 1, not with dac2, actually on both old and new method, this is documented on the net and not resolved, the spikes are around the signal changes so at 90,180,270,360 degrees
Sketch
Debug Message
Other Steps to Reproduce
its consistant using small demo code and minimal hardware
I have checked existing issues, online documentation and the Troubleshooting Guide