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
  • Yu can connect microcontroller to computer cross connection. computer rx t&#305;o your card tx and computer tx to your cards rx . Yu can test your connection cable. &#304;f you can start hyper terminal and connect your cables rx and tx with an jumper. Then if you press a key in your keyboard you see from yor secreen same charecter. You can use this technic step by step for all rx an tx connection. Last test is 8051 rx and tx pins connect. &#304;f you can recive same charecter all connection is true.

Reply
  • Yu can connect microcontroller to computer cross connection. computer rx t&#305;o your card tx and computer tx to your cards rx . Yu can test your connection cable. &#304;f you can start hyper terminal and connect your cables rx and tx with an jumper. Then if you press a key in your keyboard you see from yor secreen same charecter. You can use this technic step by step for all rx an tx connection. Last test is 8051 rx and tx pins connect. &#304;f you can recive same charecter all connection is true.

Children
More questions in this forum