I am using flash magic to program my controller and is was working fine with me until I programmed the controller with
#include<reg51.h>
void main()
{
TMOD = 0x20;
TH1= 0xFD;
SCON = 0x50;
TR1 = 1;
while(1)
{
SBUF = 'A' ;
while(TI==0);
TI = 0;
while(RI==0);
P1 = SBUF;
RI=0;
}
}
first i thought my controller is faulty so i changed and it was working as soon i dumped the above program to this new controller this one also could not be programmed using serial programming
can any one help me to fix the above problem.