Channel numbering when routing SNS and SNSK pins to the same port

When SNS and SNSK pins are connected to the same port, the even pin numbers will be used as SNS pins and the odd pins will be used as the SNSK pins.

  1. 1.

    The number of channels supported will be limited 4 channels

  2. 2.

    For e.g., for a 4 channel configuration where the SNS and SNSK pins are connected to Port B, the port pins 0&1 are used for channel 0.

  3. 3.

    The channel number is derived from the position of the pins used for SNS and SNSK lines for any channel.

channel number = floor( [SNS(or SNSK) pin number] / 2 )

  1. 1.

    For e.g., pins 4 and 5 are connected to a SNS/SNSK pair and the channel number associated with the SNS/SNSK pin is 2.