Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I Need a Book or Sites or Texts for help programing ports i/o with DMA in visual or turbo C++ and C# languages

DMA: data memory access input/output

my email: [EMAIL REMOVED]
Posted
Updated 7-Nov-11 10:13am
v3
Comments
Andrew Brock 7-Nov-11 8:38am    
Removed bold and email address.
No need to shout at people.
Unless you like spam, don't put your email address anywhere on the Internet.
Codeproject will send you an email automatically when someone replies.

Did you try googling[^] it?
 
Share this answer
 
Comments
ali.negahdari 7-Nov-11 12:09pm    
tanks
but i need realy code and advanced program
I didn't have any trouble finding source code using google.

DMA is Direct Memory Access.

It's a technology for doing bulk memory transfers to and from hardware, across a memory bus. It allows the transfer to happen during the unused clock cycles of a CPU and/or in hardware designed to do the transfer without CPU interaction.

The specific ports and memory locations needed to perform this action is dependant on the hardware that you are moving the data to and from. You'll need tech data sheets for the hardware you're interfacing, or source code for a sample driver to determine what calls you need to make to set up the hardware. you're referring to Turbo C++, so I think it's safe to assume your interested in interfacing in a PC bus. For that you'll also need to know if you're interfacing to an 8 bit card or a 16 bit card.

Once again, referring to the manufacturer's specifications and sample code is the best place to start.

Now If I misunderstand what you're asking, and you just want to read and write to ports... then use the functions inportb() and outportb().

I don't think you can do this with C#. This level of coding is usually done in assembly or C/C++.
 
Share this answer
 
Comments
ali.negahdari 7-Nov-11 13:27pm    
tank you JackDingler

yes. i has a devise and driver and need programing for ports i/o and transtion data in network.

can help me?!
ali.negahdari 7-Nov-11 13:29pm    
i programed socket in c#
JackDingler 7-Nov-11 13:49pm    
Are you programming hardware ports or are you writing TCP/IP socket code?
ali.negahdari 7-Nov-11 14:10pm    
ex i programing hardware ports the worked in network
ali.negahdari 7-Nov-11 14:14pm    
no tcp/ip with stream and ect..

or better sms center

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900