_SNS1_SNSK1_SAME_PORT_
_SNS2_SNSK2_SAME_PORT_
Step3 : Usage of library API’s
Now, you can use the touch API’s to create, initialize and perform touch sensing.
5.6.10.2.3 Checklist of items for integrating QTouch acquisition method libraries
The following is a checklist of items which needs to be ensured when integrating QTouch
acquisition method libraries
?
?
?
?
?
?
The clock prescaler register (e.g. CLKPR, XDIV) needs to be configured correctly based
on the device selected. Some devices have clock frequency selection based on fuses. It
has to be ensured the fuses are set correctly in such cases.
It is recommended to disable PULL-UP resistor on all port pins used for touch sensing on
the device selected (e.g. PUD bit in MCUCR, SFIOR for a few of the tinyAVR and
megaAVR devices Please refer to the Data sheet of the selected device).
The 16 bit timer in each device has been used for performing touch measurements
periodically. The datasheet for all the devices have to be checked to ensure that the
correct timer peripheral and its registers are used (file: main.c).
The interrupt vector macro may also change from device to device and this needs to be
verified in the datasheet for the device used.
Check if the timer is configured correctly to support the measurement period needed (e.g.
25msec or 50 msec).
The sample applications for the evaluation kits and supported devices illustrate the
proper initialization sequence and usage of the timer resources (file: main.c). Please use
this as a reference for your application design.
The host application must provide the current time to the library. This information is passed to the
library as an argument to the function qt_measure_sensors()”. This is used for time-based library
operations such as drift compensation.
5.6.10.3 Integrating QMatrix acquisition method libraries in your application
5.6.10.3.1
Example for 8bit AVR
Based on the application design needs, the user needs to select the right library variant and the
configuration to be used along with the variant. This section illustrates the steps required to select
the right QMatrix acquisition method library variant and configuration for your application. QMatrix
acquisition method library Variants are offered for IAR and AVR-GCC tool chains. First step is to
select the compiler tool chain for which the libraries are required. The list of supported compiler
tool chains can be found in section 5.7.2.2
There are specific library variants distributed for each microcontroller. For your design, you would
need the following information to select the correct library variant
a. Device to be used for the design
b. The number of touch sensing channels needed by the application – Then identify the
Maximum number of channels required for the design that are supported by the library.
c.
Number of X lines to be used in the design
a. The ports on which your design permits to have the X lines
b. The X lines can be spread on a maximum of three ports, the more ports used the
more is the code memory requirement by the library.
d. Number of Y lines to be used in the design
a. The port-pins ports on which your design permits to have the Y lines
55
相关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