Tips on pin assignments for the sensor design using one pair of SNS/SNSK ports

This section lists tips on selecting the pin assignments when using a single port pair for the SNS and SNSK Pins.

Table 1. Tips on pins assignments

Design choice for the sensor

Example Port configuration with pin assignments

SNSK & SNS pins are on different ports, number of channels = 4

  1. 1.

    If the SNS1(C) and SNSK1(B) pins are on two different ports, the user should mount the sensors onto the corresponding pins such as (PC0,PB0), (PC1,PB1), (PC2,PB2) and (PC3,PB3), when pin configurability is not used.

SNSK & SNS pins are on different ports, number of channels = 8

  1. 1.

    If the SNS1(C) and SNSK1(B) pins are on two different ports, the user should mount the sensors onto the corresponding pins such as (PC0,PB0), (PC1,PB1), (PC2,PB2) and so on, When pin configurability is not used.

  2. 2.

    When pin configurability is not used, channel 0 will be on (PC0, PB0) pins, channel 1 will be on (PC1, PB1) pins and so on up to channel 7 will be on (PC7, PB7) pins.

SNSK & SNS pins are on different ports, number of channels = 32 when using UC3 device

  1. 1.

    If the SNS1(B) and SNSK1(A) pins are on two different ports, the user should mount the sensors onto the corresponding pins such as (PB0,PA0), (PB1,PA1), (PB2,PA2)..

  2. 2.

    In this case channel 0 will be on (PB0, PA0) pins, channel 1 will be on (PB1, PA1) pins and so on up to channel 31 will be on (PB31, PA31) pins.

SNSK & SNS pins are on the same port, number of channels = 2

  1. 1.

    If the use of SNS1(A) and SNSK1(A) pins are on the same port, the user should always have the configuration (PA0, PA1) & (PA2, PA3). In this case channel 0 will be on (PA0, PA1) pins; channel 1 will be on (PA2, PA3) pins. The even pins of the port are used as SNS1 pins and odd pins of the port are used as SNSK1 pins

SNSK & SNS pins are on the same port, number of channels = 4

  1. 1.

    If the use of SNS1(A) and SNSK1(A) pins are on the same port, the user should always have the configuration (PA0, PA1), (PA2, PA3), (PA4, PA5) & (PA6, PA7). In this case channel 0 will be on (PA0, PA1) pins, channel 1 will be on (PA2, PA3) pins and so on up to channel 4 will be on (PA6, PA7) pins. The even pins of the port are used as SNS1 pins and odd pins of the port are used as SNSK1 pins, when pin configurability is not being used.

SNSK & SNS pins are on the same port, number of channels = 16

(Available only for UC3 devices if more than 4 channels are to be used on a single port. For tinyAVR, megaAVR, XMEGA devices up to 8 channels with SNS and SNSK on same ports)

  1. 1.

    This configuration is available only for UC3 library variants.

  2. 2.

    In the use of SNS(A) and SNSK(A) pins are on the same port, the user should always have the configuration (PA0, PA1), (PA2, PA3), (PA4, PA5) & so on. In this case channel 0 will be on (PA0, PA1) pins, channel 1 will be on (PA2, PA3) pins and so on up to channel 15 will be on (PA30, PA31) pins. The even pins of the port are used as SNS pins and odd pins of the port are used as SNSK pins

SNSK & SNS pins are on the same port, number of channels = 16

(Available only for SAM devices)

  1. 1.

    The even pins of the port are used as SNS pins and odd pins of the port are used as SNSK pins