scorrpeio
Full Member level 5

Hi...
I am implementing master slave communication using UART between 2 8051.
1. The master 8051 creates a frame of bytes and sends it to slave through UART 9600 8N1.
2. The slave first checks out the address in the received frame and if matches, performs the function specified.
3. The function specified is displaying the byte sequence on the LED matrix in different fashion.
4. To display and scroll it; slave has used Timer0 routine with timer interrupt after every 1msec.
5. At the slave Rx interrupt is high priority and Timer0 interrupt is of low priority.
When I connect the master and slave using 3 wire(Tx, Rx, Gnd) ; I could see the expected result on the LED matrix but for only 1 time
As per the coding, master continuously sends the same frame, so slave should continuously do the same job. But it doesnt happen.
When, I tried debugging using keil simulator, I saw that in slave code, everything works properly. But when actual hardware is connected, I can see the result only for once and then never. :-(
Since four days, I am trying different solutions but yet problem is not resolved.
Please let me know, how should I resolve it.
I am implementing master slave communication using UART between 2 8051.
1. The master 8051 creates a frame of bytes and sends it to slave through UART 9600 8N1.
2. The slave first checks out the address in the received frame and if matches, performs the function specified.
3. The function specified is displaying the byte sequence on the LED matrix in different fashion.
4. To display and scroll it; slave has used Timer0 routine with timer interrupt after every 1msec.
5. At the slave Rx interrupt is high priority and Timer0 interrupt is of low priority.
When I connect the master and slave using 3 wire(Tx, Rx, Gnd) ; I could see the expected result on the LED matrix but for only 1 time
As per the coding, master continuously sends the same frame, so slave should continuously do the same job. But it doesnt happen.
When, I tried debugging using keil simulator, I saw that in slave code, everything works properly. But when actual hardware is connected, I can see the result only for once and then never. :-(
Since four days, I am trying different solutions but yet problem is not resolved.
Please let me know, how should I resolve it.