![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
I am learning about interfacing the 8051 with my laptop. I have a few questions, and as helpful as you all have always been, I hope you will kindly contribute in clarifying the matters for me. ![]() Just reading up on what Hyperterminal is and what is does. I've managed to open up the blank text window where you can type. Three questions I have at the moment: 1) Whatever I type there, is it sent serially through the TxD pin of my serial port? So if I type letter 'A', the ASCI binary equavalent will be sent serially with start and stop bits? 2) What if my uC sent the letter 'B' to the RxD pin of the serial port. Would the letter 'B' come up on the screen? 3) So its not about a special language on Hyperterminal, it is merely to display what is received, and display what is sent? 3) But who controlls the DTR, DSR, CTS and RTS pin of the serial port? If any one knows any links to good beginners tutorials on this, please kindly pass it over. Many thanks. Last edited by AceOfHearts; 15th October 2007 at 02:09 AM. | |
| |
| | #2 |
|
1) Whatever I type there, is it sent serially through the TxD pin of my serial port? So if I type letter 'A', the ASCI binary equavalent will sent serially with start and stop bits? Yes 2) What if my uC sent the letter 'B' to the RxD pin of the serial port. Would the letter 'B' come up on the screen? Yes 3) So its not about a special language on Hyperterminal, it is merely to display what is received, and display what is sent? Correct 3) But who controlls the DTR, DSR, CTS and RTS pin of the serial port? Hyperterm has properties to set up for utilizing or not utilizing control pins. Hyperterm will act as the DTE end so it will output (if configured to use) the DTR and RTS pins and input the DSR and CTS pins. If any one knows any links to good beginners tutorials on this, please kindly pass it over. Google on RS232 tutorials will supply more then enough information such as: http://www.camiresearch.com/Data_Com..._standard.html Many people Don't care much for Hyperterminal, but is does come free with most windows installations. I use a free serial program called Terminal v1.9b by bray, but can't locate a active download site at the moment. There are tons of free serial terminal programs avalible on the web. Lefty
__________________ Measurement changes behavior | |
| |
| | #3 | |
| Quote:
| ||
| |
| | #4 | |
| Quote:
Mike. | ||
| |
| | #5 |
|
Well known location for communication protocals http://www.beyondlogic.org/ 1. Yes, and No. Yes what ever is typed is sent out. But no on start and stop because user may choose to not use stop bits. As long as you send out each character slowly, each will be transmitted one at a time. There are configuration settings that govern how many characters to send you in a packet. Hyperterminal is just a basic interface. A comport driver allow you to do all sorts of configurations and conditions. 2. Yes. If you send 0x41, decimal 65, or A'B' given your uC supports the A(ascii) macro. 3. Mostly true. Most terminal programs support mutiple types of emulators. The emulator will alter the visual effect of text. Yet still, there is no code like C, basic, or java involved. And I thought I was the first to respond. Seems as if I need to hit "Post Quick Reply" quicker. | |
| |
| | #6 | |
| Quote:
I am sure I will have more questions soon, just as soon as I get some hands on experience going! | ||
| |
| | #7 | |
| Quote:
Mike. | ||
| |
| | #8 | |
| Quote:
You sir are are a gentleman Lefty
__________________ Measurement changes behavior | ||
| |
| | #9 | |
| Quote:
| ||
| |
| | #10 | |
| Quote:
. Next time I'll delete the quote tags.Mike. | ||
| |
| | #11 |
|
OK, I tried to send the letter A continuously from the uC and it worked . But a little confused. 1) I did not have aything like a MAX232 in between. How did it still work? How did the serial port recognise +5 and 0V when according to the text book RS232 logic levels are completely differet? 2) I tried writing (inadvertantly) a letter to the uC and send it back to the laptop, without a MAX232 and it didnt work. I believe my uC did not recognise the voltage levels? thanks. | |
| |
| | #12 | |
| Quote:
| ||
| |
| | #13 | |
| Quote:
Mike. | ||
| |
| | #14 | |
|
Thanks for the posts. Quote:
Sorry, being very new to Serial comms, I am kind of confused now. Ok let me get this streight! I was able to send letter 'A's, which meant RS232 port CAN READ 0-5V as logic 0 and logic 1 respectively. HOWEVER, RS232 port outputs (according to my textbook) -3V to -25V as logic 1 and 3V to 25V as logic 0, which my uC (8051) wont understand. So the reason why a Maxim chip is necessary is so that my uC can understand the signal from the serial port, and not for my laptop to understand my uC?......... thanks. | ||
| |
| | #15 |
|
You must be using a software UART that sends and receives inverted signals. I am guessing that the reason it only works from PC to 8051 is because the 8051s outputs cannot drive the line high enough to provide a signal to the PC. Have you got a fairly low pullup on the output of your 8051? I would guess something like 300Ω would be safe. Mike. | |
| |
|
| Tags |
| communication, hyperterminal, serial |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| serial communication in Atmel 89c51 | Peter Nabil | Micro Controllers | 9 | 4th August 2008 01:18 PM |
| hyperterminal communication w/ 8051 | spyghost | 8051/8951 | 8 | 22nd May 2008 11:54 AM |
| Need help badly on Inchworm and MPLAB | thushy | Micro Controllers | 14 | 11th March 2007 07:05 PM |
| serial communication between two pic with RF modules | amindzo | Micro Controllers | 8 | 16th August 2006 04:59 PM |
| Serial communication problem | tbrown | Micro Controllers | 12 | 13th February 2004 11:32 AM |