JeffreyPeter
New Member
Hi, This is an serial interrupt code that should not execute while serial transmission but should execute while receiving data. It simulates fine in proteus but on actual hardware implementation, it hangs it is not transmitting data. Please help me debug this code.
Thanks in advance
Thanks in advance
Code:
void serial_receive() interrupt 4
{
if(TI==0) // so that it does not execute while transmitting....
{
while(RI==0);// non zero character recived
serial_get=1;
RI=0;
}
}