Quantcast
Channel: Articles on JeeLabs
Viewing all articles
Browse latest Browse all 296

Buffered serial port interrupts

$
0
0
Mecrisp only implements the minimal serial interface required, i.e. USART1 with polled I/O. This is very limited, because the serial port has no buffering capability: if we don’t poll it often enough (over 10,000x per second for 115200 baud!), we risk losing incoming input data. The standard solution for this is interrupts: by enabling the RX interrupt, we can get the data out in time for the next one to be processed.

Viewing all articles
Browse latest Browse all 296

Trending Articles