ermtariq
Newbie level 5
communication problem
Hi all,
I am working on led display project,
i am using AT89S53(8051) for programming(keil C) . from last three days i
am facing serious problem with communication. I want to communicate PC to LED
there is another IC on board provided me, that is MAX1487 and there are only two wire conneting(RXD,TXD) to it. iam connectint only two wire from com port.
problem is that i am not able to read or write data from SBUF even keil debugger is going write but there is no hardware response. my progamme setting for this is as follows:
void main(void)
{
SCON=0X50;
ET2=1;
TCLK=1;
RCLK=1;
C_T2=0;
RCAP2H=0XFF; //baud rate 9600
RCAP2L=0XB2;
TR2=1;
TR1=1;
PS=0;
ES=1;
EA=1;
RI=0;
SM2=0;
}
void rxd(void) interrupt 4
{
unsigned char UART_DATA;
if(RI==1)
{
RI=0;
TR2=0;
UART_DATA=SBUF;
}
}
is this write???????
SBUF is not working well.
is there any programmatic error plese help me to right it
I have additional code for displaying charcter on led in function main() as well as in rxd(). i am sending you only the settings.
is there any requirment of reg52.h ,reg53.h,regs58.h i have included first two in code.
there is no right response from led. I think there is communication error from PC to MAX1487 or MAX1487 to microcontroller!!!!!!!
plese help me if you have idea of MAX1487 pins connection with microcontroller.
i am using 9600,N,8,1.
Hi all,
I am working on led display project,
i am using AT89S53(8051) for programming(keil C) . from last three days i
am facing serious problem with communication. I want to communicate PC to LED
there is another IC on board provided me, that is MAX1487 and there are only two wire conneting(RXD,TXD) to it. iam connectint only two wire from com port.
problem is that i am not able to read or write data from SBUF even keil debugger is going write but there is no hardware response. my progamme setting for this is as follows:
void main(void)
{
SCON=0X50;
ET2=1;
TCLK=1;
RCLK=1;
C_T2=0;
RCAP2H=0XFF; //baud rate 9600
RCAP2L=0XB2;
TR2=1;
TR1=1;
PS=0;
ES=1;
EA=1;
RI=0;
SM2=0;
}
void rxd(void) interrupt 4
{
unsigned char UART_DATA;
if(RI==1)
{
RI=0;
TR2=0;
UART_DATA=SBUF;
}
}
is this write???????
SBUF is not working well.
is there any programmatic error plese help me to right it
I have additional code for displaying charcter on led in function main() as well as in rxd(). i am sending you only the settings.
is there any requirment of reg52.h ,reg53.h,regs58.h i have included first two in code.
there is no right response from led. I think there is communication error from PC to MAX1487 or MAX1487 to microcontroller!!!!!!!
plese help me if you have idea of MAX1487 pins connection with microcontroller.
i am using 9600,N,8,1.