/* enable a slider on channels 2 to 4 */
qt_enable_slider( CHANNEL_2, CHANNEL_4, AKS_GROUP_1, 16u, HYST_6_25,
RES_8_BIT, 0u );
/* enable a key on channel 6 */
qt_enable_key( CHANNEL_6, AKS_GROUP_2, 10u, HYST_6_25 );
/* enable a key on channel 7 */
qt_enable_key( CHANNEL_7, AKS_GROUP_2, 10u, HYST_6_25 );
/* enable a rotor on channels 12 to14 */
qt_enable_rotor( CHANNEL_12, CHANNEL_14,
AKS_GROUP_1,
16u,
HYST_6_25, RES_8_BIT, 0u );
/* enable a key on channel 15 */
qt_enable_key( CHANNEL_15, AKS_GROUP_2, 10u, HYST_6_25 );
The channel numbers 0,2,3,4,6,7 are allocated to pins 0,2,3,4,6,7 of (D,C) port pair respectively.
Pins 1 and 5 of ports C and D can be used for user application. Similarly the channel numbers
12,13,14,15 are allocated to pins 4,5,6,7 of (B,A) port pair respectively. Pins 1, 2, 3 and 4 of ports
B and A are again unused by the QTouch library and can be used for user application.
5.6.6.5
Disabling and Enabling of Pull-up for AVR devices
The Pull-up circuit available (in AVR devices) for each GPIO pin has to be disabled before
QTouch acquisition is performed. For tinyAVR and megaAVR devices the Pull-up circuit for all
GPIO port pins are enabled and disabled together. When user needs to configure the pins that
are not used by QTouch library for his application, he may enable the Pull-up circuit after QTouch
measurements are performed and disable them before the touch acquisition starts once again (as
shown in the code snippet below).
/* Disable pull-ups for all pins */
MCUCR
|=
(1u << PUD);
//MCUCR_PUD = 1u;
/* perform QTouch measurements */
qt_measure_sensors ( current_time_ms_touch );
/* Enable pull-ups for all pins */
MCUCR
&=
~ (1u << PUD);
//MCUCR_PUD = 0u;
For XMEGA devices the Pull-up circuit for each individual GPIO port pins can be configured
individually, by writing to the PINnCTRL register of the ports being used.
5.6.7 Constraints
5.6.7.1
QTouch acquisition method constraints
QTouch acquisition method libraries are available for different port combinations.
Some of the key constraints while configuring the sensors are
44
?
Rotors/sliders have to be connected on three adjacent channels. (e.g. (1,2,3) or (3,4,5)
…) within the same port. Possible combinations are (0,1,2), (1,2,3) for a configuration
which supports 4 channels. Possible combinations (0,1,2), (1,2,3), (2,3,4), (3,4,5), (4,5,6),
(5,6,7) for a configuration which supports 8 channels.
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