Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Serial Communication in 8051
I transmitted series of strings in 8051 assembly program(Of course by checkinh the TI Flag).
Code snippet is
MOV SBUF, 30H
JNB TI, $
MOV SBUF, 31H
JNB TI, $
...... ...... ...... It goes like this
When I checked the received data with the same baudrate set in hyperterminal , There is a mismatch.I got junk characters.But after adding a small delay loop for about 20milli seconds after
JNB TI, $ , the code works fine in hyper terminal.Is the delay loop really needed between transmissions or there was a problem in hyperterminal.Please suggest me whether the delay loop is really needed.