Special

Special Print Offer

Get the RBD Archive 7 printed book for FREE when you buy an Ultimate Combo printed back issue package! This perfect-bound book is over 300 pages and contains the full year 7 of RBD. Normally this book sells for $50, but with this special offer you not only save 25% off the normal package price, you get the book included for free!

RBD Magazines

Supplies are limited, so take advantage of this offer before it goes away.

Article Preview


Buy Now

Print:
PDF:

Intel corner

Port Input/Output

Accessing the hardware ports

Issue: 4.4 (March/April 2006)
Author: Christian Schmitz, cSchmitz-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 5,740
Starting Page Number: 42
RBD Number: 4418
Resource File(s): None
Related Web Link(s):

http://www.logix4u.net

Known Limitations: None

Excerpt of article text...

A friend is currently doing REALbasic applications to replace older Turbo Pascal applications. One of the missing things in REALbasic is direct hardware control. In a multitasking operating system, a single application cannot control the hardware itself. All hardware components are taken by the operating system and can only be used through high level functions in case permissions are granted.

Still, sometimes your application may need to read one of the hardware ports. This type of port is something like an array. 65536 ports exist and the first has the number 0. You can read and write to a port and the CPU will send the signal around on the motherboard of your PC. One of the components may answer and if so you'll get the value. If no one answers, you may get rubbish.

You can also write to a port to send data to a device. For example, the serial keyboard connector on your PC has a controller chip which answers on port ?h060. There you can read the key code of the last key pressed.

The inpout32 library

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com