Example | Simplicity Studio Uart

Introduction

#include "em_device.h" #include "em_chip.h" #include "em_cmu.h" #include "em_gpio.h" #include "em_usart.h" #include <string.h> // USART instance – change to your selected peripheral #define UART_HANDLE USART0 #define UART_CLOCK cmuClock_USART0 simplicity studio uart example

// Enable RX interrupt (optional but useful) USART_IntEnable(UART_HANDLE, USART_IEN_RXDATAV); NVIC_EnableIRQ(USART0_RX_IRQn); Introduction #include "em_device

Try connecting two devices together, or hook up a GPS module to parse NMEA sentences over UART. Have questions or want to see a DMA or low-power UART example? Let me know in the comments below! Try connecting two devices together

// Initialize UART uart_init();