ATAVRTS2080B Atmel, ATAVRTS2080B Datasheet - Page 24

BOARD EVAL FOR ATTINY88 LIBRARY

ATAVRTS2080B

Manufacturer Part Number
ATAVRTS2080B
Description
BOARD EVAL FOR ATTINY88 LIBRARY
Manufacturer
Atmel
Series
QTouch™r
Datasheets

Specifications of ATAVRTS2080B

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
ATtiny88
Tool Type
Development Kit
Cpu Core
AVR 8 / 32
Data Bus Width
8 bit
Core Architecture
AVR
Silicon Manufacturer
Atmel
Silicon Core Number
ATtiny88
Silicon Family Name
AVR
Kit Contents
Board CD Docs
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
Other names
Q4359953
Values
RECAL_100
RECAL_50
RECAL_25
RECAL_12_5
RECAL_6_25
5.6.4
This section lists the data structures that hold sensor status, settings, and diagnostics information
5.6.4.1
Structure
Input / Output
Use
Fields
sensor_states[]
rotor_slider_values[]
The macro that can get the sensor state when the sensor number is provided can be something
as below:
#define
(1 << (SENSOR_NUMBER % 8))
The host application can use this macro to act accordingly, the following example shows how to
toggle a IO pin (PD2) based on the sensor0 state.( Set PD2 if sensor0 is in detect, and clear PD2
if sensor0 is not in detect)
Ex:
24
Data structures
qt_measure_data.qt_touch_status.sensor_states[(SENSOR_NUMBER/8)] &
/*Set pin PD2 direction as output*/
DDRD |= (1u << PORTD2);
if (GET_SENSOR_STATE(0) !=0)
{
}
else {
}
qt_touch_status_t
Comment
100% recalibration threshold
50% recalibration threshold
25% recalibration threshold
12.5% recalibration threshold
6.25% recalibration threshold
GET_SENSOR_STATE(SENSOR_NUMBER)
PORTD |= (1u << PORTD2); /* Set PORTD2 */
PORTD &= ~(1u << PORTD2); /* Clear PORTD2 */
qt_touch_status_t
Output from the Library
Holds the status ( On/ Off ) of the sensors and the linear and angular positions
of sliders and rotors respectively
For Sensor, the sensor_states. Bit “n” = state of nth sensor :
Bit Value 0 - indicates the sensor is not in detect
Bit Value 1 - indicates the sensor is in detect
values are valid when sensor states shows that the corresponding rotor or
slider is in detect
Comment
Rotors angles or slider positions if rotors and sliders are used. These
8207J-AT42-02/11

Related parts for ATAVRTS2080B