Turn-key PCB assembly services in prototype quantities or low-volume to mid-volume production runs

Programming STM32 USART using GCC tools. Part 2

In the previous part of the tutorial, we have covered simple USART routines that send data directly to USART peripheral. This is OK to use such an approach when a project isn’t time critical, and processing resources are far from limits. But most often we stuck with these limiting factors especially when RTOS is used or when we perform crucial real-time data processing. And having USART routines with while loop based wait isn’t a good idea – it steals processing power only to send a data. As you may guess – next step is to employ interrupts. As you can see, there are many sources to trigger interrupts, and each of them is used for different purpose. To use one or another interrupt first it has to be enabled in… Continue reading