I/O Port Address Allocation table (RPM)

Source: Internet
Author: User

(go) http://blog.csdn.net/zeflove/article/details/7337012 port address range Assignment Description
0X000-0X01F 8237A DMA Controller 1
0x020-0x03f 8259A Programmable Interrupt Controller 1
0x040-0x05f 8253/8254| A Timer counter
0x060-0x06f 8042 Keyboard Controller
0x070-0x07f Access CMOS ram/real Time clock RTC port
0X080-0X09F DMA page Register Access port
0X0A0-0X0BF 8259 Programmable Interrupt Controller 2
0X0C0-0X0DF 8237A DMA Controller 2
0X0F0-0X0FF coprocessor Access Port
0X170-0X177 IDE Hard disk controller 1
0X1F0-0X1F7 IDE Hard disk controller 2
0x278-ox27f Parallel Printer Port 2
0X2F8-0X2FF Serial Controller 2
0x378-0x38f Parallel Printer Port 1
0X3B0-0X3BF Monochrome MDA Display Controller
0X3C0-0X3CF Color CGA Display Controller
0X3D0-0X3DF Color EGA/VGA Display Controller
0X3F0-0X3F7 Floppy disk Controller
0X3F8-0X3FF Serial Controller 1

000-00F 8237 DMA Controller:

Channel 0 Address Register
001 Channel 0 Word Count
002 Channel 1 Address Register
003 Channel 1 Word Count
004 Channel 2 Address register
005 Channel 2 Word Count
006 Channel 3 Address register
007 Channel 3 Word Count
008 Status/command Register
009 Request Register
00A Mask Register
00B Mode Register
00C Clear MSB/LSB Flip Flop
00D Master Clear Temp Register
00E Clear Mask Register
00F Multiple Mask Register

010-01f 8237 DMA Controller (PS2 model &), reserved (at)

020-02f 8259A Master Programmable Interrupt Controller:

020 8259 Command Port (see 8259)
021 8259 Interrupt Mask Register (see 8259)

030-03f 8259A Slave Programmable Interrupt Controller (AT,PS2)

040-05f 8253 or 8254 Programmable Interval Timer:

040 8253 Channel 0, counter divisor
041 8253 Channel 1, RAM refresh counter
042 8253 Channel 2, Cassette and speaker functions
043 8253 mode control (see 8253)
044 8254 PS/2 Extended Timer
047 8254 Channel 3 Control byte

060-067 8255 programmalbe Peripheral Interface (PC,XT,PCJR):

060 8255 Port A keyboard input/output buffer (output PCjr)
061 8255 Port B output
062 8255 Port C input
063 8255 command/mode Control Register

060-06f 8042 Keyboard Controller (AT,PS2):

060 8042 Keyboard input/output Buffer Register
061 8042 System control port (for compatability with 8255)
064 8042 Keyboard command/status Register

070 CMOS RAM/RTC, also NMI enable/disable (AT,PS2, see RTC)
071 CMOS RAM data (AT,PS2)

080 Manufacturer Checkpoint Port
080-090 DMA Page Registers:

081 High order 4 bits of DMA Channel 2 address
082 High order 4 bits of DMA Channel 3 address
083 High order 4 bits of DMA Channel 1 address

090-097 pos/programmable Option Select (PS2):

090 Central arbitration Control Port
091 Card Selection Feedback
092 System control and status register
094 System Board Enable/setup Register
095 Reserved
096 Adapter Enable/setup Register
097 Reserved

0a0 nmi Mask Register (pc,xt) (write 80h to enable NMI, 00h disable)
0A0-0BF Second 8259 programmalbe Interrupt Controller (AT,PS2):

0A0 Second 8259 Command port (see 8259)
0A1 Second 8259 Interrupt Mask Register (see 8259)

0C0 TI SN76496 Programmable tone/noise Generator (PCJR)
0C0-0DF 8237 DMA Controller 2 (at):

0C2 DMA Channel 3 selector (see Ports 6 & 82)

