Using pin PA28 on ATSAM3X8E [solved]

Hi All,

I'm currently working on a standalone ATSAM3X8E, and I would like to use the PA28 pin. It is linked to digital pin 10 following the Arduino DUE schematic. However, when I burn a "blink" sketch with digital pin 10 as the output, I get nothing on pin PA28.
I suspect that it is the pin PC29 that controls the digital pin 10 as PA28 and PC29 are linked together following the Arduino DUE schematic. Am I right about that ? If yes, is there a way to linked digital pin 10 to PA28 and not PC29 ?

Any help appreciated, thanks !

Yep. The relevant entry in variant.cpp says:

  // 10
  { PIOC, PIO_PC29B_TIOB7,   ID_PIOC, PIO_PERIPH_B, PIO_DEFAULT, (PIN_ATTR_DIGITAL|PIN_ATTR_TIMER),
    NO_ADC, NO_ADC, NOT_ON_PWM,  TC2_CHB7     }, // TIOB7

It also implies that PA28 can be accessed via digital pin 77:

  // 77 - SPI CS0
  { PIOA, PIO_PA28A_SPI0_NPCS0,ID_PIOA,PIO_PERIPH_A,PIO_DEFAULT, PIN_ATTR_DIGITAL,
    NO_ADC, NO_ADC, NOT_ON_PWM,  NOT_ON_TIMER }, // NPCS0

Thank you really much for your quick answer, helped a lot ! It's all working now :slight_smile: