Skip to content

SPI clock acting weird #24

@danieleff

Description

@danieleff

I was trying Adafruit ILI9341, but was not working.
I think the following code is a simplified version of the problem:

void setup() {
  int cs = 2;
  SPI.begin();
  pinMode(cs, OUTPUT);
  digitalWrite(cs, HIGH);

  while(1) {
      SPI.beginTransaction(SPISettings(1000000, MSBFIRST, SPI_MODE0));
      delay(100);
      digitalWrite(cs, LOW);
      SPI.transfer(0x01);
      digitalWrite(cs, HIGH);
      SPI.endTransaction();
      delay(100);
  }
}

With arduino UNO, I get the following:
image
With F746 discovery:
image
or ( with F407 always)
image
Logic analizer settings are the same.
Can you check if you get the same results?

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