nakul8873
Newbie level 4
- Joined
- Apr 26, 2010
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- USA
- Activity points
- 1,328
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.
#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.