Atmel QTouch Library User Guide
Atmel QTouch Library User Guide Atmel QTouch Library User Guide
CAT Module Pin NameCSA0CSB0CSA1CSB1CSA2CSB2CSA3CSB3CSA4CSB4CSA5CSB5CSA6CSB6CSA7CSB7CSA8CSB8CSA9CSB9CSA10CSB10CSA11CSB11CSA12CSB12CSA13CSB13CSA14CSB14CSA15CSB15CSA16CSB16QTouch method Pin NameSNS0SNSK0SNS1SNSK1SNS2SNSK2SNS3SNSK3SNS4SNSK4SNS5SNSK5SNS6SNSK6SNS7SNSK7SNS8SNSK8SNS9SNSK9SNS10SNSK10SNS11SNSK11SNS12SNSK12SNS13SNSK13SNS14SNSK14SNS15SNSK15SNS16SNSK16Table 11 QTouch Resistive drive pin option(The rows marked with Grey indicate that Resistive Drive option is not available on that pin.)QTouch Group A/B method Schematic for UC3LResistive Drive optionThe cases A and B of the Figure provide the schematic arrangement of QTouch Group A/B andAutonomous QTouch Sensors. In option A, Resistive drive is enabled on SNSK line. In case B,Resistive drive is disabled on the SNSK line and in this case, it is recommended to use 1kOhmresistors on SNSK Line external to the UC3L device.SYNC pin optionIn order to prevent interference from the 50 or 60 Hz mains line the CAT can optionally triggerQTouch Group A/B and Autonomous QTouch acquisition on the external SYNC input signal. TheSYNC signal should be derived from the mains line and the acquisition will trigger on a falling1268207K-AT42-09/11
edge of this signal. The SYNC pin usage in the Internal Discharge mode scenario is shown incase C. For QTouch method SYNC pin options Refer to Section 6.3.15.2.13.A. QTouch Group A/B and Autonomous QTouch arrangement.Resistive drive enabled on SNSK Line.B. QTouch Group A/B and Autonomous QTouch arrangement.Resistive drive disabled on SNSK Line.AtmelAT32UC3LSNSKSensorAtmelAT32UC3LSNSKRsSensorCATModuleCsCATModuleCsSNSSNSTypical Values:Cs: 22nFTypical Values:Cs: 22nF, Rs:1kOhmPin requirements:SNS: CAT QTouch method I/O pinSNSK: CAT QTouch method I/O pinC. QTouch Group A/B and Autonomous QTouch arrangement.Resistive drive enabled on SNSK Line.External Synchronization enabled.Pin requirements:SNS: CAT QTouch method I/O pinSNSK: CAT QTouch method I/O pinAtmelAT32UC3LSNSKSensorCATModuleCsSNSSYNCSyncsignalTypical Values:Cs: 22nFPin requirements:SNS: CAT QTouch method I/O pinSNSK: CAT QTouch method I/O pinSYNC: CAT-SYNC I/O pinFigure 40 QTouch Group A/B and Autonomous QTouch schematicarrangementQTouch Group A/B method hardware resource requirement for UC3LThe clock for the CAT module, CLK_CAT, is generated by the Power Manager (PM). This clock isturned on by default, and can be enabled and disabled in the PM. The user must ensure thatCLK_CAT is enabled before initializing the QTouch Library.127
- 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 92 and 93: SNSK_array[1][1]=0x00; (SNSK odd ma
- 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 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
- Page 142 and 143: sensor_type_tEnumerationUsesensor_t
- Page 144 and 145: OUT_OF_TOUCHIN_TOUCHCurrently the a
- Page 146 and 147: num_channel_signals uint8_t Length
- Page 148 and 149: touch_at_statusstructureInput / Out
- Page 150 and 151: UseData structure which holds the R
- Page 152 and 153: variable to the Touch library. The
- Page 154 and 155: structure.p_qta_config touch_qt_con
- Page 156 and 157: p_touch_sensor_param touch_qm_param
- Page 158 and 159: current_time_ms touch_time_t Curren
- Page 160 and 161: touch_ret_t touch_qt_sensor_config(
- Page 162 and 163: touch_qt_sensors_calibratetouch_ret
- Page 164 and 165: touch_qt_get_libinfotouch_ret_t tou
- Page 166 and 167: • This API updates the configurat
- Page 168 and 169: Rule Rule Description Advisory/Requ
- Page 170 and 171: VCCPA0No ConnectionPA1PA2ATtiny20PA
- Page 172 and 173: QTouch Library configuration parame
- Page 174 and 175: Recommended setting.Table 19 QTouch
CAT Module Pin NameCSA0CSB0CSA1CSB1CSA2CSB2CSA3CSB3CSA4CSB4CSA5CSB5CSA6CSB6CSA7CSB7CSA8CSB8CSA9CSB9CSA10CSB10CSA11CSB11CSA12CSB12CSA13CSB13CSA14CSB14CSA15CSB15CSA16CSB16<strong>QTouch</strong> method Pin NameSNS0SNSK0SNS1SNSK1SNS2SNSK2SNS3SNSK3SNS4SNSK4SNS5SNSK5SNS6SNSK6SNS7SNSK7SNS8SNSK8SNS9SNSK9SNS10SNSK10SNS11SNSK11SNS12SNSK12SNS13SNSK13SNS14SNSK14SNS15SNSK15SNS16SNSK16Table 11 <strong>QTouch</strong> Resistive drive pin option(The rows marked with Grey indicate that Resistive Drive option is not available on that pin.)<strong>QTouch</strong> Group A/B method Schematic for UC3LResistive Drive optionThe cases A and B of the Figure provide the schematic arrangement of <strong>QTouch</strong> Group A/B andAutonomous <strong>QTouch</strong> Sensors. In option A, Resistive drive is enabled on SNSK line. In case B,Resistive drive is disabled on the SNSK line and in this case, it is recommended to use 1kOhmresistors on SNSK Line external to the UC3L device.SYNC pin optionIn order to prevent interference from the 50 or 60 Hz mains line the CAT can optionally trigger<strong>QTouch</strong> Group A/B and Autonomous <strong>QTouch</strong> acquisition on the external SYNC input signal. TheSYNC signal should be derived from the mains line and the acquisition will trigger on a falling1268207K-AT42-09/11