Monday, February 9, 2009

IO Port Programming


Click to download :IO Port Programming
Table of Contents
Linux I/O port programming mini?HOWTO


Introduction Using I/O ports in C programs
Interrupts (IRQs) and DMA access
High?resolution timing
Other programming languages
Some useful ports
Hints
Troubleshooting
Example code
Credits
Introduction
Using I/O ports in C programs
The normal method
Permissions
Accessing the ports
An alternate method: /dev/port
Interrupts (IRQs) and DMA access
High?resolution timing
Delays
Sleeping: sleep() and usleep()
nanosleep()
Delaying with port I/O
Delaying with assembler instructions
rdtsc for Pentiums
Measuring time
Other programming languages
Some useful ports
The parallel port
The game (joystick) port
The serial port
Hints
Troubleshooting
Example code
Credits

0 comments:

Post a Comment