Solved

About board addressing

Posted on 1998-06-10
1
124 Views
Last Modified: 2010-04-04
I want to address a data adquisition board (CIO-DIO96) on 300H (the board is addressing to 300H throught switchers) and I have tried it with pointers but it is not possible due to the PC memory mapping.
I want to know how could do it.
0
Comment
Question by:JGT
1 Comment
 

Accepted Solution

by:
jhun earned 100 total points
ID: 1351959
Here is a small funtions that reads from a io port:

function ReadFromPort ( adress: word): byte;
begin
   asm
     mov       dx, adress
     in            al, dx      { data from port }
   end;
end;

Because the result of a pascal function with result type is passed in al no futher action is nessecary to pass back the result. If you want to write to the port, replace the in al, dx with out dx, al

Gr. John

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now