0e0-0ef Reserved

0F0-0FF Math coprocessor (AT,PS2)
0f0-0f5 PCjr Disk Controller:

0F0 Disk Controller
0F2 Disk Controller Control port
0F4 Disk Controller Status Register
0F5 Disk Controller Data port

0F8-0FF Reserved for the future microprocessor extensions

100-10f POS Programmable Option Select (PS2):

POS Register 0, Adapter ID byte (LSB)
101 POS Register 1, Adapter ID byte (MSB)
102 POS Register 2, Option Select data byte 1
Bit 0 is card enable (CDen)
103 POS Register 3, Option Select data byte 2
104 POS Register 4, Option Select data byte 3
5 POS Register, Option Select data byte 4
Bit 7 is (-CHCK)
Bit 6 is reserved
106 POS Register 6, subaddress extension (LSB)
107 POS Register 7, subaddress Extension (MSB)

110-1ef System I/O Channel

170-17f Fixed Disk 1 (at):

Data for Disk 1
171 Disk 1 Error
172 Disk 1 Sector count
173 Disk 1 Sector number
174 Disk 1 Cylinder Low
175 Disk 1 Cylinder high
176 Disk 1 Drive/head
177 Disk 1 Status

1F0-1FF Fixed Disk 0 (at):

1F0 Disk 0 Data
1F1 Disk 0 Error
1F2 Disk 0 Sector count
1F3 Disk 0 Sector number
1F4 Disk 0 Cylinder Low
1f5 Disk 0 Cylinder high
1f6 Disk 0 Drive/head
1f7 Disk 0 Status

200-20f Game Adapter

210-217 Expansion Card Ports (XT):

Write:latch Expansion Bus Data
Read:verify Expansion Bus Data
211 Write:clear Wait,test Latch
READ:MSB of data address
212 READ:LSB of data address
213 write:0=enable, 1=/disable expansion unit
214-215 Receiver Card Ports
214 Write:latch data, Read:data
215 READ:MSB of address, next read:lsb of address

21F Reserved

220-26f Reserved for I/O Channel

270-27f third parallel port (see parallel port):

278 Data port
279 Status Port
27A Control Port

280-2AF Reserved for I/O Channel

2A2-2A3 Msm58321rs Clock

2B0-2DF Alternate EGA, or 3270 PC video (XT, at)

2E0 Alternate EGA/VGA

E1 GPIB Adapter (at)

2E2-2E3 Data Acquisition Adapter (at)

2e8-2ef COM4 non PS2 UART (Reserved by IBM) (see UART)

2f0-2f7 Reserved

2F8-2FF COM2 Second Asynchronous Adapter
Primary Asynchronous Adapter for PCjr

300-31f Prototype Experimentation Card
Periscope Hardware Debugger

320-32f hard Disk Controller (XT):

Read From/write to Controller
321 Read:controller Status, Write:controller Reset
322 write:generate Controller Select Pulse
323 Write:pattern to DMA and interrupt mask register
324 Disk Attention/status

330-33f Reserved for xt/370

340-35f Reserved for I/O Channel

360-36f PC Network

370-377 floppy disk controller (except PCJR):

372 Diskette Digital output
374 Diskette Controller Status
375 Diskette Controller Data
376 Diskette Controller Data
377 Diskette Digital Input

378-37f Second Parallel Printer (see Parallel PORT):

378 Data port
379 Status Port
37A Control Port

380-38f secondary Binary synchronous Data Link Control (SDLC) Adapter:

380 on board 8255 Port A, internal/external Sense
381 on board 8255 Port B, external modem interface
382 on board 8255 Port C, internal control and gating
383 on board 8255 mode register
384 on board 8253 Channel Square Wave generator
385 on board 8253 Channel 1 inactivity time-out
386 on board 8253 Channel 2 inactivity time-out
387 on board 8253 mode register
388 on board 8273 Read:status; Write:command
389 on board 8273 Write:parameter; Read:response
38A on board 8273 transmit interrupt status
38B on board 8273 receiver interrupt status
38C on board 8273 data

