PORT->Group[PORTB].PINCFG.bit.PMUXEN = 1;
PORT->Group[PORTB].PMUX[12 >> 1].reg |= PORT_PMUX_PMUXE_C;
Hi LC200,Yes, it's possible to output the SPI clock on two pins simultaneously, but the pins must support the same SERCOM and PAD number. This is detailed in the PORT Function Multiplexing table in the SAMD21 datasheet.Assuming you're using SERCOM4, SPI SCK on PA12 uses SERCOM4/PAD.
PORT->Group[PORTA].PINCFG.bit.PMUXEN = 1;PORT->Group[PORTA].PMUX[15 >> 1].reg |= PORT_PMUX_PMUXE_D;
Hi Lee,As port PA15 is an odd numbered port, you just need peripheral multiplexer (PMUX) register bitfield from even:Code: [Select]PORT_PMUX_PMUXE_Dto odd:Code: [Select]PORT_PMUX_PMUXO_DKind regards,Martin