Results 1 to 10 of 10

Thread: MSCOMM, how to use non-standard speed

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2009
    Location
    Milano - Italy
    Posts
    3

    MSCOMM, how to use non-standard speed

    Hello everyone.
    This is my first email requesting help in this forum involving experts in VB.
    I have a problem with VB6 (SP6) I am trying to resolve for several months.
    I am developing an application that uses a PIC microcontroller interfaced with an application in VB6 and I'm using two-way communication using MSCOMM.
    I need to exploit the faster serial transmission that allows the PIC. The speed in KBaud are:
    156.250
    230.400
    250.000
    312.500
    625.000
    1000.000
    1250.000

    Just to have a reference, this is what I use to test speed:
    Code:
    Private Sub Form_Load ()
      On Error Resume Next
      MSComm1.CommPort = 7
      'MSComm1.Settings = "19200, n, 8,1"' OK
      'MSComm1.Settings = "115200, n, 8,1"' OK
      'MSComm1.Settings = "128,000, N, 8,1"' no message
      'MSComm1.Settings = "250000, n, 8,1"' no message
      'MSComm1.Settings = "256,000, N, 8,1"' no message
      MSComm1.PortOpen = True
      MSComm1.Output = "test message"
    I ask this community as I do to communicate with these speeds using VB6?

    Ciao

    Leo
    Last edited by wirecut; Dec 6th, 2009 at 03:11 AM. Reason: typo error

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