Solved

Read/Write a register on a DAC Card.

Posted on 1997-06-12
1
207 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
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

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

Title # Comments Views Activity
Simple Delphi Question 9 83
Delphi Form ownership 4 73
Convert a string into a TDateTime 5 52
tvirtualstringtree freeze when load too manny images 10 53
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

863 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

20 Experts available now in Live!

Get 1:1 Help Now