??? 10/14/05 09:15 Read: times |
#102390 - explain Responding to: ???'s previous message |
Can you then specify what is not clear?
from the link: -------- Bits SM0 and SM1 let us set the serial mode to a value between 0 and 3, inclusive. -------- in the table it states that mode 0 is SM0=0 and SM1=0 further it also states that: --------- To write a byte to the serial port one must simply write the value to the SBUF (99h) SFR. For example, if you wanted to send the letter "A" to the serial port, it could be accomplished as easily as: MOV SBUF,#A Upon execution of the above instruction the 8051 will begin transmitting the character via the serial port. Obviously transmission is not instantaneous--it takes a measureable amount of time to transmit. And since the 8051 does not have a serial output buffer we need to be sure that a character is completely transmitted before we try to transmit the next character. The 8051 lets us know when it is done transmitting a character by setting the TI bit in SCON. When this bit is set we know that the last character has been transmitted and that we may send the next character, if any. ------------ regards Patrick |
Topic | Author | Date |
Serial Mode 0 ? | 01/01/70 00:00 | |
material to go through | 01/01/70 00:00 | |
check this | 01/01/70 00:00 | |
Both answers is wrong! | 01/01/70 00:00 | |
explain | 01/01/70 00:00 | |
Thanks Patrick![]() | 01/01/70 00:00 |