The source files needed for compiling your application along with the touch library are
touch_api.h, touch_config.h and qt_asm_tiny_mega.S.
5.6.10.2.2 Example for ATSAM
The example below will explain in detail the steps to follow for library selection.
Criteria
Microcontroller
IDE and compiler tool chain used
Selection
AT91SAM3S
IAR Workbench and GNU compiler
Notes
The GCC compiled
variant of the libraries for
the device selected needs
to be used.
Number of
Keys
required
for
the
3
Each key requires 1
application
Rotors and sliders required
Yes
QTouch acquisition
channel
Number of Rotors and Sliders required
Number of Channels required for the
application ( should be the sum of all
channels required for all the keys ,rotors
and sliders used in the design )
Charge cycle time required for the design
Number of SNS/SNSK port pairs needed
3
12
5 cycles
2 pairs
Each rotor / slider will
require 3 channels.
3 Keys + ( 3 rotors x 3
channels per rotor/slider )
? 12 channels
Assuming the device is
configured with a clock
frequency of 48Mhz
This is determined based
on the free PIO of the
board
Choice of ports available for the design
SNS/SNSK
SNS1 Port: A
The choice of ports for
Pair1 port
SNSK1 Port: A
the port pairs is limited
and can be found in the
section 5.7.1.5
SNS/SNSK
SNS2 Port: B
Pair 2 port
SNSK2 Port: B
Given the above requirements for the applications, the first step is to select the right library
variant required.
Step 1 : Selecting the right library variant
Referring to the library selection guide, we see that there are a few variants of libraries supported
for AT91SAM3S. One library is for IAR and the other is for GNU. If we want to use IAR
Workbench, we use the library name: libsam3s-32qt-k-8rs-iar.a.
Step 2 : Defining the constants / symbols in the project space
In IAR, change preprocessor options by adding the good defines:
_TOUCH_ARM_
_QTOUCH_
SNS1=B
SNSK1=B
SNS2=A
SNSK2=A
QT_NUM_CHANNELS=32
_ROTOR_SLIDER_
QT_DELAY_CYCLES=10
54
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