??? 02/25/06 05:46 Read: times |
#110746 - HW flow control options/alternatives Responding to: ???'s previous message |
Ashwin V said:
Yes, I want to make an asynchronous connection between two 8051 chips, but i don't wanna use the rs232. Is it possible by just fusing the rxd to txd and txd to rxd pins of the 2 chips?????? The 8251 UART chip provides 'rts' and 'cts' for handshaking, does the inbuilt UART of 8051 provide this kind of handshaking??? I agree that 8051 doesn't have these pins but how does it provide handshaking to other devices???? You can connect the TXD pin on each 8051 to the RXD pin on the other 8051 chip, and it will work. However, you lose the benefits associated with the use of RS-232 level translators, namely larger voltage swings and larger noise margins. This configuration is generally not suggested, as it is likely to prove problematic at any appreciable distance, especially at higher speeds. I would only entertain it as a possibility for two chips on the same board that are in relatively close proximity in an electrically mild environment. Secondly, the classic 8051 UART does not support hardware flow control natively, and the same is true for the derivatives I am familiar with. It also doesn't have a FIFO, so in some ways it's not all one would expect when a modern UART comes to mind. Perhaps another forum member knows of some derivatives with enhanced UARTs? So, if you want flow control and you only have a primitive 8051 UART, you have a couple of choices. If you require hardware flow control, you can bit-bang RTS/CTS using general purpose I/O lines (port pins, I/O expander lines, etc.), or you can attach a more fully functional complete hardware UART. There are many different types hardware UARTs, from classic parallel-interface devices like the 16550 and its descendants to modern serially attached devices like the MAX3110. No matter the hardware flow control implementation technique, however, the consideration regarding RS-232 voltage levels remains. Incidentally, the MAX3110 has integrated RS-232 level converters which may be used. Software flow control may also be an option, but is generally inferiror to its hardware counterpart. See here for a more detailed treatement of the matter: http://www.8052.com/forum/read.phtml?id=109529 --Sasha Jevtic |
Topic | Author | Date |
project-serial communication | 01/01/70 00:00 | |
first requirement is to read | 01/01/70 00:00 | |
What do you mean? | 01/01/70 00:00 | |
project-serial communication | 01/01/70 00:00 | |
re: serial comms | 01/01/70 00:00 | |
Proviso | 01/01/70 00:00 | |
HW flow control options/alternatives | 01/01/70 00:00 | |
board to board or all on one board | 01/01/70 00:00 | |
Good idea | 01/01/70 00:00 | |
Self-pacing | 01/01/70 00:00 | |
8051 serial comm. | 01/01/70 00:00 | |
oh yes | 01/01/70 00:00 | |
Mahesh's web site | 01/01/70 00:00 | |
He's a Pseudo-Programmer | 01/01/70 00:00 | |
Me too. | 01/01/70 00:00 | |
what I noted![]() | 01/01/70 00:00 |