Hello,
I have a ATSAMD21G18.
I wont to make an extra UART in processor pin 37 (TXD, SERCOM5.2) and pin 38 (RXD, SERCOM5.3) and call this material.
found this code segment, and how to change the code so it is working with SERCOM5.2 and SERCOM5.3.
Thanks for all results.
Jan
#include "wiring_private.h" // pinPeripheral() function
//D2-TX, D3-RX
Uart mySerial (&sercom2, 3, 2, SERCOM_RX_PAD_1, UART_TX_PAD_2);
void SERCOM2_Handler()
{
mySerial.IrqHandler();
}
void setup() {
// put your setup code here, to run once:
mySerial.begin(9600);
pinPeripheral(2, PIO_SERCOM);
pinPeripheral(3, PIO_SERCOM_ALT);