Task 5: Use Of The Debug Interface; Introduction; Setting Up The Code - Atmel AVR8015 Application Note

32-bit
Table of Contents

Advertisement

NOTE

4.5 Task 5: Use of the Debug Interface

4.5.1 Introduction

4.5.2 Setting up the code

32185A-AVR-01/12
The parameters are as follows:
sensor_type
from_channel
to_channel
aks_group
detect_threshold
detect_hysteresis
position_resolution the resolution of the reported position value
position_hysteresis the hysteresis of the reported position value
p_sensor_id
The range of
position_hysteresis
The debug interface is used to communicate various touch sensor information to the
computer running Atmel QTouch Studio. The debug interface as seen from the Atmel
AT32UC3L is implemented completely in firmware. This is to be added only for
debugging purposes.
Add the source files.
• QDebug.c
• QDebugTransport.c
• SPI_Master.c
These source files with the corresponding header files are present in Task 5 folder.
1.
,
QDebug.c
QDebugTransport.c
headers can also be found in the qebug folder.
2. The debug interface is used to communicate various touch sensor information to
a computer running Atmel QTouch Studio.
3. In the solution explorer tab in Atmel AVR Studio, right click the project and select
Add Existing File, and then select the above mentioned source files and the
corresponding header files from Task 5 folder. Alternatively, you can drag and
drop the file onto the project. Similarly include the other source files.
4. The Atmel QT600 interface board and QTouch Studio can be used to read touch
data from any application based on the
USART SPI mode as the communication interface.
5. Open the Project properties Window, select tool chain tab and click on Directories
option below AVR/GNU C compiler, and specify the right paths for all three files
(enter the relative path). Make sure those directories paths are included both in
Release and Debug profile.
can be of type key, rotor or slider
the first channel in the sensor group
the last channel in the sensor group
®
which AKS
group (if any) the sensor is in
the sensor detection threshold
the sensor detection hysteresis value
The sensor id value of the configured sensor is updated by
the Touch Library
value is from 0 to 7.
, and
SPI_Master.c
QTouch
Atmel AVR8015
, and its corresponding
Library. Here we are using
27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qt600At32uc3l qmatrix

Table of Contents