Skip to content

analogWrite() oddness on M4 when using both DACs #87

Open
@caternuson

Description

@caternuson

Reference:
https://forums.adafruit.com/viewtopic.php?f=62&t=146612&p=727668#p727280

Modified example taken from above.

void setup() {
  analogReadResolution(12);
  analogWriteResolution(12);
  analogWrite(A0,2000);
  delay(1000);
}

void loop() {
  int a2count = analogRead(A2);
  delay(50);
  analogWrite(A1,a2count);
}

Confirmed odd behavior with above simple example, but reduced initial delay in setup() to 1 sec.
scope_trace_1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions