Announcement

Collapse
No announcement yet.

get address of com1 win win32 or NT

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • get address of com1 win win32 or NT

    Dears

    I want to get a address of I/O port com1 using
    PEEK POKE
    or
    IMP OUT

    My objectve is change a Veloty of transmit 9600 to 115200 in time
    below of 100 ms.

    I used API SetCommConfig and is very slow, 200ms.

    thanks

    Amauri Siqueira


  • #2
    You can't access I/O under Win NT directly; you can only under Win 9x. Since the newer versions of Windows will be NT-like (Windows XP), I think it is better not to write code with IMP or OUT (PEEK and POKE are good, since they work on memory, not on I/O).

    ------------------
    Rgds, Aldo

    Comment


    • #3
      looking in internet a match WinMgmts::Win32_PortResource
      but don't know use in PB.

      Comment


      • #4
        You CAN directly access any I/O port under NT/2000 but you need
        to be VERY carefull, thats why its 'locked out' so the OS
        doesn't come crashing down. There's not much said about it but
        look on the MSDN CD under I/O map. Each port address bit can
        be set on or off to allow access. Yes there is a small
        driver involved but its only call at the begaining and end of
        the application, not for every port access.
        Doug

        ------------------
        Doug McDonald
        KD5NWK
        www.redforksoftware.com

        Comment


        • #5
          (jfyi)

          win32: ports/hardware access: http://www.powerbasic.com/support/pb...hread.php?t=42


          ------------------
          lance
          powerbasic support
          mailto:[email protected][email protected]</a>
          Lance
          mailto:[email protected]

          Comment

          Working...
          X