How to use USART interrupt API for status transmission

Thread Starter

yef smith

Joined Aug 2, 2020
756
Hello,each clock cycle my EFM32LG sends a report to the PC regrading how many LEDs are ON, I control the number of LEDs by a command that i send from PC via USART.

From the API manual shown bellow ,how do i use interrupt which will enable me to do the following:
For example if 1 led is ON then every clock it sends 1 1 1 1 1 but when i send 2 then it will start sending 2 2 2 2 .
https://docs.silabs.com/mcu/latest/efm32lg/group-USART
Thank.
 
Top