Results 1 to 3 of 3

Thread: Programming the serial port

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2005
    Posts
    1

    Question Programming the serial port

    Hello everybody!
    I'm programming in VB6, but now I have a problem with programming the serial port... To tell you the truth, this is my first time using some COM port in my project, so I'll be very happy and thankful if you help me... well, here is the situation:

    I have a device, which can give an electric impule (5V (is this the correct value for the serial port?)) in some period of time. For example: 1sec. - impulse, 4sec. - off, 3sec. - impulse, 6sec. - off and so on... My questions are:
    1. How can I connect this device to the serial port...
    2. What kind of code should I use, to be able to recognize the impulses...for example: a value returns "1", when there is an impulse, and "0" when there is no...

    Please give me an idea, what I should do!

    Respectfully yours: Nubits

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Programming the serial port

    I don't know how you would do that. The serial port normally reads the port at a high speed (300-9600 times per second) known as the BAUD RATE.

    I think you would need a driver, or some other hardware to do it.

  3. #3
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: Programming the serial port

    Find a specification sheet for the RS232 port (serial) and read all about the pinouts and voltages. You don't want to destroy your mother board by overloading the port.
    I don't live here any more.

Posting Permissions

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



Click Here to Expand Forum to Full Width