Skip to content

32 bit data transfer? #60

Description

@mateusz-kusmierz

I'm using teensy 4.1

Is it possible to send 32 bit data as shown here?
0b00000000000000000000000000000111 is beeing sent out (DATA-blue, CS-red, CLK-yellow)
IMG_20200706_193856 (Kopiowanie)

Because currently I can only manage to get this using this SPI.h library:
IMG_20200706_221629

and this code:

 SPI1.beginTransaction(settings);
SPI1.transfer(0x00);
SPI1.transfer(0x00);
SPI1.transfer(0xFF);
SPI1.transfer(0x00);
SPI1.endTransaction();

Clock distortion after 8 bits, and CS high, is issue for me.
As far as I know teensy 4.1 processor should be able to do 32bit SPI data transfers.

Regards Mateusz

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions