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

serial communication

hi there i am trying to communicate microcontroler with computer.the program is as follow's

#include<reg52.h>

void main(void)
     {
         TMOD = 0x20;
         TH1  = 0xF3;
         SCON = 0x50;
         TR1  = 1;
         PCON = 0x80;
         while(1)
               {
                   SBUF ='A';
                   while(TI == 0);
                   TI = 0;
                   }
         }

at hard ware end i am using max 232cpe
controller at89s52
the prog.
is runing properly.as tested in keil
but not working at the hard ware side
i am tested it in hyper terminal
with the following setting

baud rate 9600
parity bit none
stop bit 1
flow controller none

but no output
please help me

Parents Reply Children
  • You can connect to your pc only rs232 cable and then you must make short circuit other side with pin 2 and 3. After open hyper terminal and configure it. All configuration must be true. Select com port from hyper terminal and baud rate and start stop bit and parity bit and follow control. After you can press a character from your keyboard ant you must recive same charecter on your screeen. &#304;f its rigth your connection and your setup for pc side rigth.

    Step 2 ) After you can connect rs232 cables another side to your board. And make short circuit from 232 ic tx an rx pin (not for TTL -only 232 level). Rpeat first step.

    step 3) After you can connect 8051 rx and tx pin short circuit. After rpeat step1. &#304;f all step is okey .your cable and your board connection its possible. &#304;f you can dont make this proses. &#304; can send to you a shema for this operation.

  • thank's for the help
    problem solved the one silly mistake result in big problem.
    this is the first step
    if i struct in any problem in future hope all of you help me

    thank's again