Electronic – Ribbon cable pin order

cablesconnectorpcb-design

I'm struggling to understand the pin order on a ribbon cable.

I want to connect two boards (one main board with the MCU, the other one for the front panel to pots and buttons) and i need a 2×20 connector to connect the boards. I found on Mouser this connector but i can't find the related cable. I don't need to use that specific connector, it is just one that i found searching on Mouser.

On top of that, i need to understand what's the pin order using this cable. Basically how can I connect the two boards without swapping pins.

Best Answer

This diagram shows how the pins on a standard 2x10 ribbon cable connector are numbered and how the ribbon cable conductors are connected to the pins of the connector.

enter image description here