6.3.8.5
QTouch Group A/B method API Flow for UC3L
For the QTouch operation, the CAT_CLK must be setup appropriately as a first step. Depending
on QTouch Group that need to be used, the QTouch Group A, QTouch Group B and Common
configuration parameters in the touch_config_at32uc3l.h configuration must then be set up.
The first input argument to the QTouch API, TOUCH_QT_GRP_A or TOUCH_QT_GRP_B
indicates if the QTouch API must perform the necessary operation on Group A Sensors or Group
B Sensors. The touch_qt_sensors_init API initializes the QTouch Library as well as the CAT
module and does the QTouch method specific pin, register and Global Sensor configuration. The
touch_qt_sensor_config API is used to configure individual sensor. The Sensor specific
configuration parameter can be provided as input to this API.
The touch_qt_sensors_calibrate API is used to calibrate all the configured sensors thereby
preparing the sensors for acquisition. The touch_qt_sensors_start_acquisition API initiates a
QTouch method measurement on all the configured Sensors (corresponding to the input Touch
Group A or B). This API takes the peripheral DMA channels as an input. When a filter_callback
function is enabled, the touch_event_dispatcher function calls the filter_callback function as soon
as the raw acquisition data from the Sensors is available. The user can now optionally apply any
filtering routine on the raw acquisition data before the QTouch Library does any processing on
this data. (For an overview of Filter callback usage, refer Section 5.6.6.4 Example code). Once
the QTouch Library has finished processing the acquisition data from Sensors, the
touch_event_dispatcher function calls the measure_complete_callback function indicating the end
of a single Touch measurement operation. The measure_complete_callback provides the
measured data and Touch status information. The measured data is available in the same order
of Touch Channel numbering. Separate Filter and Measure complete callback functions must be
provided for Group A and Group B Sensors.
Note: The Host Application code can execute once a QTouch acquisition is initiated with the
touch_qt_sensors_start_acqusition API. Care must be taken in the Host Application such that the
touch_event_dispatcher function is called frequently in order to process the acquired data. For a
single Touch measurement operation (between a touch_qt_sensors_start_acquisition API call
and the measure_complete_callback function being called), the touch_event_dispatcher function
may execute multiple times in order to resolve the Touch status of Sensors. Failing to call the
touch_event_dispatcher frequently can adversely impact the Touch Sensitivity.
128
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