Kittu20
Member level 2
Suppose We have microcontroller which has 4 UART and 4 sender devices which support UART and 4 LEDs.
Initially all LEDs are turn ON
When the sender 1 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 1, wait for 5 seconds and then turns on LED 1.
Same for other
When the sender 2 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 2, wait for 5 seconds and then turns on LED 2.
When the sender 3 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 3, wait for 5 seconds and then turns on LED 3.
When the sender 4 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 4, wait for 5 seconds and then turns on LED 4
UART frame . 9600 baud, 8 data bits
The problem occurs when more than two devices are activated at the same time, it blocks the work.
I'm trying to figure out how these multiple tasks will execute without blocking each other
Initially all LEDs are turn ON
When the sender 1 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 1, wait for 5 seconds and then turns on LED 1.
Same for other
When the sender 2 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 2, wait for 5 seconds and then turns on LED 2.
When the sender 3 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 3, wait for 5 seconds and then turns on LED 3.
When the sender 4 is activated it sends 10 characters to microcontroller over UART. Then the microcontroller turns off LED 4, wait for 5 seconds and then turns on LED 4
UART frame . 9600 baud, 8 data bits
The problem occurs when more than two devices are activated at the same time, it blocks the work.
I'm trying to figure out how these multiple tasks will execute without blocking each other