UART code under the hood
Posted: Sun Sep 15, 2019 2:47 am
Several UART methods imply that under the hood the code can accumulated multiple bytes received, for example, UART.any() returns "the number of bytes waiting". Based on other languages and microcontrollers I interpret that to mean that the underlying UART code is interrupt-driven and accumulate bytes into an internal buffer, maybe a circular buffer perhaps 256 bytes long.
1. Is that correct?
2. If so, what is the length of the buffer, i.e., how many bytes can arrive before the buffer is full?
3. Does the interrupt qualify as an "external" interrupt to wake up from a pyb.wfi() or pyb.stop() state?
Thanks
1. Is that correct?
2. If so, what is the length of the buffer, i.e., how many bytes can arrive before the buffer is full?
3. Does the interrupt qualify as an "external" interrupt to wake up from a pyb.wfi() or pyb.stop() state?
Thanks