tejashs
Member level 1
hello,
i am trying to interface an RS485 chip to my 8051 controller, this is the tesing circuit i have made
i have problem communicating between 8051 and pc through
this is my schematic
J1 and J2 jumpers are connected only when programming
the cable length between max 485s is mot even 10cm
the program i have used for testing is this
the 8051 transmits 'U' continuously but i am not recieving it on my PC terminal
i do not understand what the problem is or how to rectify it
i am trying to interface an RS485 chip to my 8051 controller, this is the tesing circuit i have made
i have problem communicating between 8051 and pc through
this is my schematic
J1 and J2 jumpers are connected only when programming
the cable length between max 485s is mot even 10cm
the program i have used for testing is this
Code:
#include <reg52.h>
sbit RE_DE = P3^6;
void main()
{
unsigned char i = 0;
unsigned int j;
TMOD = 0x20;
TH1 = -6;
SCON = 0x50;
TR1 = 1;
RE_DE = 1;
while(1)
{
SBUF = 'U';
while(!TI);
for(j=0;j<5000;j++);
}
}
i do not understand what the problem is or how to rectify it
Last edited: