0

M4 multiple sercom / spi
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

M4 multiple sercom / spi

by User91827 on Fri Jul 23, 2021 11:13 pm

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!

User91827
 
Posts: 4
Joined: Fri Jul 23, 2021 11:09 pm

Re: M4 multiple sercom / spi

by adafruit_support_carter on Mon Jul 26, 2021 1:27 pm

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.

adafruit_support_carter
 
Posts: 21142
Joined: Tue Nov 29, 2016 2:45 pm

Re: M4 multiple sercom / spi

by User91827 on Mon Jul 26, 2021 2:21 pm

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?

User91827
 
Posts: 4
Joined: Fri Jul 23, 2021 11:09 pm

Re: M4 multiple sercom / spi

by adafruit_support_carter on Tue Jul 27, 2021 11:44 am

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

adafruit_support_carter
 
Posts: 21142
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.