What's the difference between Port and Pin here?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaCh_4286001
Level 3
Level 3
First like received First like given

I think P2 [1] means Port 2 pin 1, than what's the Pin column stands for?

pastedImage_1.png

Simon

0 Likes
1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

IMHO, the number in Port is addressed as pin

and the physical pin on the device is also addressed as pin

this makes us confused.

Can the following picture make it more clear?

Port_and_pin.JPG

moto

View solution in original post

3 Replies
BoMa_4329931
Level 3
Level 3
First like received

Ports are usually 8 bit (pins) wide and can be read and written with a single API. Not all the pins of a port need to be connected to the outer world.

P12[2] describes port 12 and pin number 2 (count starting with zero).

Bob

0 Likes

The pin column is related to the physical location of the pin in the chip. You can check the datasheet to verify their location. There are pictures for all different types of packages available.

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

IMHO, the number in Port is addressed as pin

and the physical pin on the device is also addressed as pin

this makes us confused.

Can the following picture make it more clear?

Port_and_pin.JPG

moto