2. These can also be modified in the touch_config.h, after defining the _QMATRIX_ in the
project space.
3. In case XMEGA device is used for QMatrix the symbol __ATXMEGA_ has to be included
in the Project space along with the symbols mentioned above.
Step 4:
Filling Arrays in the main.c file
According to the pin availability for the touch sensing, initialize the arrays in the main.c file as
below:
x_line_info_t x_line_info[NUM_X_LINES]= {
FILL_OUT_X_LINE_INFO( 1,0u ),
FILL_OUT_X_LINE_INFO( 2,2u ),
FILL_OUT_X_LINE_INFO( 1,7u ),
};
y_line_info_t ya_line_info[NUM_Y_LINES]= {
FILL_OUT_YA_LINE_INFO(
FILL_OUT_YA_LINE_INFO(
0u ),
5u ),
};
y_line_info_t yb_line_info[NUM_Y_LINES]= {
FILL_OUT_YB_LINE_INFO(
FILL_OUT_YB_LINE_INFO(
0u ),
5u ),
};
Note:
1. This part of the snippet can be taken from the output of the Pin configurator tool from
QTouch Studio.
Step 5:
Usage of libraries
Now, you can use the touch API’s to create, initialize and perform touch sensing. Please refer to
the sample applications in section 5.6.11.3 for reference. These sample applications illustrate the
usage of the API’s and the sequence of operation
5.6.10.3.1.2 Resources used by QMatrix acquisition method libraries
The following additional resources are used by the QMatrix acquisition method libraries.
?
?
?
?
One Analog Comparator
One internal Timer ( Usually Timer1 depending on the availability on particular
microcontroller)
One ADC Multiplexer( The critical section of the touch sensing library disables the use of
ADC as conversion unit and enables the same ADC as a multiplexer, but the user can
use the ADC for conversion in rest of his application code )
The ADCMUX is used by the library during the touch sensing acquisition, however it is
restored with the value from host application before exiting the qt_measure_sensors().
Such that the ADC is available to the host application for conversion.
In case of XMega devices, the resources are used internal to the library and hence cannot be
used by the host application
61
相关PDF资料
ATU6-P305T-R CABLE CAT6 FULL-BOX 305M GRAY
ATUP-P305T-R CABLE CAT5E PULL-BOX 305M GRAY
ATUP-V305T-R CABLE CAT5E REEL 305M GRAY
AWG28-05/F-1/300-R CABLE 5 COND MULTI 300' RIBBON
AWG28-05/G-1/300-R CABLE 5 COND GRAY 300' RIBBON
AWG28-09/F-1/300-R CABLE 9 COND MULTI 300' RIBBON
AWG28-09/G-1/300-R CABLE 9 COND GRAY 300' RIBBON
AWG28-25/F-1/300-R CABLE 25 COND MULTI 300' RIBBON
相关代理商/技术参数
ATQT600IB 功能描述:界面开发工具 ATQT600IB Interface Brd RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
ATQT6-XPRO 功能描述:Xplained Pro - Extension Board 制造商:atmel 系列:- 零件状态:有效 配件类型:扩展板 配套使用产品/相关产品:Xplained Pro 标准包装:1
ATR 1078 功能描述:TOOL INSERTION TWEEZER 20 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1079 功能描述:TWEEZER INSERTION 20 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1080 制造商:Astro Tool Corp 功能描述:TOOL INSERTION 20 GA
ATR 1080-135 功能描述:INSERTION TOOL 20 GA ANGLED TIP 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1080-S 功能描述:INSERTION TOOL STRAIGHT 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1
ATR 1105 功能描述:TOOL INSERTION TWEEZER 16 GA 制造商:astro tool corp 系列:* 零件状态:有效 标准包装:1