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 which 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 having implemented better coding practice.