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

problem in serial communication between pc and 89c52

hello sir/madam , i am doing project on serial communication between pc and 89c52.all the connections are correct. but the problem is with the receiving of the data in the hyperterminal. when i press some letters in hypeterminal some other letter will be displayed; i am not getting what is the and where is the fault.. could you suggest me some solutions.. thanking you

Parents
  • hi,

    Why do you have given so much delay before serial communication settings?

    Because if you type any character before settings, controller can not receive it.

    Another thing is that clear RI flag & stop timer TR1 after receiving any character.

    MAIN:MOV TMOD,#20H
         MOV TH1,#0FDH
         MOV SCON,#50H
         SETB TR1
    
    HERE:JNB RI,HERE
         CLR RI
         CLR TR1
         MOV A,SBUF
    

Reply
  • hi,

    Why do you have given so much delay before serial communication settings?

    Because if you type any character before settings, controller can not receive it.

    Another thing is that clear RI flag & stop timer TR1 after receiving any character.

    MAIN:MOV TMOD,#20H
         MOV TH1,#0FDH
         MOV SCON,#50H
         SETB TR1
    
    HERE:JNB RI,HERE
         CLR RI
         CLR TR1
         MOV A,SBUF
    

Children