Which ports?

Typically, the I / O ports in a microprocessor refer to a specific memory address in RAM that the microprocessor is listening on (correct me if I am wrong).

"Port" means the same when we talk about TCP / IP port, FTP port, etc.,?

I am not sure if the question is formulated correctly. If this is not the case, perhaps due to my understanding of ports that are not accurate.

+4
source share
2 answers

In this case (from what I think you mean), a port is just an interface between the physical output and the register that stores these values. There will be hardware that displays these contacts and puts the values ​​in a register for use in your program.

+2
source

Basically. As stated on wikipedia:

Hardware Port: A physical interface between a computer and other computers or devices

Software port: virtual data connection between computer programs, possibly through a computer network

So, you can think of them as being bridges between one intellect and another (whether it be a program or hardware).

In addition, both are data transfers in the form of bits from one register - or memory location - to another.

For most purposes, they are the same.

+2
source

Source: https://habr.com/ru/post/1385269/


All Articles