May 2020
Intermediate to advanced
496 pages
13h 54m
English
Here are some of the advantages of using a polled driver:
At the same time, there are many issues with this approach:
In this example, we're only transferring data at 9,600 baud. Granted, most of the time was spent spinning on the RXNE bit, but transferring every byte as it is received in a queue is also fairly expensive (when compared to pushing bytes into a simple array-based buffer). To put this into perspective, USART2 on STM32F767 running at 216 MHz has ...