Programmed input–output
Programmed input–output (also programmed input/output, programmed I/O, PIO) is a method of data transmission, via input/output (I/O), between a central processing unit (CPU) and a peripheral device, such as a Parallel ATA storage device. Each data item transfer is initiated by an instruction in the program, involving the CPU for every transaction. In contrast, in direct memory access (DMA) operations, the CPU is uninvolved in the data transfer. The term can refer to either memory-mapped I/O (MMIO) or port-mapped I/O (PMIO). PMIO refers to transfers using a special address space outside of normal memory, usually accessed with dedicated instructions, such as IN and OUT in x86 architectures. MMIO refers to transfers to I/O devices that are mapped into the normal address space available to the program. PMIO was very useful for early microprocessors with small address spaces, since the valuable resource was not consumed by the I/O devices. The best known example of a PC device that uses programmed I/O is the Parallel AT Attachment (PATA) interface; however, the AT Attachment interface can also be operated in any of several DMA modes. Many older devices in a PC also use PIO, including legacy serial ports, legacy parallel ports when not in ECP mode, keyboard and mouse PS/2 ports, legacy MIDI and joystick ports, the interval timer, and older network interfaces.
Programmed input–output (also programmed input/output, programmed I/O, PIO) is a method of data transmission, via input/output (I/O), between a central processing unit (CPU) and a peripheral device, such as a Parallel ATA storage device. Each data item transfer is initiated by an instruction in the program, involving the CPU for every transaction. In contrast, in direct memory access (DMA) operations, the CPU is uninvolved in the data transfer. The term can refer to either memory-mapped I/O (MMIO) or port-mapped I/O (PMIO). PMIO refers to transfers using a special address space outside of normal memory, usually accessed with dedicated instructions, such as IN and OUT in x86 architectures. MMIO refers to transfers to I/O devices that are mapped into the normal address space available to the program. PMIO was very useful for early microprocessors with small address spaces, since the valuable resource was not consumed by the I/O devices. The best known example of a PC device that uses programmed I/O is the Parallel AT Attachment (PATA) interface; however, the AT Attachment interface can also be operated in any of several DMA modes. Many older devices in a PC also use PIO, including legacy serial ports, legacy parallel ports when not in ECP mode, keyboard and mouse PS/2 ports, legacy MIDI and joystick ports, the interval timer, and older network interfaces.
References
- Stallings, William (2012). Computer Organization and Architecture (9th ed.). Pearson. Wikipedia revision 1351324124, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1351324124
Cite this reference
MLA "Stallings, William (2012). Computer Organization and Architecture (9th ed.). Pearson. Wikipedia revision 1351324124, retrieved 2026-11-18." Stallings, William (2012). 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1351324124. Accessed 24 November 2026.
Chicago "Stallings, William (2012). Computer Organization and Architecture (9th ed.). Pearson. Wikipedia revision 1351324124, retrieved 2026-11-18." Stallings, William (2012). 2026-11-17. https://en.wikipedia.org/w/index.php?oldid=1351324124.
APA Stallings, William (2012). (2026). Stallings, William (2012). Computer Organization and Architecture (9th ed.). Pearson. Wikipedia revision 1351324124, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/w/index.php?oldid=1351324124
- Proposed 22 MByte/Sec ATA Timing Extension for ATA-3 · retrieved 2026-11-17 · rev 1351324124
Cite this reference
MLA "Proposed 22 MByte/Sec ATA Timing Extension for ATA-3." Chen, Joseph (January 10, 1995). 2026-11-17. https://www.t10.org/ftp/t10/document.95/95-122r0.pdf. Accessed 24 November 2026.
Chicago "Proposed 22 MByte/Sec ATA Timing Extension for ATA-3." Chen, Joseph (January 10, 1995). 2026-11-17. https://www.t10.org/ftp/t10/document.95/95-122r0.pdf.
APA Chen, Joseph (January 10, 1995). (2026). Proposed 22 MByte/Sec ATA Timing Extension for ATA-3. Retrieved November 24, 2026, from https://www.t10.org/ftp/t10/document.95/95-122r0.pdf
- Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill International Book Company. p. 419. ISBN 0-07-027363-4 . Wikipedia revision 1351324124, retrieved 2026-11-18 · retrieved 2026-11-17 · rev 1351324124
Cite this reference
MLA "Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill International Book Company. p. 419. ISBN 0-07-027363-4 . Wikipedia revision 1351324124, retrieved 2026-11-18." Hayes, John P. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier). Accessed 24 November 2026.
Chicago "Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill International Book Company. p. 419. ISBN 0-07-027363-4 . Wikipedia revision 1351324124, retrieved 2026-11-18." Hayes, John P. 2026-11-17. https://en.wikipedia.org/wiki/ISBN_(identifier).
APA Hayes, John P. (2026). Hayes, John P. (1978). Computer Architecture and Organization . McGraw-Hill International Book Company. p. 419. ISBN 0-07-027363-4 . Wikipedia revision 1351324124, retrieved 2026-11-18. Retrieved November 24, 2026, from https://en.wikipedia.org/wiki/ISBN_(identifier)
Cite this article
MLA
"Programmed input–output." encyclopegia.org, 2026, https://encyclopegia.org/wiki/programmed-input-output. Accessed 24 November 2026.
Chicago
"Programmed input–output." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/programmed-input-output.
APA
encyclopegia.org. (2026). Programmed input–output. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/programmed-input-output
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON