Studio Uart Example | Simplicity

// Buffers char tx_buffer[64]; char rx_byte;

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! simplicity studio uart example

// Function to initialize UART void uart_init(void) // Enable clock for USART CMU_ClockEnable(UART_CLOCK, true); // Buffers char tx_buffer[64]; char rx_byte; Try connecting

// Interrupt handler for receiving data void USART0_RX_IRQHandler(void) if (USART_IntGet(UART_HANDLE) & USART_IF_RXDATAV) rx_byte = USART_Rx(UART_HANDLE); // Echo the character back USART_Tx(UART_HANDLE, rx_byte); // Buffers char tx_buffer[64]