Re: reading data from serial port

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



UARTs (Universal Asynchronous Receiver Transmitter) are serial chips
on your PC motherboard (or on an internal modem card). The UART's
purpose is to convert bytes from the PC's parallel bus to a serial bit-
stream. Say you have a terminal hooked up to your PC. When you type a
character, the terminal gives that character to its transmitter (also
a UART). The transmitter sends that byte out onto the serial line, one
bit at a time, at a specific rate. On the PC end, the receiving UART
takes all the bits and rebuilds the (parallel) byte and puts it in a
buffer.

You should not worry about: "UARTS are always 8-bits !".

Set SerialPort.DataBits to 8 and use Read instead of ReadExisting.


hjgvhv uhhgvjuhv je napisao/la:
JR wrote:
And make sure you defined the port as 8 bit.

SerialPort.DataBits Property = 8 (the default).

Also your equipment must define 8 bits.

Please, explain what this means ??

UARTS are always 8-bits !

Its in the software that decides to "fix" it.

donald



JR


.



Relevant Pages

  • Re: Nullmodem
    ... Handshake-Leitungen haben keinerlei Einfluss auf den Transmitter ... Mag sein, das es bessere UARTs gibt, aber leider ist man beim ... alles andere darf man per Software erschlagen. ...
    (de.sci.electronics)
  • Re: HDLC Synchronous RS232
    ... > i have enabled the transmitter using the Enable Transmitin GSMR ... > is it what u r saying or is there anything else i had to do to start ... Have you studied thoroughly the HDLC configuration examples in the ... experience of using the SCC ports as UARTs? ...
    (comp.arch.embedded)
  • Re: UARTS that generate an interrupt if bit 9 = 1 ? (for RS485 protocol)
    ... UARTs have DMA support and runs 1 Mbit no sweat. ... > I am designing an RS485 network, and was reading a Circuit Cellar article ... > non-zero 9th bit indicates that the character is a control character. ...
    (comp.arch.embedded)
  • Re: UARTS that generate an interrupt if bit 9 = 1 ? (for RS485 protocol)
    ... >non-zero 9th bit indicates that the character is a control character. ... three UARTs that can do this at the same time, ...
    (comp.arch.embedded)