Task 6: Analysis Mode; Introduction - Atmel AVR8015 Application Note

32-bit
Table of Contents

Advertisement

4.6 Task 6: Analysis mode

4.6.1 Introduction

Atmel AVR8015
28
Add the Include files.
Include the following header file in the
/* Includes for Touch Debug interface */
#include "QDebug.h"
Adding code.
1. In the
QDebugSettings.h
virtual kit image in Task3) similar to the below format, under the label
/* Define Custom project as the project id of the virtual kit */ #define
CUSTOM_PROJECT Project ID (ID given to the virtual kit).
2. Assign the project ID under the label
/* Set up project info */.
#define PROJECT_ID CUSTOM_PROJECT.
3. Define the communications protocol. In this hands-on training, we are using the
SPI protocol.
#define QDEBUG_SPI, under the label /* Edit project Info */.
4. In
, add the code
main.c
,
AVR32_CAT_IRQ
AVR32_INTC_INT3
Library CAT interrupt handler to the interrupt controller... */ before #endif
5. In
, call the function
main.c
interface */.
6. In
, add this piece of code under the label /* Send out the Touch debug
main.c
information data each time when Touch measurement process is completed. */
(p_qm_measure_data->acq_status);
QDebug_SendData
7. In
, call the function
main.c
/* Process any commands received from QTouch Studio. */.
Build the code.
1. It should build successfully with no errors or warnings.
2. Now connect the kit as shown in Task 1.
3. Program the code.
4. Unplug the squid programming cable that is connected between Atmel QT600
MCU board and the Atmel AVR JTAGICE mkII. Insert the 10-pin cable for
streaming touch data.
5. Launch Atmel QTouch Studio and switch to Analysis mode.
6. Check if your kit gets connected.
7. Switch to Analysis mode and click on Start Reading button.
8. Test whether you are able to detect touch and see it on QTouch Studio or not. In
the Data view you can see the values of reference, signal, and delta and the state
of each sensor.
Analysis mode has a scalable image of the connected kit. It will show touch
events such as button presses, wheel use, and slider use. The toolbar buttons in
the virtual kit view window shall be used to perform zoom-in, zoom-out, auto fit
and auto code generation operations.
The Analysis mode can be selected by using the radio buttons in the Control
view. QTouch Studio reads out the channel to sensor mapping for an AVR
file below the label:
main.c
file, add the project ID (same project id given to the
INTC_register_interrupt (&touch_acq_done_irq
); under the comment /*Register the Touch
under the label /*Initialize the debug
QDebug_Init();
QDebug_ProcessCommands();
,
under the label
32185A-AVR-01/12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qt600At32uc3l qmatrix

Table of Contents