Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SERCOM config for PB10, PB11 incorrect. #12

Open
WestfW opened this issue Jun 27, 2024 · 0 comments
Open

SERCOM config for PB10, PB11 incorrect. #12

WestfW opened this issue Jun 27, 2024 · 0 comments

Comments

@WestfW
Copy link

WestfW commented Jun 27, 2024

The various variants that define Arduino Pins for PB10 and PB11 have:

/* +------------+------------------+--------+-----------------+--------------------------------------------------------------------------------------------------------
* | Pin number | Serial2          |  PIN   | Label/Name      | Comments (* is for default peripheral in use)
* +------------+------------------+--------+-----------------+--------------------------------------------------------------------------------------------------------
* | 30         |                  |  PB11  | EXT2_13/EXT3_13 | EIC/EXTINT[11] *SERCOM4/PAD[3]  TC5/WO[1]  TCC0/WO[5]  I2S/SCK[1]  GCLK_IO[5]
* | 31         |                  |  PB10  | EXT2_14/EXT3_14 | EIC/EXTINT[10] *SERCOM4/PAD[2]  TC5/WO[0]  TCC0/WO[4]  I2S/MCK[1]  GCLK_IO[4]
* +------------+------------------+--------+-----------------+--------------------------------------------------------------------------------------------------------
*/
 { PORTB, 11, PIO_SERCOM, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_11 }, // RX: SERCOM4/PAD[3]
 { PORTB, 10, PIO_SERCOM, PIN_ATTR_DIGITAL, No_ADC_Channel, NOT_ON_PWM, NOT_ON_TIMER, EXTERNAL_INT_10 }, // TX: SERCOM4/PAD[2]
/*

In fact, PB10 and PB11 do not have a SERCOM pinmux setting, only a SERCOM_ALT pinmux (which does provide Sercom4 pads as the comment documents.

This prevents the typical setup of an additional Serial interface on those pins.

WestfW added a commit to WestfW-minorPatches/atmel-samd21-xpro-boardmanagermodule that referenced this issue Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant