Frequency incorrect when using new style DAC dac_cosine libraries, also glitches on channel 1 #10192
Open
1 task done
Labels
Status: Awaiting triage
Issue is waiting for triage
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
The text was updated successfully, but these errors were encountered: