This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SCON=0x50; is not working for Serial transfer why

hi, i tried executing the below program but i am not getting the output in serial window when SCON=0x50; for mode0 and mode2 of SCON it is working but not for mode1 and mode3.
#include<reg51.h>
void main()
{ SCON=0X50;
TCON=0X20;
TH1=0Xfa;
TL1=0X00;
TR1=1;
do{
TI=0;
SBUF='H';
while(TI==0);
}while(1);
}

0