![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #16 | |
| Quote:
My curiosity was of the fact that I did not need a Maxim chip in order to send from 8051 uC to the laptop, yet seem to require it to send from laptop to 8051 uC. thanks for your help. | ||
| |
| | #17 | |
| Quote:
Wrong! - "Sending out characters slowly does not effectively insert more stop bits." This only increases the intercharacter delay. The World According to Pommie ![]() Yes, data being sent and received is transmitted in packets. Chunks is a better description but an inelegant choice of words which may be misunderstood as a result of a failure to handle excess and other words, run on long winded superfluous sentences, and phrases helping not the original questions but intending to yet again show off one attempts to upstage others as a remedy for patching the lack of real world importances in ones existence. The stream is not perfect and the packets pushed are not logically separated by inserted characters but by time. These packets usually originate from the device side because devices, even though stream their data, do not send the entire buffer inside of one push as a artifact of internal delays and processing time. Even PCs do not push out data in a perfect stream. If you fill a buffer with even a small 50 bytes, the time space between those bytes will not be equal which can be easily seen with a software port monitor residing between two PC's or a physical monitor between a device and a PC. And due this unsymmetrical time space, operating systems perceive the stream in packets. This is why intercharacter delays exist, so to serve as an indicator of when all the data has arrived. This is also why the value of data size are included in the front of the data stream. If an application uses a DataReceived Event and pulls the data, there is no guaranty that what was pulled is the complete stream. For long data, it may just be the beginning of the stream. Hence the use of data size concatenation in front of stream, and properties like intercharacter delay InbufferCount, and OutbufferCount. | ||
| |
| | #18 | |
| Quote:
You are once again confusing PC operation and the RS232 specification. Even MSComm control does not packetise data. Mike. | ||
| |
| | #19 | |
| Quote:
RS232 is just a hardware serial interface standard. How many characters, how few, how lumped or chunked or packetized is strickly a function of the application software and has no relationship or is even specified in the orginal RS-232C standard. It was designed as a character based digital communications standard, with no predefined minimum or maxium block size. This standard was first used with ASCII Teletype machines in the 60s where people would type at the keyboard and send the characters one at a time to the recieving teletype at whatever speed the operator could handle up to the limit of the machine, usually around 100 words per mins (yes mins!) One could also send via a pre-punched paper tape message that someone typed ahead of time. Later video terminals started to utilize the standard to hook to modems for communicating with central time sharing computers. The RS-232 standard predates the introduction of microcomputer or PC computers and was used for many forms of early digital communications used by the telecommunications companies and well as the military. I don't even think the 'standard baud rates' (...2400,4800,9600,etc) used is defined in the standard and one is still within the standard to send at a 1,111 baud rate and not violate the standard. Of course the recieving end has to be configured to expect this odd ball baud rate. Lefty
__________________ Measurement changes behavior | ||
| |
| | #20 |
|
When I type something into Hyperterminal, it should come up on the screen and be transmitted right? But how come nothing happens when I press a key (I am checking using an oscilloscope the serial port output). Nothing comes up on the screen, nor is anything transmitted through the port?? | |
| |
| | #21 | ||
| Quote:
Quote:
| |||
| |
| | #22 | |
| Quote:
As far as nothing being sent when you type, check for none as a handshacking option as already suggested. Also you have to make sure the baud rate and bits/stop bits configuration values are the same for both the sending (hyperterminal) and the receiving device. PS: Again there are much better PC serial communications software applications avalible both free and for sale. Many are much easier to configure and provide more information on screen as to settings and modes and status. Some will allow displaying the data in binary, hex as well as ASCII form. Lefty
__________________ Measurement changes behavior Last edited by Leftyretro; 16th October 2007 at 10:05 PM. | ||
| |
| | #23 | |
| Quote:
Many thanks. PS. Thanks to everyone for all the help. I have now managed to interface an LCD display where typed letters directly appear on the LCD. | ||
| |
| | #24 | |
| Quote:
Lefty
__________________ Measurement changes behavior | ||
| |
| | #25 | |
| Quote:
| ||
| |
| | #26 |
|
hi i hv got a ques. for pommie: so finally, do we need a max232 ic or not? | |
| |
| | #27 |
|
For correct operation you should use a Max232. However, bitbanged RS232 can invert the signal in software and most (I haven't found one that doesn't) PCs will be able to use this signal. Some newer pics have the ability to invert the signal in hardware. You can also use a transistor to invert the signal. See this thread. 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 |