88sanz
Newbie level 5
I'm using C8051F120 microcontroller from SiliconLab for my project. It allows usage of both UART0 and UART1.
I implemented the usage of both UART0 & UART1 in my program via interrupts. UART0 connects to hyperterminal and UART1 to another device.
However, both UART0 and UART1 shares the same memory address for their data buffer(i.e. SBUF0 and SBUF1). I was wondering in the situation when UART0 and UART1 raise interrupt simultaneously, UART0(higher priority) interrupt will be carried out first. What will happen to the data that was input into UART1?
I implemented the usage of both UART0 & UART1 in my program via interrupts. UART0 connects to hyperterminal and UART1 to another device.
However, both UART0 and UART1 shares the same memory address for their data buffer(i.e. SBUF0 and SBUF1). I was wondering in the situation when UART0 and UART1 raise interrupt simultaneously, UART0(higher priority) interrupt will be carried out first. What will happen to the data that was input into UART1?