Final answer:
I/O ports contain four registers which include the status, control, 'data in', and 'data out' registers for facilitating communication between the CPU and external devices.
Step-by-step explanation:
An I/O port typically consists of four registers: status, control, data in, and data out registers. These are integral parts of a computer's hardware that facilitate communication between the CPU and peripheral devices. The data in register, also known as a receiver or input buffer, is used to read data into the port from external sources. Conversely, the data out register, known as a transmitter or output buffer, is used to write data from the port to external devices. Control registers configure the operation of the I/O port, while status registers provide information about the state of the I/O operation.