Atmel QTouch Library User Guide
Atmel QTouch Library User Guide Atmel QTouch Library User Guide
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
- Page 42 and 43: Channel 47 N/A N/A N/A N/A N/A X7Y5
- Page 44 and 45: channel 0channel 1channel 2channel
- Page 46 and 47: Disabling and Enabling of Pull-up f
- Page 48 and 49: ‣ Recommended threshold should be
- Page 50 and 51: QMatrix acquisitionmethod libraries
- Page 52 and 53: definition is not required.QT_NUM_C
- Page 54 and 55: SNS1 and SNSK1 pins usethe same por
- Page 56 and 57: • It is recommended to disable PU
- Page 58 and 59: Table 4 :List of configurable param
- Page 60 and 61: Number ofchannels requiredfor the a
- Page 62 and 63: 2. The above definitions should be
- Page 64 and 65: NUM_Y_LINES_ROTOR_SLIDER_QT_MAX_NUM
- Page 66 and 67: has Four Comparators (AC0A , AC1A ,
- Page 68 and 69: Note: When using the IAR IDE / comp
- Page 70 and 71: Figure 5-11: Selecting the right co
- Page 72 and 73: SNS1 - SNSK1 & SNS2 -SNSK2QT_NUM_CH
- Page 74 and 75: Selecting the right configurationTh
- Page 76 and 77: Figure 5-20 : Specifying QMatrix ac
- Page 78 and 79: Debug Support in Example applicatio
- Page 80 and 81: Support for different compiler tool
- Page 82 and 83: Maximum number of rotor / sliders s
- Page 84 and 85: Tips on pin assignments for the sen
- Page 86 and 87: ATtiny88)v1g1s2(ATtiny461,ATmega16a
- Page 88 and 89: X0,X1,X2,X3 are on PB0,PB1,PB2,PB3N
- Page 90 and 91: 1. The channel numbers are allocate
- Page 94 and 95: SNSK_array[1][0]=0x14; (SNSK even m
- Page 96 and 97: Figure 5-28: New Design Sensors in
- Page 98 and 99: Figure 5-31: Selecting the MCU for
- Page 100 and 101: Figure 5-34: Selecting the SNS and
- Page 102 and 103: 2. QTOUCH_STUDIO_MASKS needs to be
- Page 104 and 105: Figure 5-38: Selecting New Design3.
- Page 106 and 107: Figure 5-42: Start window of the co
- Page 108 and 109: Figure 5-45: Selecting the X,YA,YB,
- Page 110 and 111: The code can be copied using the
- Page 112 and 113: ApplicablereleaseQTouch libraries v
- Page 114 and 115: Device Specific LibrariesIntroducti
- Page 116 and 117: Table 8 Compiler tool chains suppor
- Page 118 and 119: maintains the States of QMatrix, QT
- Page 120 and 121: equired as shown in the case A of F
- Page 122 and 123: Figure 37 QMatrix method schematicQ
- Page 124 and 125: Figure 39 QMatrix API Flow diagram
- Page 126 and 127: CAT Module Pin NameCSA0CSB0CSA1CSB1
- Page 128 and 129: The QTouch method acquisition using
- Page 130 and 131: Host Application codeUsing the init
- Page 132 and 133: Frozen Stop Stop Run Run Run Run On
- Page 134 and 135: Figure 45 Raw acquisition mode API
- Page 136 and 137: Figure 46 GNU Example project usage
- Page 138 and 139: the QTouch Library as QMatrix data
- Page 140 and 141: TOUCH_STATUS_CHANGE 0x0002u Status
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