M4 multiple sercom / spi

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
User91827
 
Posts: 5
Joined: Fri Jul 23, 2021 11:09 pm

M4 multiple sercom / spi

Post by User91827 »

I’m having a heck of a time finding out how to work with the additional sercoms on the itsybitsy m4. I need to make use of 2 separate spi busses. Using a single bus won’t work for my needs. I understand the atsamd51 has 6 sercoms, and the product listing (3800) references that all are available. Please help!

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: M4 multiple sercom / spi

Post by adafruit_support_carter »

Have you seen this guide?
https://learn.adafruit.com/using-atsamd ... s/overview

It's for a SAMD21 / M0 chip, but the same general info may help out.

User avatar
User91827
 
Posts: 5
Joined: Fri Jul 23, 2021 11:09 pm

Re: M4 multiple sercom / spi

Post by User91827 »

I ran across that document this weekend. It was quite helpful. Although I am now faced with the struggle of using a SERCOM as an SPI Slave, which seem to be unsupported by the standard SPI.h library.
Any ideas on how to use a SERCOM as an SPI Slave?

User avatar
adafruit_support_carter
 
Posts: 29056
Joined: Tue Nov 29, 2016 2:45 pm

Re: M4 multiple sercom / spi

Post by adafruit_support_carter »

Nothing specific, but it should just be a matter of finding a driver that supports it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”