Example for 12 channel intraport-interport  mask Calculation with two port pairs



This example is for intraport-interport 12 channel library with two port pair used.

Channel0 is A1A3,Channel1 is A4A5 and Channel2 is A6A7 are enabled in the first port pair. Channel3 is B1D2,Channel4 is B3D4 and Channel5 is B5D6 are enabled in the second port pair.

The SNS_array and SNSK_array masks are calculated by the Qtouch Studio with rules mentioned above.

In this case, the SNS_array and SNSK_array values will be as mentioned below:

SNS_array[0][0]=0x52; (SNS even mask for port pair 1)

SNS_array[0][1]=0x00; (SNS odd mask for port pair 1)

SNS_array[1][0]=0x22; (SNS even mask for port pair 2)

SNS_array[1][1]=0x08; (SNS odd mask for port pair 2)

SNSK_array[0][0]=0xa8; (SNSK even mask for port pair 1)

SNSK_array[0][1]=0x00; (SNSK odd mask for port pair 1)

SNSK_array[1][0]=0x44; (SNSK even mask for port pair 2)

SNSK_array[1][1]=0x10; (SNSK odd mask for port pair 2)

As the first port pair is intraport, so that’s why SNS_array[0][1] and SNSK_array[0][1] are zero as odd masks are always zero in case of Intraport.