11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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] arezero as odd masks are always zero in case of Intraport.Example for 16 channel intreport-interport mask Calculation with two portpairsXXXSNS1=PORTAPORT PAIR 1 Ch2 Ch1 Ch0SNSK1=PORTBX X XXXXSNS2=PORTCPORT PAIR 2 Ch5 Ch4 Ch3SNSK2=PORTDX X XThis example is for interport-interport 16 channel library with two port pair used.Channel0 is A2B0,Channel1 is A4B3 and Channel2 is A5B6 are enabled in the first portpair. Channel3 is C1D2,Channel4 is C3D3 and Channel5 is C5D4 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]=0x24; (SNS even mask for port pair 1)SNS_array[0][1]=0x10; (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]=0x41; (SNSK even mask for port pair 1)SNSK_array[0][1]=0x08; (SNSK odd mask for port pair 1)93

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

Saved successfully!

Ooh no, something went wrong!