11.07.2015 Views

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

Atmel QTouch Library User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Setup the desired device clock using the init_system() in main.cUsing the init_timer(), setup the Timer ISR such that the Timer Interrupt occurs every20ms . Enable the ADC and configure in Free running mode.Using the touch_config_tiny20.h configuration file,1. Set the desired number of Sensors.2. Set the Individual sensor Threshold, Hysteresis, Recalibration Threshold and Delaycycle values.3. Set the desired Sensor Global acquisition parameters using theIAR Project->Linker options.4. The DEF_QT_ADC_CHANNEL_START_INDEX Linker option can be used to setthe starting ADC Channel.Add any Host Application(a Sample LED application is available with the Tin20 EK IAR Example project).qt_init_sensing()Call in looptime_to_measure_touchqt_measure_sensors()Measured data and Touch StatusHost Application codeFigure 50 <strong>QTouch</strong> method for Tiny20 API Flow diagram171

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!