hi ;
This is sulabh,i am programming my controller 89s52, for
recieving and trasmitting from serial port .I m using embedded C in
keil UV2.
It is trasmitting properly but while reception it is not
raising the RI flag...(i suspect) ,
in main loop of my programme i m checking for :
_____________________________________________________________
while(1)
{
if(trigger==1) // Externel input for trigger
{
Tx_char();
}
if(RI==1 )
{
Rx_Char();
}
}
_________________________________________________________________
In main programme i m giving
TMOD=0x22;
SCON=0x50;
_________________________________________________________________
In DEbugger window it is working fine,in hardware it is showing (ON
Osciloscop)that whenever i m giving trigger it is transmitting through
pin 11, by the same time i m receiving the txmitted stream in another
89s52 and on that Rx pin it is showing that same data has reached to
89s52(second), but it is not receiving and not going in rx_char()
subroutine.
I am stuck here Plz help....
Sulabh
"[email protected]"
This is sulabh,i am programming my controller 89s52, for
recieving and trasmitting from serial port .I m using embedded C in
keil UV2.
It is trasmitting properly but while reception it is not
raising the RI flag...(i suspect) ,
in main loop of my programme i m checking for :
_____________________________________________________________
while(1)
{
if(trigger==1) // Externel input for trigger
{
Tx_char();
}
if(RI==1 )
{
Rx_Char();
}
}
_________________________________________________________________
In main programme i m giving
TMOD=0x22;
SCON=0x50;
_________________________________________________________________
In DEbugger window it is working fine,in hardware it is showing (ON
Osciloscop)that whenever i m giving trigger it is transmitting through
pin 11, by the same time i m receiving the txmitted stream in another
89s52 and on that Rx pin it is showing that same data has reached to
89s52(second), but it is not receiving and not going in rx_char()
subroutine.
I am stuck here Plz help....
Sulabh
"[email protected]"