Tips on pin assignments for the sensor design using two pairs 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.

Design choice for the sensor

Example Port configuration with pin assignments

SNSK1-SNS1 & SNSK2-SNS2 pins are all on different ports, number of channels = 16

(Use the 16channel library in this case. Ensure the port definitions for SNS1,SNSK1,SNS2,SNSK2 are all in place)

  1. 1.

    E. g. SNS1(D), SNSK1(B) & SNS2(C), SNSK2(A)

  2. 2.

    Recommended configuration: (PD0, PB0), (PD1, PB1),..(PD7, PB7), (PC0,PA0).. to (PC7, PA7). In this case channel 0 will be on (PD0, PB0) pins, channel 1 will be on (PD1, PB1) pins, channel 8 will be on (PC0, PA0), channel 9 will be on (PC1, PA1) and so on up to channel 15 will be on (PC7, PA7) pins.

SNSK1-SNS1 are on same port & SNSK2-SNS2 pins are on same port, number of channels = 8

(Use the 8channel library in this case. Ensure the port definitions for SNS1,SNSK1,SNS2,SNSK2 are all in place)

  1. 1.

    E.g. SNS1(K), SNSK1(K) & SNS2(H), SNSK2(H) on same ports,

  2. 2.

    Recommended configuration: In case Pin configurability is not used, (PK0, PK1), (PK2, PK3),..(PK6, PK7), (PH0,PH1).. to (PH6, PH7).In this case channel 0 will be on (PK0, PK1) pins, channel 1 will be on (PK2, PK3) pins, channel 4 will be on (PH0, PH1), channel 5 will be on (PH2, PH3) and so on up to channel 7 will be on (PH6, PH7) pins. The even pins of the port are used as SNS pins and odd pins of the port are used as SNSK pins.

SNSK1-SNS1 are on different ports & SNSK2-SNS2 pins are on same port, number of channels = 12

(Use the 12channel library in this case. Ensure the port definitions for SNS1,SNSK1,SNS2,SNSK2 are all in place)

  1. 1.

    E.g. SNS1(H), SNSK1(F) on different ports & SNS2(E), SNSK2(E) on same ports.

  2. 2.

    Recommended configuration : In case Pin configurability is not used,  (PH0, PF0), (PH1, PF1),..(PH7, PF7), (PE0,PE1).. to (PE6, PE7). In this case channel 0 will be on (PH0, PF0) pins, channel 1 will be on (PH1, PF1) pins... channel 8 will be on (PE0,PE1), channel 9 will be on (PE2,PE3) and so on up to channel 11 will be on (PH6, PH7) pins. The even pins of the port E are used as SNS pins and odd pins of the port E are used as SNSK pins.

SNSK1-SNS1 are on same port & SNSK2-SNS2 pins are on different ports, number of channels = 12

(Use the 12channel library in this case. Ensure the port definitions for SNS1,SNSK1,SNS2,SNSK2 are all in place)

  1. 1.

    E.g. SNS1(G), SNSK1(G) on different ports & SNS2(B), SNSK2(D) on same ports

  2. 2.

    Recommended configuration: In case Pin configurability is not used,  (PG0, PG1), (PG2, PG3),..(PG6, PG7), (PB0,PD0)... to (PB7, PD7). In this case channel 0 will be on (PG0, PG1) pins, channel 1 will be on (PG2, PG3) pins... channel 3 will be on (PG6, PG7), channel 4 will be on (PB0,PD0) and so on up to channel 11 will be on (PB7, PD7) pins. The even pins of the port G are used as SNS pins and odd pins of the port G are used as SNSK pins