Atmel QTouch Library User Guide

Atmel QTouch Library User Guide Atmel QTouch Library User Guide

prochild.co.kr
from prochild.co.kr More from this publisher
11.07.2015 Views

OUT_OF_TOUCHIN_TOUCHCurrently the autonomous QTouch channel is out of touchCurrently the autonomous QTouch channel is in detectx_pin_options_tEnumerationUsex_pin_options_tOptions for various pins to be assigned as X lines in QMatrixValues CommentXn Use Pin Xn for QMatrix, n ranges from 0 to 17.Note: X8 pin must NOT be used as X Line and it is recommended to be used asACREFN pin for QMatrix.y_pin_options_tEnumerationUsey_pin_options_tOptions for various pins to be assigned as Y lines in QMatrixValues CommentYn_YKn Use Pin Yn & YKn for QMatrix, n ranges from 0 to 7qt_pin_options_tEnumerationUseqt_pin_options_tOptions for various pins to be assigned as Sense pair for Autonomous QTouch,QTouch Group A and QTouch Group B acquisition methods.Values CommentSPn Use Sense Pair ‘n’ , n ranges from 0 to 16.general_pin_options_tEnumerationUsegeneral_pin_options_tOptions of various pins to be used for SMP, Discharge, SYNC & VDIV.ValuesUSE_NO_PINUSE_PIN_PA12_AS_SMPUSE_PIN_PA13_AS_SMPUSE_PIN_PA14_AS_SMPUSE_PIN_PA17_AS_SMPUSE_PIN_PA21_AS_SMPUSE_PIN_PA22_AS_SMPUSE_PIN_PA17_AS_DISUSE_PIN_PB11_AS_VDIVUSE_PIN_PA15_AS_SYNCUSE_PIN_PA18_AS_SYNCUSE_PIN_PA19_AS_SYNCCommentNo Pin is to be assigned for this purposeUse Pin PA12 as SMP for QMatrixUse Pin PA13 as SMP for QMatrixUse Pin PA14 as SMP for QMatrixUse Pin PA17 as SMP for QMatrixUse Pin PA21 as SMP for QMatrixUse Pin PA22 as SMP for QMatrixUse Pin PA17 as Discharge current control for QMatrixUse Pin PB11 as Voltage divider enable (VDIVEN) for QMatrixUse Pin PA15 as external synchronization input signal (SYNC)Use Pin PA18 as external synchronization input signal (SYNC)Use Pin PA19 as external synchronization input signal (SYNC)1448207K-AT42-09/11

USE_PIN_PB08_AS_SYNCUSE_PIN_PB12_AS_SYNCUse Pin PB08 as external synchronization input signal (SYNC)Use Pin PB12 as external synchronization input signal (SYNC)Data structuresThis section lists the data structures that hold sensor status, settings, and diagnosticsinformation.sensor_tstructureInput / OutputUsesensor_tOutput from the libraryData structure which holds the sensor state variables used by the library.Fields Type Commentstate uint8_t internal sensor stategeneral_counter uint8_t general purpose counter: used for calibration, drifting, etcndil_counter uint8_t drift Integration counterthreshold uint8_t sensor detection thresholdtype_aks_pos_hyst uint8_t holds information for sensor type, AKS group, positiverecalibration flag, and hysteresis valueBit fieldsUseB1 : B0HysteresisB2positive recalibration flagB5:B3AKS groupB7:B6sensor typefrom_channel uint8_t starting channel number for sensorto_channel uint8_t ending channel number for sensorIndex uint8_t index for array of rotor/slider valuestouch_global_param_tstructureInput / OutputUsetouch_global_param_tInput to the LibraryHolds the sensor acquisition parameters for a specific acquisition methodFields Type Commentdi uint8_t Sensor detect integration (DI) limit.neg_drift_rate uint8_t Sensor negative drift rate in units of 200 ms.pos_drift_rate uint8_t Sensor positive drift rate in units of 200 ms.max_on_duration uint8_t Sensor maximum on duration in units of 200ms.drift_hold_time uint8_t Sensor drift hold time in units of 200 ms.pos_recal_delay uint8_t Sensor Positive recalibration delay.recal_threshold recal_threshold_t Sensor recalibration threshold.Refer Section 5.3 for Overview of Global configuration parameters.touch_filter_data_tstructureInput / OutputUsetouch_filter_data_tOutput from the LibraryTouch Filter Callback data type.Fields Type Comment145

OUT_OF_TOUCHIN_TOUCHCurrently the autonomous <strong>QTouch</strong> channel is out of touchCurrently the autonomous <strong>QTouch</strong> channel is in detectx_pin_options_tEnumerationUsex_pin_options_tOptions for various pins to be assigned as X lines in QMatrixValues CommentXn Use Pin Xn for QMatrix, n ranges from 0 to 17.Note: X8 pin must NOT be used as X Line and it is recommended to be used asACREFN pin for QMatrix.y_pin_options_tEnumerationUsey_pin_options_tOptions for various pins to be assigned as Y lines in QMatrixValues CommentYn_YKn Use Pin Yn & YKn for QMatrix, n ranges from 0 to 7qt_pin_options_tEnumerationUseqt_pin_options_tOptions for various pins to be assigned as Sense pair for Autonomous <strong>QTouch</strong>,<strong>QTouch</strong> Group A and <strong>QTouch</strong> Group B acquisition methods.Values CommentSPn Use Sense Pair ‘n’ , n ranges from 0 to 16.general_pin_options_tEnumerationUsegeneral_pin_options_tOptions of various pins to be used for SMP, Discharge, SYNC & VDIV.ValuesUSE_NO_PINUSE_PIN_PA12_AS_SMPUSE_PIN_PA13_AS_SMPUSE_PIN_PA14_AS_SMPUSE_PIN_PA17_AS_SMPUSE_PIN_PA21_AS_SMPUSE_PIN_PA22_AS_SMPUSE_PIN_PA17_AS_DISUSE_PIN_PB11_AS_VDIVUSE_PIN_PA15_AS_SYNCUSE_PIN_PA18_AS_SYNCUSE_PIN_PA19_AS_SYNCCommentNo Pin is to be assigned for this purposeUse Pin PA12 as SMP for QMatrixUse Pin PA13 as SMP for QMatrixUse Pin PA14 as SMP for QMatrixUse Pin PA17 as SMP for QMatrixUse Pin PA21 as SMP for QMatrixUse Pin PA22 as SMP for QMatrixUse Pin PA17 as Discharge current control for QMatrixUse Pin PB11 as Voltage divider enable (VDIVEN) for QMatrixUse Pin PA15 as external synchronization input signal (SYNC)Use Pin PA18 as external synchronization input signal (SYNC)Use Pin PA19 as external synchronization input signal (SYNC)1448207K-AT42-09/11

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

Saved successfully!

Ooh no, something went wrong!