SMP Pin on PORTD pin 7
QT_DELAY_CYCLES of 4
Or
This can be filled from the output
of the pin configurator tool in
QTouch Studio. Please refer to
section 5.8.2
Choice of Shared
Ya and Yb on same
port
SHARED_YAYB
This should be defined as 0 if YA
and YB not shared on same port
else 1 if shared on same port.
Given the above requirements for the applications, the first step is to select the right library
variant required.
Step 1:
Select the Device that suits the requirements based on the touch sensing channels needed from
the library selection guide available at C: Program Files\Atmel Atmel_QTouch_Libaries_5.x
Library_Selection_Guide.xls
Step 2:
From the Library_selection_Guide.xls list,, we see that there are a few variants of libraries
supported for AT Tiny device. Since the application requires 6 channels and rotor slider support,
one has to select a library variant which supports at least 6 channels or more. Hence we select
the 8 channel library which supports the required Port combination and the delay cycle preferred
which works out to be the variant
?
libv1g1s1_8qm_4x_2y_krs_2rs.r90
Step 3 :
Defining the constants / symbols in the project space or modifying in touch_config.h
In the host application file (say main.c), define the following constants and symbols
#define _QMATRIX_
#define QT_NUM_CHANNELS
#define NUM_X_LINES
#define NUM_Y_LINES
#define NUM_X_PORTS
#define PORT_X_1
#define PORT_NUM_1
#define PORT_X_2
#define PORT_NUM_2
#define PORT_YA
#define PORT_YB
#define PORT_SMP
#define SMP_PIN
#define QT_DELAY_CYCLES
#define ROTOR_SLIDER_
8
4
2
2
B
1
D
2
D
C
D
7
4
#define QT_MAX_NUM_ROTORS_SLIDERS
2
#define SHARED_YAYB
0
NOTE: The above definitions are available in touch_config.h file . Alternatively, you can
define these in your IDE’s project options or have them defined in a separate header file.
Note:
1. Some of these macro’s can be taken from the output of the Pin configurator tool from
QTouch Studio. Refer to section 5.8.2
60
8207L-AT42-05/12
相关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