Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Atmel QTouch Library User Guide
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Frozen Stop Stop Run Run Run Run On Full powerStandby Stop Stop Stop Run Run Run On Full powerStop Stop Stop Stop Stop Run Run On Low powerDeepStop Stop Stop Stop Stop Run Run Off Low powerStatic Stop Stop Stop Stop Run Stop Off Low powerTable 12 Sleep mode support for Autonomous <strong>QTouch</strong>Autonomous <strong>QTouch</strong> Sensor API Flow for UC3LFor the Autonomous <strong>QTouch</strong> operation, the CAT_CLK must be setup appropriately as a first step.The Autonomous <strong>QTouch</strong> and Common configuration parameters in the touch_config_at32uc3l.hconfiguration must then be set up.The touch_at_sensors_init API initializes the <strong>QTouch</strong> <strong>Library</strong> as well as the CAT module for theAutonomous <strong>QTouch</strong> sensor related pin, register and Global Sensor configuration. TheAutonomous <strong>QTouch</strong> Sensor can be enabled at any time by the Host Application. Once theAutonomous <strong>QTouch</strong> Sensor is enabled, the CAT module performs measurements on this sensorcontinuously to detect a Touch Status. When an IN_TOUCH or OUT_OF_TOUCH status isdetected, the <strong>QTouch</strong> <strong>Library</strong> calls the touch_at_status_change_interrupt_callback function toindicate the status to the Host application. It is possible to enable and disable Autonomous<strong>QTouch</strong> sensor multiple times in the Host application by using the touch_at_sensor_enable andtouch_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.Re-enable Autonomous<strong>QTouch</strong> Sensor if requiredtouch_at_sensor_init()touch_at_sensor_enable()Disable Autonomous<strong>QTouch</strong> Sensor if requiredThe callback is called as longas Autonomous <strong>QTouch</strong>sensor is not disabledtouch_at_status_change_interrupt_callback(),Autonomous <strong>QTouch</strong> Statustouch_at_sensor_disable()1328207K-AT42-09/11