Menu

Port

Jens Nickel

Port

A group of pins, where you have access by common registers. For example you can write a bitmask in a register to set the digital level of each pin of that port. Or you can read the digital level of each pin of the port by reading out a register.

In the API and sourcecode, we use the term RegisterPort, IOport and so on to specify the number of the port. If the controller uses port-expressions like PortA, PortB, PortC and so on, this number is 0, 1 and 2, respectively.

PORTWIDTH is the number of pins of a certain port. Usually, this number is 8.

A portpin is a certain pin belonging to a port. In the API and sourcecode, we use the term RegisterPin, PortPin, ADCpin and so on to specify the number of the pin, belonging to one port. Usually the range for this number is 0..PORTWIDTH-1, this means 0..7.


Related

Wiki: ControllerEFL
Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.