11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SNSK_array[1][0]=0x00; (SNSK even mask for port pair 2)SNSK_array[1][1]=0x00; (SNSK odd mask for port pair 2)As there is no second port pair used for this, so that’s why SNS_array[1][0],SNS_array[1][1], SNSK_array[0][1] and SNSK_array[1][1] are having value zero.Example for 8 channel intraport mask Calculation with two port pairsSNS1=PORTAX X XCh2 Ch1 Ch0X X XSNSK1=PORTASNS2=PORTBX X XCh5 Ch4 Ch3SNSK2=PORTBX X XThis 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 portpair. Channel3 is B1B2,Channel4 is B3B4 and Channel5 is B5B6 are enabled in thesecond port pair.The SNS_array and SNSK_array masks are calculated by the Qtouch Studio with rulesmentioned 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)91

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!