PC serial port questions


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Huntsville, AL
    Posts
    36

    Default PC serial port questions

    My old computer had a serial port that I could read 9600bps data exported from a 16F628 operating at 5V without a MAX232 chip. I installed a card with a parallel and serial port on my new computer to be able to interface with some legacy hardware, and when I try to read data from the same PIC, I don't get anything...

    So my question is, was my old port operating with TTL as opposed to RS232? And is the new serial port I installed in my new computer operating with RS232? For reference, my old computer was XP, and my new computer has Vista.

    Also, the CD with drivers has a bunch of subfolders and options... can I configure the serial port to be TTL as opposed to RS232?

    Thanks in advance for any insight!
    Dave

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: PC serial port questions

    RS-232 voltage levels are +/- 3V to +/- 12V. This means that the receiver (your PC) - by specification - doesn't have to read the 0 to +4 V output of the PIC correctly.

    The PIC will probably see the output of the PC, since most of them output +/- 10V or so. This also brings up a point - make certain that the input pin of your PIC has resistor in series!

    And no, you can't change the driver to output TTL levels.
    Charles Linquist

  3. #3
    Join Date
    Jan 2009
    Location
    Huntsville, AL
    Posts
    36


    Did you find this post helpful? Yes | No

    Default Re: PC serial port questions

    So how come my older computer could read serial data from a PIC operating at 5V? Was it not "RS232"? I had ground between them connected, so the data line wasn't "floating".

    Also, hypothetically speaking, couldn't I convert TTL to an "approximate" RS232 with an op-amp using 6+V with a 3V reference as ground? Or even a transistor tied to a 6+V supply with a 3V ref tied to the RS232 ground?

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: PC serial port questions

    Using MAX232 (level converter) you will be able to Connect TTL to RS232 Without any problem.

    Cheers

    Al.
    All progress began with an idea

  5. #5
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default Re: PC serial port questions

    Quote Originally Posted by achilles03 View Post
    So how come my older computer could read serial data from a PIC operating at 5V? Was it not "RS232"? I had ground between them connected, so the data line wasn't "floating".

    Also, hypothetically speaking, couldn't I convert TTL to an "approximate" RS232 with an op-amp using 6+V with a 3V reference as ground? Or even a transistor tied to a 6+V supply with a 3V ref tied to the RS232 ground?
    A lot of things work outside of their specifications - they just aren't GUARANTEED to do so. A PIC pin is rated to sink 25mA. Most will do 80mA,
    but that isn't something that I would expect from every device, under all conditions.

    Some RS-232 receivers REQUIRE that the signal go negative, some don't. The spec says they must. Your ideas *may* work, but a properly configured MAX232 *will* work.

    I suggest you read the Wikipedia explanation of RS-232. You obviously have a computer and an internet connection.
    Charles Linquist

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts