| Author |
Message |
sacrpio
Joined: 24 May 2004 Posts: 56
|
03 Sep 2004 12:52 sbuf in 8051 |
|
|
|
|
| How we can prove that there are two serial buffers (SBUF) in 8051 one for transmit & another one for receive.
|
|
| Back to top |
|
 |
pisoiu
Joined: 31 Dec 2002 Posts: 729 Helped: 24 Location: Romania
|
03 Sep 2004 15:08 8051 two sbuf |
|
|
|
|
Microcontrollers is the right forum for this, moved here. From software point of view, there is no difference. From hardware point of view, when you use MOV A,SBUF you access receive buffer, when you use MOV SBUF,A you access transmit buffer. The only proof is the datasheet from the manufacturer.
/pisoiu
|
|
| Back to top |
|
 |
Google AdSense

|
03 Sep 2004 15:08 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
svicent
Joined: 11 Jul 2001 Posts: 413 Helped: 23
|
03 Sep 2004 17:57 dont read from sbuf |
|
|
|
|
1. Write VALUE_1 to SBUF
2. Read SBUF, you will get VALUE_2
3. Probably VALUE_1 and VALUE_2 will differ
|
|
| Back to top |
|
 |
conkhicon
Joined: 31 Aug 2004 Posts: 108 Helped: 3
|
07 Sep 2004 2:21 8051 + sbuf |
|
|
|
|
Hi !
I am degree svicent's ideal !
Clearly!
You make SBUF (receive) a new value by send to it a VALUE_1 from another but you dont read it's value.
After, you write SBUF VALUE_2
Read SBUF.
You see the difference in two values.
|
|
| Back to top |
|
 |