Port modes

H there,
Can anyone please explain the significance of the port modes to me and when and how to use them?
For example: P0M1, P0M2, P1M1, P1M2, P2M1, P2M2.

More questions in this forum