Atmel QTouch Library User Guide

Atmel QTouch Library User Guide Atmel QTouch Library User Guide

prochild.co.kr
from prochild.co.kr More from this publisher
11.07.2015 Views

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’swhy SNS_array[0][1] ,SNS_array[1][1], SNSK_array[0][1] and SNSK_array[1][1] are zerofor both the port pairs.Example for 12 channel intraport-interport mask Calculation with two portpairsSNS1=PORTAX X XCh2 Ch1 Ch0X X XSNSK1=PORTASNS2=PORTBX X XCh5 Ch4 Ch3SNSK2=PORTDX X XThis 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 portpair. Channel3 is B1D2,Channel4 is B3D4 and Channel5 is B5D6 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]=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)928207K-AT42-09/11

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

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’swhy SNS_array[0][1] ,SNS_array[1][1], SNSK_array[0][1] and SNSK_array[1][1] are zerofor both the port pairs.Example for 12 channel intraport-interport mask Calculation with two portpairsSNS1=PORTAX X XCh2 Ch1 Ch0X X XSNSK1=PORTASNS2=PORTBX X XCh5 Ch4 Ch3SNSK2=PORTDX X XThis 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 portpair. Channel3 is B1D2,Channel4 is B3D4 and Channel5 is B5D6 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]=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)928207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!