Minor changes are by default collapsed in the page history.
No changes
The page does not exist yet.
Failed to load changes
Version by on
Leave Collaboration
Are you sure you want to leave the realtime collaboration and continue editing alone? The changes you save while editing alone will lead to merge conflicts with the changes auto-saved by the realtime editing session.
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.
If you need to work with Microchip Support staff directly, you can submit a technical support case. Keep in mind that many questions can be answered through our self-help resources, so this may not be your speediest option.