Solved

Read/Write a register on a DAC Card.

Posted on 1997-06-12
1
227 Views
Last Modified: 2010-04-03
I am using a PCL812G DAC Card and I want read and write the registers of this card.
With TP 7.0 or Pascal Object for Windows 3.1, the Port and PortW instructions was a simply way to do this.
How can I do this with Delphi 2.0 ?
On the same way, what are the new instruction Delphi for Intr instruction in Pascal
Thank's for your answer.
0
Comment
Question by:jllavie
[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:
japala earned 200 total points
ID: 1336978
You may use Delphis inline-assembler. It is not recommended
to use any direct hardware access methods but in Win95 it usually
works but in WinNT you have to use some external driver to
access hardware because of winNTs security and whole kernel system.

But if you are using 95 then you may try this approach:

var
 i:integer;
begin
 I:=0;
 asm
  mov eax,i
  inc eax
  mov i, ex
end;

and the i is incremented by one. I haven't tested that with
inp and outp instructions but I think that they work just
like that.

If you are using WinNT you may want to go and check
http://www.bluewatersystems.com/
for driver you to access hardware under WinNT.

0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

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…
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 is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses
Course of the Month6 days, 19 hours left to enroll

623 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