Results 1 to 5 of 5

Thread: Square Wave Generator

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    17

    Square Wave Generator

    I want to generate a square wave through the serial port. How can I specify my baud rate settings other than the common ones?

  2. #2
    Lively Member
    Join Date
    Apr 2006
    Location
    Local
    Posts
    112

    Re: Square Wave Generator

    if you vb 2005 - serialport1.baudrate=int
    assuming that you want to select from 110 - 999999
    it is possible but the availible baud rates are set by the hardware - the UART chip.
    if your UART accepts non-standard baud rates it should be ok, as Microsoft say "The baud rate must be supported by the user's serial driver" . no warning is generated if you select a non-standard rate & it is not supported by your UART so it probably defaults to 9600.
    if you only need low frequency you could toggle the DtrEnable or RtsEnable by using a timer - maximum frequency would be 500Hz. i don't know how accurate this would be or how square your pulse would be.
    a good program for serial comms can be found here http://www.docklight.de/
    they have unlimited time demo - just no saving projects etc
    it allows you to set any baud rate so you can test your UART without having to having to code any VB. setup 2 computers or make yourself a loopback plug.
    hope this helps

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    17

    Re: Square Wave Generator

    Thank you

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2006
    Posts
    17

    Re: Square Wave Generator

    I can generate numerous frequencies with no problems. The problem is that I do not want a break in the pulse train when I change frequencies.

  5. #5
    New Member
    Join Date
    Oct 2007
    Posts
    9

    Re: Square Wave Generator

    I can generate numerous frequencies with no problems. The problem is that I do not want a break in the pulse train when I change frequencies.
    How did you do this? I am also trying to generate a square wave through the serial port.

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