Murata Serial port

Hi all,
i’m currently working on a project where an arduino MKRWAN 1300 is configured as Class C LoRa device (it has to receive commands almost in real time) and i’m currently trying to save as much power as possible while retaining the real-time operational needed by the project. I was reading that the SAM D21 can “switch off” some of its internal components via specific registry operation so i’m trying that code BUT i obviously want to preserve the serial comunication between the D21 and the Murata chip, i searched but i did not find what is the serial port used? The serial ports of the D21 start from SerCom0 to SerCom5.
Did you also know if i can safely disable the timer/counters devices (TCC)?
This is the code i want to use:

//usb
USB->HOST.CTRLA.bit.ENABLE=0;
USB->DEVICE.CTRLA.bit.ENABLE=0;
//dac e adc
DAC->CTRLA.bit.ENABLE=0;
ADC->CTRLA.bit.ENABLE=0;
//analog comparator
AC->CTRLA.bit.ENABLE=0;
//inter-ic sound interface
I2S->CTRLA.bit.ENABLE=0;
//timer/counters for control
TCC0->CTRLA.bit.ENABLE=0;
TCC1->CTRLA.bit.ENABLE=0;
TCC2->CTRLA.bit.ENABLE=0;
//serial ports
SERCOM0->USART.CTRLA.bit.ENABLE=0;
SERCOM1->USART.CTRLA.bit.ENABLE=0;
SERCOM2->USART.CTRLA.bit.ENABLE=0;
SERCOM3->USART.CTRLA.bit.ENABLE=0;
SERCOM4->USART.CTRLA.bit.ENABLE=0;
SERCOM5->USART.CTRLA.bit.ENABLE=0;

Thanks in advance,
Roberto

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.