390-39f Cluster Adapter

3A0-3AF Primary Binary Synchronous Data Link Control (SDLC) Adapter:

3A0 on board 8255 Port A, internal/external Sense
3A1 on board 8255 Port B, external modem interface
3A2 on board 8255 Port C, internal control and gating
3A3 on board 8255 mode register
3A4 on board 8253 counter 0 unused
3A5 on board 8253 counter 1 inactivity time-outs
3A6 on board 8253 counter 2 inactivity time-outs
3A7 on board 8253 mode register
3A8 on board 8251 data
3A9 on board 8251 command/mode/status Register

3B0-3BF Monochrome Display Adapter (write only, see 6845):

3b0 Port address decodes to 3B4
3B1 Port address decodes to 3B5
3B2 Port address decodes to 3B4
3B3 Port address decodes to 3B5
3B4 6845 Index Register, selects which register [0-11h]
is to be accessed through port 3B5
3B5 6845 Data register [0-11h] selected by Port 3B4,
Registers 0c-0f may be read. If A read occurs without
The adapter installed, FFh is returned. (See 6845)
3B6 Port address decodes to 3B4
3b7 port address decodes to 3B5
3B8 6845 Mode Control Register
3B9 reserved for color Select Register on color Adapter
3BA Status register (read only)
3BB reserved for light pen strobe reset

3BC-3BF Primary Parallel Printer Adapter (see Parallel PORT):

3BC parallel 1, data port
3BD parallel 1, status port
3BE parallel 1, control port

3C0-3CF EGA/VGA:

3c0 VGA attribute and Sequencer Register
3C1 Other video attributes
3C2 EGA, VGA, CGA input status 0
3C3 Video Subsystem Enable
3c4 CGA, EGA, VGA Sequencer Index
3C5 CGA, EGA, VGA Sequencer
3C6 VGA video DAC PEL mask
3C7 VGA Video DAC State
3C8 VGA video DAC PEL address
3C9 VGA Video DAC
3CA VGA Graphics 2 position
3CC VGA Graphics 1 position
3CD VGA Feature Control
3CE VGA Graphics Index
3CF Other VGA Graphics

3D0-3DF Color Graphics Monitor Adapter (Ports 3d0-3db is write only, see 6845):

3D0 Port address decodes to 3D4
3D1 port address decodes to 3D5
3D2 Port address decodes to 3D4
3D3 Port address decodes to 3D5
3D4 6845 Index Register, selects which register [0-11h]
is to be accessed through port 3d5
3D5 6845 Data register [0-11h] selected by Port 3D4,
Registers 0c-0f may be read. If A read occurs without
The adapter installed, FFh is returned. (See 6845)
3D6 Port address decodes to 3D4
3d7 Port address decodes to 3D5
3D8 6845 Mode Control Register (CGA, EGA, VGA, except PCjr)
3d9 Color Select Palette Register (CGA, EGA, VGA, see 6845)
3DA Status register (read only, see 6845, PCjr VGA access)
3DB Clear Light pen latch (any write)
3DC Preset Light Pen latch
3DF crt/cpu Page Register (PCJR only)

3e8-3ef COM3 non PS2 UART (Reserved by IBM) (see UART)

3F0-3F7 floppy disk controller (except PCJR):

3F0 Diskette Controller Status A
3F1 Diskette Controller Status B
3F2 Controller Control Port
3F4 Controller Status Register
3F5 Data register (write 1-9 byte command, see INT 13)
3F6 Diskette Controller Data
3F7 Diskette Digital input

3F8-3FF COM1 Primary Asynchronous Adapter (see UART) 3f0 Diskette controller status A:

3220-3227 PS2 COM3
3228-322f PS2 COM4
4220-4227 PS2 COM5
4228-422f PS2 COM6
5220-5227 PS2 COM7
5228-522f PS2 COM8

I/O Port Address Allocation table (RPM)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.