Better Coding Practice for USART Send Using a Sendflag

Last modified by Microchip on 2023/11/09 09:02

AVR®: Better Coding Practice for USART Send Using a Sendflag

In This Video:

  • Debug the IRQ-driven Universal Synchronous Asynchronous Receiver Transmitter (USART) communications to understand what happens when a string is sent.
  • Demonstrate that the USART Data Rate Empty IRQ has hit a number.
  • Create a global flag that is checked in the while loop to determine when the average should be sent over the USART, enabling us to move the USART send function out of the Analog-to-Digital Converter (ADC) Interrupt Service Routine (ISR).
  • Reveal that we still have the same functionality but have implemented better coding practices.

Learn More