Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/06/05 09:57
Read: times


 
#84437 - same kind of problem
Responding to: ???'s previous message
Dear All and Sneha(especially),
well i tried serial communication between two Atmel 80C51
n i faced the same kind of problem but my code was two simple
i just set the SCON register by individually setting the bits
i put it in mode 0 i.e. SM0=0 and SM1=0
REN=1 (to enable the reception)
no baud rate is required to be set when it is in mode 0 as it works in 8-bit shift register mode
i just connected the TXD of first ATC51 with the RXD of the second ATC51 and then i put a character in the SBUF to be transmitted.
a character is of one byte
and when a byte is transmitted, TI(transmit interrupt) becomes one
similarly on the receiver end when one byte is received RI becomes 1 showing the reception of data
uptill now it works just as it shud
but when i try to retrieve the data from the SBUF on the receiver end, i dont get the character which i sent.

if u have worked on it, plz tell me tat wt cud be the reason tat i m not getting the character on the other end or if there is any mistake which i m making , plzz do tell me (as soon as possible).

thanx

Farrukh Ijaz
Nust Institute of Information Technology,
Pakistan.

List of 11 messages in thread
TopicAuthorDate
8051 to 8051 communication            01/01/70 00:00      
   Try at a lower baud rate            01/01/70 00:00      
   Re:            01/01/70 00:00      
   8051 to 8051 communication            01/01/70 00:00      
   Which C Compiler?            01/01/70 00:00      
   Possible Solution            01/01/70 00:00      
   same kind of problem            01/01/70 00:00      
      Re:' '            01/01/70 00:00      
         SMS?            01/01/70 00:00      
   Buffers too small?            01/01/70 00:00      
   Inter Character Spacing??            01/01/70 00:00      

Back to Subject List