Hello TI Community,
I am currently working on a project where I'm utilizing both UART and USB interfaces on an MSP430 microcontroller to handle data using the Modbus protocol. To efficiently manage data reception and transmission, I am using a single transmit and receive buffer. However, I am encountering challenges in prioritizing interrupts between UART and USB to ensure reliable data handling.
My objective is to prioritize interrupts based on the first interrupt received. If I receive an interrupt from UART, I want to handle data reception and service the data according to the Modbus function code (read or write). After servicing the data, I intend to wait until the next interrupt from either UART or USB.
Could you please provide guidance or a suggested approach on how to implement this prioritization reliably and efficiently on the MSP430 microcontroller?
Thank you for your assistance.
Best regards,
Baseer