Example for 8 channel intraport mask Calculation with two port pairs



                       

This example is for intraport 8 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 B1B2,Channel4 is B3B4 and Channel5 is B5B6 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]=0x2a; (SNS even mask for port pair 2)

SNS_array[1][1]=0x00; (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]=0x54; (SNSK even mask for port pair 2)

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

In case of Intraport, odd SNS_array and SNSK_array masks are always zero.So that is why SNS_array[0][1], SNS_array[1][1], SNSK_array[0][1] and SNSK_array[1][1] are zero for both the port pairs.