alanlyyy
Posts: 8
Joined: Mon Jan 08, 2018 11:41 pm

UART Pyserial Interrupt Handling

Fri Mar 23, 2018 12:16 am

Hi everyone,

I am currently working on a device that contains a switch and a transceiver module, HC-12. I am using Pyserial for UART communication. I want to develop an interrupt for the serial port, to trigger whenever there is text data received in the buffer. I need an interrupt for the serial port, because I also have a push button that requires an interrupt whenever pressed. I need to create an interrupt for the UART to have priority over the interrupt for the push button. Any thoughts?

Best regards,

Alan

Return to “Beginners”