??? 08/06/07 15:22 Read: times |
#142817 - Three pins required Responding to: ???'s previous message |
Hi Ellappan,
For a standard DB9 serial port, you only need to use three pins. They are Pin 2 RxD (Receive Data) Pin 3 TxD (Transmit Data) Pin 5 GND (System Ground) (see http://pinouts.ru/SerialPor...out.shtml) It is common for people new to this to believe they need to use all of the other control/handshaking pins and signals, but they are mistaken. Serial communication is via an Asynchronous UART, which means there is no need to worry about sending and receiving data at the same time. Moreover, with the great disparity in operating speeds between even the slowest µ-controllers and fastest UARTs, overrunning data simply isn't a problem that is realized very often. Okay, you might encounter an application where you need to worry about it, which is to say that I can't guarantee mathematically that you'll never overrun a UART buffer, but it isn't likely. To connect your 805x to the serial port, using a MAX232 (or equivalent), connect the TxD pin of your µ-controller to a transmitter input on the MAX232, and connect the corresponding transmitter out pin of the MAX232 to the RxD pin (Pin 2) of the DB9. Then connect the TxD pin (Pin 3) of the DB9 to a receiver input on the MAX232, and connect the corresponding receiver output to the RxD pin of your µ-controller. Finally, connect the GND pin (Pin 5) of the DB9 to the GND/Common of your µ-controller circuitry. Now, having said all of that, I suggest that as soon as you've done this, and have convinced yourself that it works, get a USB/UART Bridge chip (e.g. Silabs CP3102) and learn how to use it instead. You're going to need to soon, if not already. Good luck, Joe |
Topic | Author | Date |
interfacing with serial port of the PC | 01/01/70 00:00 | |
this is why we have FAQs here | 01/01/70 00:00 | |
Three pins required | 01/01/70 00:00 | |
are you sure that site is alive? | 01/01/70 00:00 | |
well, slightly different | 01/01/70 00:00 | |
Thanks Jan | 01/01/70 00:00 | |
oh-er-that's all right it's a pleasure... | 01/01/70 00:00 | |
Superman says | 01/01/70 00:00 | |
English | 01/01/70 00:00 | |
Only French and German? | 01/01/70 00:00 | |
Transmit and Receive | 01/01/70 00:00 | |
I hate this nomenclature | 01/01/70 00:00 | |
Googled CP3102... | 01/01/70 00:00 |