SPI Perpheral read

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
JPF100
 
Posts: 17
Joined: Mon Sep 12, 2022 11:10 am

SPI Perpheral read

Post by JPF100 »

I am now working on simple SPI interface. I have 2 GCs connected in a master/slave or controller/peripheral configuration. I am using the Arduino environment. I have been able to transmit from the controller to the peripheral, but I want to be able to read the transmitted byte from the controller on the peripheral side and display it on the peripheral's serial port console. I setup the peripheral using a series of SERCOM1 commands. This setup enables interrupts on the peripheral side of things. I successfully read back the data on the controller side. I confirmed that all of the lines are setup correctly with an oscilloscope. I also confirmed with a scope that the data being transmitted back to the controller is correct on the CIPO line with the clock. Working Arduino M4 C++ code example for the controller and peripheral along with specific pinouts for both sides would be appreciated.

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

Return to “Metro, Metro Express, and Grand Central Boards”