What output does pySerial interrupt on startup?

Since pySerial is a serial communication method, then it will interrupt the output on the Arduino board when there is any data provided to the Arduino Board?

Which pin does it interrupt to start the ISR ? Or does he use a polling method? Do I understand the concept correctly?

+4
source share
2 answers

pySerial provides access to UART hardware. Reading / writing data is not interruptible. You just call read () and write (). read () will block until data is available, with an additional timeout.

0
source

On an Arduino board, serial communication usually takes place via UART, which uses digital pins 0 and 1. UART is the physical peripheral device of the ATmega328P microcontroller with its own UDRE interrupts, so you do not use any regular or interrupt change of contacts otherwise. This interrupt is triggered whenever a full byte is received. There is also a separate TX interrupt, which signals the transfer of a byte.

0
source

All Articles