a. The clock, host application and other peripherals needed by the host application
needs to be initialized.
b. In your application, create, initialize and configure the sensors.
i. The APIs of interest are qt_enable_key/rotor/slider().see sections 5.6.5.2,
c.
The channel configuration parameters need to be set by calling the
qt_set_parameters() ( see section 5.6.5.1.
d. Once the sensors are configured, qt_init_sensing() has to be called to trigger the
initialization of the sensors with the configuration defined in steps above.
d. Provide timing for the QTouch libraries to operate. i,e the QTouch libraries do not
use any timer resources of the microcontroller. The Host application has to
provide the required timing and also call the API’s at the appropriate intervals to
perform touch sense detect operations.
NOTE: The ATSAM example applications provided with the libraries illustrate the
usage for the evaluation kits supported by the library. Please refer to the main.c files
for reference.
5) Adding the necessary source files
The following files are to be added along with the touch library and user application
before compilation:
?
?
?
?
ATtiny, ATmega devices - touch_api.h, qt_asm_avr.h, touch_config.h and
qt_asm_tiny_mega.S
ATxmega devices - touch_api.h, qt_asm_avr.h, touch_config.h and
qt_asm_xmega.S
UC3 devices – touch_api.h
ATSAM devices - touch_api.h and touch_qt_config.h
6) General application notes
?
?
?
The clock, host application and other peripherals needed by the host application
needs to be initialized.
Ensure that there are no conflicts between the resources used by the touch
library and the host application.
Ensure that the stack size for your application is adjusted to factor in the stack
depth required for the operation of the touch libraries.
5.6.10.2.1 Example for 8bit AVR
The example below will explain in detail the steps to follow for library selection.
Criteria
Microcontroller
Selection
ATMega1280
Notes
IDE and compiler tool chain
used
Number of Keys required
AVR STUDIO ?
and GNU compiler
3
IDE
The GCC compiled variant of the libraries for the
device selected needs to be used.
Each key requires 1 QTouch acquisition channel
for the application
Rotors and sliders required
Yes
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 ports needed
52
3
12
1 cycle
3 ports
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 4Mhz
This is determined based on the number of
channels required and the routing required for the
channels SNS and SNSK pins to the ports
For this design, 24 pins are required and we need
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