6.3.9.4
Autonomous QTouch Sensor API Flow for UC3L
For the Autonomous QTouch operation, the CAT_CLK must be setup appropriately as a first step.
The Autonomous QTouch and Common configuration parameters in the touch_config_at32uc3l.h
configuration must then be set up.
The touch_at_sensors_init API initializes the QTouch Library as well as the CAT module for the
Autonomous QTouch sensor related pin, register and Global Sensor configuration. The
Autonomous QTouch Sensor can be enabled at any time by the Host Application. Once the
Autonomous QTouch Sensor is enabled, the CAT module performs measurements on this sensor
continuously to detect a Touch Status. When an IN_TOUCH or OUT_OF_TOUCH status is
detected, the QTouch Library calls the touch_at_status_change_interrupt_callback function to
indicate the status to the Host application. It is possible to enable and disable Autonomous
QTouch sensor multiple times in the Host application by using the touch_at_sensor_enable and
touch_at_sensor_disable API.
Using the init_clock() in main.c and clock.c files,
Set the CAT_CLK Clock to appropriate value.
Using the touch_config_at32uc3l.h configuration file,
Set DEF_TOUCH_AUTONOMOUS_QTOUCH = 1.
Set all AT_xx and TOUCH_xx macros to appropriate values.
touch_at_sensor_init()
The callback is called as long
as Autonomous QTouch
sensor is not disabled
Re-enable Autonomous
QTouch Sensor if required
touch_at_sensor_enable()
touch_at_status_change_interrupt_callback(),
Autonomous QTouch Status
Disable Autonomous
QTouch Sensor if required
touch_at_sensor_disable()
Figure 44 Autonomous QTouch API Flow diagram
6.3.9.5
Autonomous QTouch method Enable and Disable Sensor for UC3L
The touch_at_sensor_enable and touch_at_sensor_disable API can be used for Enabling and
Disabling and the Autonomous QTouch Sensor. Once the Autonomous QTouch sensor is
enabled, the CAT module performs continuous Touch Measurements on the Sensor in order to
detect the Touch Status.
131
相关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