Техническая Спецификация для Atmel ATSAM3N-EK

Скачать
Страница из 39
QT600
SAM3N-EK Development Board User Guide
5-9
11080C–ATARM–30-Mar-11
5.5.6
STATUS LED
„
Green: Ready state
„
Orange: Busy programming
„
Orange/red flashing: Upgrade mode
„
Orange/green flashing: Upgrade mode, upgrade in progress
During programming, the LED is orange. When the Atmel target device has been successfully pro-
grammed, the LED turns green.
5.5.7
Touch ATx Firmware
The firmware for the Touch ATx is based on the QTouch Library. The QTouch Library handles the touch 
acquisition. The touch measurement values are made available for the application firmware trough an 
API, which is described in detail in the QTouch Library User Guide.
The touch measurement values available through the Touch Library API are sent to the QT600 with an
SPI (or PIO) interface, using a custom protocol. AVR QTouch Studio will read these data packets from 
the QT600.
See the QT600 Protocol Document for details about the communication protocol.
5.6
Touch Debug
Before a touch debug session can be started, the target microcontroller on the SAM3N-EK board must 
be programmed. The example projects can be retrieved from the QTouch Library (installation steps are 
detailed in 
Example projects for both GCC and IAR compilers are available. 
1.
Connect a 10-wire cable between the Touch Data Connector on the SAM3N-EK board and the Touch 
Data connector on the QT600 Interface board (see 
)
2.
Start AVR QTouch Studio
3.
Connect the USB cable to the QT600 interface board
4.
Press the Start Debug Button in AVR QTouch Studio
AVR QTouch Studio automatically connects to the QT600 when the USB plug is inserted. The Touch 
Data streaming starts when the "Start Debug" button is pressed.
5.7
Using QT600 and AVR QTouch Studio for Custom Applications
The QT600 Interface Board and QTouch Studio can be used to read touch data from any application 
based on the QTouch Library. The only requirement is that there are two I/O pins available and that there 
is enough free space in flash for the debug protocol and serial interface driver.
The QT600 interface uses an SPI protocol at a frequency of 200 kHz.
Complete firmware driver files are available in the QT600 example projects, which can be downloaded 
from www.atmel.com/QT600. See the readme.txt file in the QT600 Example Projects folder for instruc-
tions on how to add the QT600 protocol files to your firmware project.