Go Down

Topic: SAMD extra serial tutorial questions: (Read 363 times) previous topic - next topic

AndreK

Mar 05, 2019, 07:56 pm Last Edit: Mar 05, 2019, 08:45 pm by AndreK
I am referring to :
https://www.arduino.cc/en/Tutorial/SamdSercom

- Comparing to my own attempts to make it before I found this example, and understand it.

Q1: I have been using pinPeripheral(4, PIO_SERCOM_ALT);   - it seems like _ALT chooses peripheral C or D  , what is the difference, when to use which ? 
PIO_SERCOM =peripheral C
PIO_SERCOM_ALT =peripheral D
so it seems that using _ALT is correct for pins D3,D4  (?)

Q2: how does "pinPeripheral(x, PIO_SERCOM);"  know it is meant for &sercom3 , not any other port ?

sx3000

Have you read this one aswell?
https://learn.adafruit.com/using-atsamd21-sercom-to-add-more-spi-i2c-serial-ports/creating-a-new-serial

Go Up