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

hi plz help i have to receive data on hyperterminal buti m no getting

i have to get data serially on hyperterminal window as well as p2.
i have checked circuit 1000 of times but not getting ny
output there.
i am using following code plz verify it.

#include<reg51.h>
void delay(unsigned int); //prototype declration of delay function
void main(void)
{

unsigned char z,X;
unsigned char mess[]="ADITYA";
TMOD=0x20;
TH1=0xFD; //9600 bits /sec
SCON=0x50;
TR1=1; for(z=0;z<6;z++) { SBUF=mess[z]; X=mess[z];
while(!TI); //check the transmit interrupt P2=X;
delay(10000); TI=0; }
}

void delay(unsigned int time)
{ unsigned int i,j;
for(i=0;i<time;i++)
for(j=0;j<100;j++);
}

please help

aditya

Parents Reply Children
No data