13
AT42QT1085 [DATASHEET]
9625D–AT42–05/2013
4.7 Configuring the QT1085
The QT1085 has an object-based protocol that organizes the features of the device into objects that can be
controlled individually. This is configured using the Object Protocol common to many Atmel touch sensor devices.
For more information on the Object Protocol and its implementation on the QT1085, refer to the AT42QT1085
Protocol Guide. See also Section 6. on page 17.
14
AT42QT1085 [DATASHEET]
9625D–AT42–05/2013
5. SPI Protocol for Object Protocol Memory Map Access
5.1 SPI Signals
The Serial Peripheral Interface (SPI) allows high-speed synchronous data transfer between the host and the
QT1085. All communication with the device is carried out over the SPI. This is a synchronous serial data link that
operates in full-duplex mode. The host communicates with the QT1085 over the SPI using a master-slave
relationship, with the QT1085 acting in slave mode.
The SPI uses four logic signals:
Serial Clock (SCK) – output from the host.
Master Output, Slave Input (MOSI) – output from the host, input to the QT1085. Used by the host to send data
to the QT1085.
Master Input, Slave Output (MISO) – input to the host, output from the QT1085. Used by the QT1085 to send
data to the host.
Slave Select (SS) – active low output from the host.
The SPI signals operate in the following way:
SCK Idles high.
MISO and MOSI are set up on falling edges, read on rising edges.
SS must be held low throughout the exchange. SS must be pulled high for at least 2 ms after a Read or 10 ms
after a Write before another exchange can be initiated.
Figure 5-1. SPI Signals
5.2 Communications Protocol
5.2.1 MOSI Data
A 3-byte command sequence is transmitted by the host on MOSI, setting the memory map address pointer, a Read /
Write indication, and the number of bytes which will be read or written.
Read / Write direction is set in Byte 0 Bit 0, where '0' = Write, '1' = Read.
Memory map is addressed in 15 bits, where the lower 7 bits are transmitted at Byte 0, Bits 6 – 1 and the upper 8 bits
at Byte 1.
SAMPLE
MOSI/MISO
CHANGE
MOSI PIN
CHANGE
MISO PIN
SCK
SS
MSB Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 LSB
15
AT42QT1085 [DATASHEET]
9625D–AT42–05/2013
5.2.2 MISO Data
Default: 0x55
Returned at each byte on the MISO pin while the 3-byte command sequence is being transmitted on MOSI.
Writing: 0xAA
Returned at each byte on the MISO pin while data is being written by the host on the MOSI pin.
Error: 0xEE
Returned at each byte on the MISO pin in the case where the requested number of bytes has been read or written
but an SS
high event has not been detected to begin a new exchange. Or, an attempt has been made to Write to a
read-only part of the memory map, in which case the data written for the remainder of the exchange is ignored.
5.2.3 Write Operation
Table 5-1. MOSI Data
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Byte 0 Memory Map Address, Lower 7 Bits (Bits 6 – 0) 0 = W
Byte 1 Memory Map Address, Upper 8 Bits (Bits 14 – 7)
Byte 2 Number of Data bytes to follow = n
Byte 3 Data 0, Written to Memory Map Address
Byte 4 Data 1, Written to Memory Map Address + 1
Byte n+3 Data n, Written to Memory Map Address + n
Table 5-2. MISO Data
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Byte 0 0x55
Byte 1 0x55
Byte 2 0x55
Byte 3 0xAA
Byte 4 0xAA
Byte n+3 0xAA

AT42QT1085-MUR

Mfr. #:
Manufacturer:
Microchip Technology / Atmel
Description:
Capacitive Touch Sensors 8 Channel QTouch Haptic Sensor IC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union