Solved

About board addressing

Posted on 1998-06-10
1
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

617 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