Solved

About board addressing

Posted on 1998-06-10
1
122 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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 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

11 Experts available now in Live!

Get 1:1 Help Now