Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 17974
Number of posts: 55346

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Accessing the serial port with Visual Basic using PORT95 Posted by matsr on 28 Aug 2005 at 6:30 AM
From my Visual Basic program I have been using the PORT95 utility (available for example from http://www.programmersheaven.com/zone2/cat490/2884.htm)to access the PC parallel port by reading and writing registers $0378-$037A. Works fine!

The serial port is controlled by registers $03F8-$03FF. But these registers could not be accessed with PORT95! Reading the registers with PORT95 I always get $FF what obviously is wrong. For example $03FB-$03FF should be R/W but trying to modify one of these registers and then reading back, all with PORT95, I always get $FF.

How is this possible? If PORT95 cannot be used, how to access the serial port?


Report
Re: Accessing the serial port with Visual Basic using PORT95 Posted by sj_h1 on 29 Aug 2005 at 2:12 PM
: From my Visual Basic program I have been using the PORT95 utility (available for example from http://www.programmersheaven.com/zone2/cat490/2884.htm)to access the PC parallel port by reading and writing registers $0378-$037A. Works fine!
:
: The serial port is controlled by registers $03F8-$03FF. But these registers could not be accessed with PORT95! Reading the registers with PORT95 I always get $FF what obviously is wrong. For example $03FB-$03FF should be R/W but trying to modify one of these registers and then reading back, all with PORT95, I always get $FF.
:
: How is this possible? If PORT95 cannot be used, how to access the serial port?
:
:
:

Why not just use MSCOMM, thats what I use. It looks like a telephone in the componets side, because it was originally designed for Modem control over the rs232.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.