DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Addres problem (http://www.daniweb.com/forums/thread99261.html)

kv79 Dec 2nd, 2007 8:23 am
Addres problem
 
Hi to all,
I have Windows XP professional SP2 and Dev-C++ and
when i go to the Device Manager -> Keyboard-> Resources i see
I/O Range 0064-0060
and the ports have also addres.
And all other things wich have addres.
My question is ,is it really addres or i am wrong informed and if it addres how to use in Dev-C++?is it possible?
Woud you be so good man and share information with me?
If you have any contact how to use these resource for me you will be the man who i respect .
Anyway if you do not help me thank you for your effort to read my message.

jbennet Dec 2nd, 2007 8:44 am
Re: Addres problem
 
you make no sense

vijayan121 Dec 2nd, 2007 8:46 am
Re: Addres problem
 
see http://msdn2.microsoft.com/en-us/library/aa489518.aspx
and http://msdn2.microsoft.com/en-us/library/ms801998.aspx

kv79 Dec 2nd, 2007 8:47 am
Re: Addres problem
 
What have no sence ?Be special.
I do not understand.

Ancient Dragon Dec 2nd, 2007 9:52 am
Re: Addres problem
 
>>My question is ,is it really addres or i am wrong informed and if it addres how to use in Dev-C++?is it possible?

Yes, as far as I know, those are the actual memory address. You can not access them directly with any 32-bit compiler unless you write your own device driver as Vijayan posted.

What is it that you want to do? There is probably another way to do it without accessing actual memory locations.

kv79 Dec 2nd, 2007 3:53 pm
Re: Addres problem
 
I want to controle some robot from my computer port eg. (crane).
But if i do not use Dev-C++ then i need to learn another program witch i won't.Because takes time to learn.
And i want to command from Win App.
What to do then?

Salem Dec 2nd, 2007 4:05 pm
Re: Addres problem
 
So what 'port' is your robot plugged into?
- Serial
- Parallel
- USB

> My question is ,is it really addres or i am wrong informed
All x86 processors have a large amount of memory address space (where your program runs from), and 64K of I/O space (where all the attached devices live).
In all modern operating systems like XP, direct access to the I/O space is not allowed, as any incorrect use of the hardware can seriously compromise the machine.

Under normal circumstances, to access the hardware you would have to go via one of the standard drivers which come with the OS. So, if you're using a standard interface, a lot of the basic stuff is already done for you.

boB_K7IQ Dec 2nd, 2007 4:17 pm
Re: Addres problem
 
Those are not memory address locations ,but I/O Port addresses
used for external hardware control, which is what you are
looking for. If you are using a regular old intel type X86 or Pentium
type PC, you will need to do some wiring OR buy an I/O module
that plugs into the PC so you can control your robot. Depending on
how many hardware pins you need, you may be able to use a printer
port or a USB I/O "black box" device that allows you to control
motors and lights and things. In fact, I believe there is a company
called Black box that offers such things. Use Google for that kind of search.

To see how these I/O ports actually work, you would need to go to intel.com or
AMD or download a data sheet or users manual on the processor you
are working with.

boB

kv79 Dec 2nd, 2007 9:51 pm
Re: Addres problem
 
I thought it was possible from Dev-C++ directly but anyway i need to pay them what is not a option.
Thank you for you efort.

Salem Dec 3rd, 2007 6:41 am
Re: Addres problem
 
That's it?
You're not going to even tell us a little bit of how your robot is attached to your PC?


All times are GMT -4. The time now is 9:29 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC