ATAVRTS2080A Atmel, ATAVRTS2080A Datasheet - Page 42

KIT QTOUCH W/SW ATMEGA88

ATAVRTS2080A

Manufacturer Part Number
ATAVRTS2080A
Description
KIT QTOUCH W/SW ATMEGA88
Manufacturer
Atmel
Series
QTouch™r
Datasheets

Specifications of ATAVRTS2080A

Sensor Type
Touch, Capacitive
Sensing Range
1 Rotor, 1 Slider, and 2 Buttons/Keys
Interface
Application Programming Interface (API)
Voltage - Supply
1.8 V ~ 5.5 V
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
ATmega88
Tool Type
Development Kit
Cpu Core
AVR 8 / 32
Data Bus Width
8 bit
Core Architecture
AVR
Silicon Manufacturer
Atmel
Silicon Core Number
ATmega88, ATmega88A
Silicon Family Name
AVR
Kit Contents
Board, CD
Development Tool Type
Hardware / Software - Eval/Demo Board
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Sensitivity
-
Lead Free Status / Rohs Status
 Details
2. Add a filter function prototype to the main module:
The signal values processed by the ATMEL QTouch Library are now the mean of the last four
actual signal values.
5.6.6.4
The GPIO pins within a port that are not used for QTouch or QMatrix acquisition methods can be
used for user application. The usage of pins for QTouch is based on the channels that are being
configured while enabling the sensors (keys/rotors/sliders).
The example below configuring 4 keys, a rotor and a slider shows how the pin configurability is
achieved by configuring the sensor channels. The code snippet configures a specific 10 channels
of a 16 channel library based on the GPIO port pins available for QTouch™.
Port Configuration:
Channel/Pin Configuration:
42
3. When configuring the ATMEL QTouch library, set the callback function pointer:
4. Add the filter function:
#define SNSK1
#define SNS1
#define SNSK2
#define SNS2
/* enable a key on channel 0
qt_enable_key( CHANNEL_0, AKS_GROUP_2, 10u, HYST_6_25 );
/* filter for channel signals */
static uint16_t filter[QT_NUM_CHANNELS][4];
/* example signal filtering function */
static void filter_data_mean_4( void );
/* set callback function */
qt_filter_callback = filter_data_mean_4;
void filter_data_mean_4( void )
{
uint8_t i;
/*
* Shift previously stored channel signal data.
* Store new channel signal data.
* Set library channel signal data = mean of last 4 values.
*/
for( i = 0u; i < QT_NUM_CHANNELS; i++ )
}
Allocating unused Port Pins for User Application
{
filter[i][0] = filter[i][1];
filter[i][1] = filter[i][2];
filter[i][2] = filter[i][3];
filter[i][3] = qt_measure_data.channel_signals[i];
qt_measure_data.channel_signals[i] = ( (
filter[i][1] +
filter[i][2] +
filter[i][3] ) / 4u );
}
C
D
A
B
*/
filter[i][0] +
8207J-AT42-02/11

Related parts for ATAVRTS2080A