Docsity

Manual do Dispositivo AT42QT2120: Configuração e Operação, Esquemas de Terra e Planeta

Toggle sidebar
bg1
Features
•Number of Keys:
– Comms Mode: 1 to 12 keys (1 to 9 if wheel or slider option enabled)
– Standalone Mode: 1 to 5 keys
•Technology:
– Patented spread-spectrum QTouchADC charge-transfer
•Number of Output Lines:
– Comms Mode: Up to 10 channels can be configured as outputs (but they will
replace the keys)
– Standalone Mode: 1 to 5 channels can be configured as outputs
•Key Outline Sizes:
– 5 mm x 5 mm or larger (panel thickness dependent)
•Key Spacings:
– 6 mm or wider, center to center (panel thickness, human factors dependent)
•Key Design:
– Single solid or ring shaped electrodes; widely different sizes and shapes possible
•Proximity Electrode Design:
– Single solid electrodes; Key Design, Loop, PCB Trace - different sizes and shapes
possible
•Wheel Size:
– Typically 30 mm – 50 mm diameter
•Wheel Electrode Design:
– Spatially interpolated wheel up to 80 mm diameter
– Typical width of segments 12 mm
•Slider Electrode Design:
– Spatially interpolated, resistorless design
– Typical length 50 mm – 100 mm, typical width 12 mm
– Can be an arc or other irregular shape
•Substrates:
– FR-4, low cost CEM-1 or FR-2 PCB materials; polyamide FPCB; PET films, glass
•Adjacent Metal:
– Compatible with grounded metal immediately next to keys
•Layers Required:
– One; electrodes and components can be on same side
•Electrode Materials:
– Etched copper, silver, carbon, indium tin oxide (ITO), PEDOT
•Panel Materials:
– Plastic, glass, composites, painted surfaces (nonconductive paints)
•Key Panel Thickness:
– Up to 15 mm glass (key size dependent)
– Up to 10 mm plastic (key size dependent)
•Wheel/slider Panel Thickness:
– Up to 4 mm glass
– Up to 3 mm plastic
•Key Sensitivity:
– Comms Mode – individually settable via simple commands over I2C interface
– Standalone mode – settings are fixed
•Interface:
–I2C slave mode (400 kHz)
– CHANGE status indication pin
•Signal Processing:
– Self-calibration, Auto drift compensation, Noise filtering, Adjacent Key
Suppression® (AKS®)
•Power:
–1.8V to 5.5V
•Packages:
– 20-pin SOIC/TSSOP RoHS compliant IC
– 20-pad VQFN RoHS compliant IC
QTouch
12-channel
Touch Sensor
IC
AT42QT2120
9634E–AT42–06/12
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e

Pré-visualização parcial do texto

Baixe Manual do Dispositivo AT42QT2120: Configuração e Operação e outras Esquemas em PDF para Terra e Planeta, somente na Docsity!

Features

  • Number of Keys: - Comms Mode: 1 to 12 keys (1 to 9 if wheel or slider option enabled) - Standalone Mode: 1 to 5 keys
  • Technology: - Patented spread-spectrum QTouchADC charge-transfer
  • Number of Output Lines: - Comms Mode: Up to 10 channels can be configured as outputs (but they will

replace the keys)

- Standalone Mode: 1 to 5 channels can be configured as outputs

  • **Key Outline Sizes:
  • 5 mm x 5 mm or larger (panel thickness dependent)**
  • **Key Spacings:
  • 6 mm or wider, center to center (panel thickness, human factors dependent)**
  • **Key Design:
  • Single solid or ring shaped electrodes; widely different sizes and shapes possible**
  • **Proximity Electrode Design:
  • Single solid electrodes; Key Design, Loop, PCB Trace - different sizes and shapes**

possible

  • Wheel Size: - Typically 30 mm – 50 mm diameter
  • Wheel Electrode Design: - Spatially interpolated wheel up to 80 mm diameter - Typical width of segments 12 mm
  • Slider Electrode Design: - Spatially interpolated, resistorless design - Typical length 50 mm – 100 mm, typical width 12 mm - Can be an arc or other irregular shape
  • Substrates: - FR-4, low cost CEM-1 or FR-2 PCB materials; polyamide FPCB; PET films, glass
  • Adjacent Metal: - Compatible with grounded metal immediately next to keys
  • Layers Required: - One; electrodes and components can be on same side
  • Electrode Materials: - Etched copper, silver, carbon, indium tin oxide (ITO), PEDOT
  • Panel Materials: - Plastic, glass, composites, painted surfaces (nonconductive paints)
  • Key Panel Thickness: - Up to 15 mm glass (key size dependent) - Up to 10 mm plastic (key size dependent)
  • Wheel/slider Panel Thickness: - Up to 4 mm glass - Up to 3 mm plastic
  • Key Sensitivity: - Comms Mode – individually settable via simple commands over I^2 C interface - Standalone mode – settings are fixed
  • Interface: - I^2 C slave mode (400 kHz) - CHANGE status indication pin
  • Signal Processing: - Self-calibration, Auto drift compensation, Noise filtering, Adjacent Key

Suppression®^ (AKS®)

  • Power: - 1.8 V to 5.5 V
  • Packages: - 20-pin SOIC/TSSOP RoHS compliant IC - 20-pad VQFN RoHS compliant IC

QTouch

12-channel

Touch Sensor

IC

AT42QT

9634E–AT42–06/

2

AT42QT

1. Pinouts and Schematics

1.1 Pinouts

1.1.1 20-pin SOIC/TSSOP – Comms Mode

1.1.2 20-pin SOIC/TSSOP – Standalone Mode

KEY8/GPO

KEY7/GPO

KEY6/GPO

KEY5/GPO

KEY4/GPO

KEY3/GPO

KEY2/GPO

KEY

KEY

VSS

RESET

CHANGE

SDA

N/C

KEY11/GPO

KEY9/GPO

KEY10/GPO

VDD

MODE

SCL

QT

OUT

OUT

KEY

KEY

KEY

KEY

KEY

GUARD

PROX

VSS

RESET

N/C

PXOUT

OUT

OUT

OUT

VDD

MODE

N/C

N/C

QT

4

AT42QT

1.2 Pin Descriptions

1.2.1 20-pin SOIC/TSSOP

Table 1-1. Pin Listings (20-pin SOIC/TSSOP)

Pin

Name

(Comms)

Name

(Standalone) Type Description If Unused...

1 KEY8/GPO6 OUT3 I/O Comms mode: Key 8 / General-purpose outputStandalone mode: push-pull output for key 3 Leave open

2 KEY7/GPO5 OUT2 I/O Comms mode: Key 7 / General-purpose outputStandalone mode: push-pull output for key 2 Leave open

3 KEY6/GPO4 KEY6 I/O Comms mode: Key 6 / General-purpose outputStandalone mode: Key 6 Leave open

4 KEY5/GPO3 KEY5 I/O Comms mode: Key 5 / General-purpose outputStandalone mode: Key 5 Leave open

5 KEY4/GPO2 KEY4 I/O Comms mode: Key 4 / General-purpose outputStandalone mode: Key 4 Leave open

6 KEY3/GPO1 KEY3 I/O Comms mode: Key 3 / General-purpose outputStandalone mode: Key 3 Leave open

7 KEY2/GPO0 KEY2 I/O Comms mode: Key/slider/wheel 2 / General-purpose outputStandalone mode: Key 2 Leave open

8 KEY1 GUARD I/O Comms mode: Key/slider/wheel 1Standalone mode: Guard channel Leave open

9 KEY0 PROX I/O Comms mode: Key/slider/wheel 0Standalone mode: Proximity channel Leave open

10 VSS VSS P Ground –

11 VDD VDD P Power –

12 MODE MODE I

Mode selection pin

Comms mode: connect to Vss

Standalone mode: connect to Vdd

13 SDA N/C OD Comms mode: Serial Interface DataStandalone mode: Unused Pull up to Vdd

14 RESET RESET I Active low reset; has internal pull-up 60 k resistor Tie to Vdd

15 N/C PXOUT O Comms mode: no connectionStandalone mode: open drain output for proximity channel Leave open

16 SCL N/C OD Comms mode: Serial Interface ClockStandalone mode: Unused Pull up to Vdd

17 CHANGE N/C OD

Comms mode: Active low state change interrupt (external

pull-up resistor needed)

Standalone mode: Unused

Pull up to Vdd

18 KEY11/GPO9 OUT6 I/O Comms mode: Key 11 / General-purpose outputStandalone mode: push-pull output for key 6 Leave open

19 KEY10/GPO8 OUT5 I/O Comms mode: Key 10 / General-purpose outputStandalone mode: push-pull output for key 5 Leave open

20 KEY9/GPO7 OUT4 I/O Comms mode: Key 9 / General-purpose outputStandalone mode: push-pull output for key 4 Leave open

I Input only I/O Input and output OD Open drain output P Ground or power

5

AT42QT

1.2.2 20-pin VQFN

Table 1-2. Pin Listings (20-pin VQFN)

Pin

Name

(Comms)

Name

(Standalone) Type Description If Unused...

1 KEY6/GPO4 KEY6 I/O Comms mode: Key 6 / General-purpose outputStandalone mode: Key 6 Leave open

2 KEY5/GPO3 KEY5 I/O Comms mode: Key 5 / General-purpose outputStandalone mode: Key 5 Leave open

3 KEY4/GPO2 KEY4 I/O Comms mode: Key 4 / General-purpose outputStandalone mode: Key 4 Leave open

4 KEY3/GPO1 KEY3 I/O Comms mode: Key 3 / General-purpose outputStandalone mode: Key 3 Leave open

5 KEY2/GPO0 KEY2 I/O Comms mode: Key/slider/wheel 2 / General-purpose outputStandalone mode: Key 2 Leave open

6 KEY1 GUARD I/O Comms mode: Key/slider/wheel 1Standalone mode: Guard channel Leave open

7 KEY0 PROX I/O Comms mode: Key/slider/wheel 0Standalone mode: Proximity channel Leave open

8 VSS VSS P Ground –

9 VDD VDD P Power –

10 MODE MODE I

Mode selection pin

Comms mode: connect to Vss

Standalone mode: connect to Vdd

11 SDA N/C OD Comms mode: Serial Interface DataStandalone mode: Unused Pull up to Vdd

12 RESET RESET I Active low reset; has internal pull-up 60 k resistor Tie to Vdd

13 N/C PXOUT OD Comms mode: no connectionStandalone mode: open drain output for proximity channel Leave open

14 SCL N/C OD Comms mode: Serial Interface ClockStandalone mode: Unused Pull up to Vdd

15 CHANGE N/C OD

Comms mode: Active low state change interrupt (external

pull-up resistor needed)

Standalone mode: Unused

Pull up to Vdd

16 KEY11/GPO9 OUT6 I/O Comms mode: Key 11 / General-purpose outputStandalone mode: push-pull output for key 6 Leave open

17 KEY10/GPO8 OUT5 I/O Comms mode: Key 10 / General-purpose outputStandalone mode: push-pull output for key 5 Leave open

18 KEY9/GPO7 OUT4 I/O Comms mode: Key 9 / General-purpose outputStandalone mode: push-pull output for key 4 Leave open

19 KEY8/GPO6 OUT3 I/O Comms mode: Key 8 / General-purpose outputStandalone mode: push-pull output for key 3 Leave open

20 KEY7/GPO5 OUT2 I/O Comms mode: Key 7 / General-purpose outputStandalone mode: push-pull output for key 2 Leave open

I Input only I/O Input and output OD Open drain output P Ground or power O Output only

7

AT42QT

Figure 1-3. 20-pin VQFN – Comms Mode

Figure 1-4. 20-pin VQFN – Standalone Mode

VSS

VDD

R

VSS

VDD

SCL

CHANGE

V SS

V D D

10 MODE

11 SDA

12 RESET

13 N/C

14 SCL

SDA^15 CHANGE

R

R

R

VDD

R

R

R

R

R

R

R

R

R

R

R

R

KEY8/GPO6 19

KEY7/GPO5 20

KEY6/GPO4 1

KEY5/GPO3 2

KEY4/GPO2 3

KEY3/GPO1 4

KEY2/GPO0 5

KEY1 6

KEY0 7

KEY11/GPO9 16

KEY10/GPO8 17

KEY9/GPO7 18

KEY 11

KEY 9

KEY 7

KEY 5

KEY 3

KEY 1

KEY 10

KEY 8

KEY 6

KEY 4

KEY 2

KEY 0

May be used forwheel or slider

VSS

VDD

R R R R R R R

OUT3 19 OUT2 20 KEY6 1 KEY5 2 KEY4 3 KEY3 4 KEY2 5 GUARD 6 V SSPROX 7 8

V D D

9 OUT6 16 OUT5 17 OUT4 18

KEY 5 KEY 3 GUARD KEY

KEY 6 KEY 4 KEY 2

PROXIMITY SENSOR

R

VDD

(^10) MODE

(^14) N/C

(^12) RESET

(^13) PXOUT

(^15) N/C

(^11) N/C

R

VDD

VSS

D^1

OUTPUTS

8

AT42QT

2. Overview

2.1 Introduction

The AT42QT2120 (QT2120) is a QTouchADC sensor driver. The device can sense from one to 12 keys, dependent on mode. Three of the keys can be used as sense channels for a slider or wheel, leaving a maximum of nine standard touch keys. The device also supports the use of proximity sensors and a guard channel. The QT2120 includes all signal processing functions necessary to provide stable sensing under a wide variety of changing conditions, and the outputs are fully debounced. Only a few external parts are required for operation and no external Cs capacitors are required. The QT2120 modulates its bursts in a spread-spectrum fashion in order to heavily suppress the effects of external noise, and to suppress RF emissions. The QT2120 uses a QTouchADC method of acquisition. This provides greater noise immunity and eliminates the need for external sampling capacitors, allowing touch sensing using a single pin. The QT2120 can operate in two ways; comms and standalone.

2.2 Modes

2.2.1 Comms Mode The QT2120 can operate in comms mode where a host can communicate with the device via an I^2 C bus. This allows the user to configure settings such as Threshold, Adjacent Key Suppression (AKS), Detect Integrator, Low Power (LP) Mode, Guard Channel and Max Time On for keys.

2.2.2 Standalone Mode The QT2120 can operate in a standalone mode where an I 2 C-compatible interface is not required. To enter standalone mode, connect the Mode pin to Vdd before powering up the QT2120. In standalone mode, the start-up values are hard coded in firmware and cannot be changed. The default start-up values are used. This means that key detection is reported via its respective input/output. The Guard channel feature is automatically implemented on key 1 in standalone mode. This means that this channel has a higher sensitivity and is used to protect against false triggering, perhaps by a hand covering all keys. A proximity sensor is also available on channel (key) 0 in standalone mode.

10

AT42QT

2.6 Adjacent Key Suppression (AKS) Technology

The device includes the Atmel patented Adjacent Key Suppression (AKS) technology, to allow the use of tightly spaced keys on a keypad with no loss of selectability by the user. There can be up to three AKS groups, implemented so that only one key in the group may be reported as being touched at any one time. Once a key in a particular AKS group is in detect no other key in that group can go into detect. Only when the key in detect goes out of detection can another key go into detect state. Keys which are members of the AKS groups can be set in the Key Control register (see Section 5.17 on page 26). Keys outside the group may be in detect simultaneously. Note: To use a key as a guard channel, its AKS group should be set to be the same as that of the keys it is to protect.

2.7 CHANGE Line (Comms Mode Only)

The CHANGE line is active low and signals when there is a change of state in the Detection Status and/or Key Status bytes. It is cleared (allowed to float high) when the host reads the status bytes. If the status bytes change back to their original state before the host has read the status bytes (for example, a touch followed by a release), the CHANGE line will be held low. In this case, a read to any memory location will clear the CHANGE line. The CHANGE line is open-drain and should be connected via a 47 k resistor to Vdd. It is necessary for minimum power operation as it ensures that the QT2120 can sleep for as long as possible. Communications wake up the QT2120 from sleep causing a higher power consumption if the part is randomly polled. Note that the CHANGE line is pulled low 85 ms after power-up or reset. The CHANGE line is pulled low approximately for another 16 ms before any bursting on the touch pins will occur. If any of the pins are required to be outputs then the relevant Key Control settings should be written within this 16 ms time to prevent bursting on pins required as outputs. Also note that the CHANGE line is cleared during a read of the Detection Status bytes when all bytes differing from the previous read have been read.

2.8 Types of Reset

2.8.1 External Reset An external reset logic line can be used if desired, fed into the RESET pin. However, under most conditions it is acceptable to tie RESET to Vdd. The minimum reset pulse width is 2 μs.

2.8.2 Soft Reset The host can cause a device reset by writing a nonzero value to the Reset byte. This soft reset triggers the internal watchdog timer on a 125 ms interval. After 125 ms the device executes a full reset. The device NACKs any attempts to communicate with it for approximately 200 ms after the soft reset command. Communication can begin as soon the CHANGE line is first asserted. Note: The device can process a Soft Reset command while in Power Down (LPM = 0) mode, causing a chip reset.

11

AT42QT

2.9 Calibration

Writing a nonzero value to the calibration byte can force a recalibration at any time. This can be useful to clear out a stuck key condition after a prolonged period of uninterrupted detection. A calibration command executes 15 burst cycles at LPM 1 and sets the CALIBRATE bit of the Detection Status register during the calibration sequence. Note: A calibration command should be sent whenever Key Control bit 0 (EN) is changed. This changes the use of the key from a standard touch key to an output pin and vice-versa.

2.10 Guard Channel

A guard channel to help prevent false detection is available in both modes. This is fixed on key 1 for standalone mode and programmable for comms mode by setting Key Control bit 4 (GUARD) (see Section 5.17 on page 26). Guard channel keys should be more sensitive than the other keys and physically bigger. Because the guard channel key is physically bigger it becomes more susceptible to noise so it should have a higher Oversampling (see Section 5.18 on page 27) than the other keys. In standalone mode it is assigned to key 1 and cannot be changed. In comms mode any key can be selected to be a guard key by setting Key Control bit 4 (GUARD). The guard channel is connected to a sensor pad which detects the presence of touch. Because of its larger size and sensitivity it goes into touch before the keys it surrounds (if, for example, a hand covers all the keys).

Figure 2-1. Guard Channel Example

2.11 Signal Processing

2.11.1 Detect Threshold The device detects a touch when the signal has crossed a threshold level and remained there for a specified number of counts (see Section 5.11 on page 24). This can be altered on a key-by-key basis using the key Detect Threshold I^2 C-compatible commands. This detect threshold is based on the reference value of the particular key. The delta of the key is obtained by subtracting the reference value from the signal value (the signal value rises when touch is present).

Guard channel

13

AT42QT

2.11.6 Drift Hold Time Drift Hold Time (DHT) is used to restrict drift on all keys while one or more keys are activated. DHT restricts the drifting on all keys until approximately four seconds after all touches have been removed. This feature is particularly useful in cases of high-density keypads where touching a key or hovering a finger over the keypad would cause untouched keys to drift, and therefore create a sensitivity shift, and ultimately inhibit touch detection. In Comms mode this value is settable, see Section 5.13 on page 24. The QT2120 will remain in fast mode (LP = 1) for the duration of the DHT counter. The total DHT time is 160 ms × DHT value. The default setting for DHT is 25, so 160 ms × 25 = ~4 seconds. The QT2120 will not drift or re-enter slow LP mode during this time.

2.11.7 Hysteresis Hysteresis is fixed at 12.5% of the Detect Threshold. When a key enters a detect state once the DI count has been reached, the Detect threshold (DTHR) value is changed by a small amount (12.5% of DTHR) in the direction away from touch. This is done to effect hysteresis and so makes it less likely a key will dither in and out of detect. DTHR is restored once the key drops out of detect. Note: The minimum value for hysteresis is 2 counts.

3. Wiring and Parts

3.1 Rs Resistors

Series resistors Rs (Rs0 – Rs11 for comms mode and Rs0 – Rs6 for standalone mode) are in line with the electrode connections and should be used to limit electrostatic discharge (ESD) currents and to suppress radio frequency interference (RFI). Series resistors are recommended for noise reduction. They should be approximately 4.7 k to 20 k each. For maximum noise rejection the value may be up to 100 k. Care should be taken in this case that the sensor keys are fully charged. The Charge Time may need to be increased (see Section 5.15 on page 26). Each count increase will extend the charge pulse by approximately 1 μs.

3.2 LED Traces and Other Switching Signals

Digital switching signals near the sense lines induce transients into the acquired signals, deteriorating the signal-to-noise (SNR) performance of the device. Such signals should be routed away from the sensing traces and electrodes, or the design should be such that these lines are not switched during the course of signal acquisition (bursts). LED terminals which are multiplexed or switched into a floating state, and which are within, or physically very near, a key (even if on another nearby PCB) should be bypassed to either Vss or Vdd with at least a 10 nF capacitor. This is to suppress capacitive coupling effects which can induce false signal shifts. The bypass capacitor does not need to be next to the LED, in fact it can be quite distant. The bypass capacitor is noncritical and can be of any type. LED terminals which are constantly connected to Vss or Vdd do not need further bypassing.

14

AT42QT

3.3 PCB Cleanliness

Modern no-clean flux is generally compatible with capacitive sensing circuits.

If a PCB is reworked in any way, clean it thoroughly to remove all traces of the flux residue around the capacitive sensor components. Dry it thoroughly before any further testing is conducted.

3.4 Power Supply

See Section 6.2 on page 30 for the power supply range. If the power supply fluctuates slowly with temperature, the device tracks and compensates for these changes automatically with only minor changes in sensitivity. If the supply voltage drifts or shifts quickly, the drift compensation mechanism is not able to keep up, causing sensitivity anomalies or false detections. The power should be clean and come from a separate regulator if possible. However, this device is designed to minimize the effects of unstable power, and except in extreme conditions should not require a separate Low Dropout (LDO) regulator.

It is assumed that a larger bypass capacitor (like 1 μF) is somewhere else in the power circuit; for example, near the regulator.

CAUTION: If a PCB is reworked to correct soldering faults relating to the device, or to any associated traces or components, be sure that you fully understand the nature of the flux used during the rework process. Leakage currents from hygroscopic ionic residues can stop capacitive sensors from functioning. If you have any doubts, a thorough cleaning after rework may be the only safe option.

CAUTION: A regulator IC shared with other logic can result in erratic operation and is not advised. A single ceramic 0.1 μF bypass capacitor, with short traces, should be placed very close to the power pins of the IC. Failure to do so can result in device oscillation, high current consumption and erratic operation.

16

AT42QT

  1. The host initiates the transfer by sending the START condition
  2. The host follows this by sending the slave address of the device together with the WRITE bit.
  3. The device sends an ACK.
  4. The host then sends the memory address within the device it wishes to write to.
  5. The device sends an ACK.
  6. The host transmits one or more data bytes; each is acknowledged by the device (unless trying to write to an invalid address). Valid write address are 5 – 51.
  7. If the host sends more than one data byte, they are written to consecutive memory addresses.
  8. The device automatically increments the target memory address after writing each data byte.
  9. After writing the last data byte, the host should send the STOP condition. Note: the host should not try to write to addresses outside the range 0x06 to 0x33 (6 – 51) because this is the limit of the device’s internal memory address.

4.3.3 Reading Data From the Device The sequence of events required to read data from the device is shown next.

  1. The host initiates the transfer by sending the START condition
  2. The host follows this by sending the slave address of the device together with the WRITE bit.
  3. The device sends an ACK.
  4. The host then sends the memory address within the device it wishes to read from.
  5. The device sends an ACK if the address to be read from is less than 0x63 otherwise it sends a NACK).
  6. The host must then send a STOP and a START condition followed by the slave address again but this time accompanied by the READ bit. Note: Alternatively, instead of step 6, a repeated START can be sent so the host does not need to relinquish control of the bus.
  7. The device returns an ACK, followed by a data byte.
  8. The host must return either an ACK or NACK. a. If the host returns an ACK, the device subsequently transmits the data byte from the next address. Each time a data byte is transmitted, the device automatically increments the internal address. The device continues to return data bytes until the host responds with a NACK. b. If the host returns a NACK, it should then terminate the transfer by issuing the STOP condition.
  9. The device resets the internal address to the location indicated by the memory address sent to it previously. Therefore, there is no need to send the memory address again when reading from the same location.

S SLA+W A MemAddress A S^ SLA+R A

A P

Host to Device Device Tx to Host P

Data 1 Data 2 A Data n A

17

AT42QT

Note: Reading the 16-bit reference and signal values is not an automatic operation; reading the first byte of a 16-bit value does not lock the other byte. As a result glitches in the reported value may be seen as values increase from 255 to 256, or decrease from 256 to 255. This device also supports the use of a repeated START condition as an alternative to the Stop condition.

4.4 SDA, SCL

The I 2 C-compatible bus transmits data and clock with SDA and SCL respectively. They are open-drain; that is I 2 C-compatible master and slave devices can only drive these lines low or leave them open. The termination resistors pull the line up to Vdd if no I^2 C-compatible device is pulling it down. The termination resistors commonly range from 1 k to 10 k and should be chosen so that the rise times on SDA and SCL meet the I 2 C-compatible specifications (300 ns maximum for 400 kHz operation).

4.5 Standalone Mode

If I 2 C-compatible communications are not required, then standalone mode can be enabled by connecting the MODE pin to Vdd. See Section 2.4 on page 9 for more information. In Standalone mode (Mode pin connected to Vdd at start-up) the chip is configured to specific settings:

  • Key0 is configured as a proximity channel. If this key goes into detect then PXOUT is asserted high.
  • Key1 is configured as a guard channel and should have a PCB layout which reflects this.
  • Keys 2 – 6 are standard QTouchADC keys and have pins OUT 2 – 6 configured to reflect their respective touch status.
  • Keys1 – 6 are configured to have the same AKS group setting.

19

AT42QT

31 Key 3 Control Reserved GUARD AKS GPO EN R/W 32 Key 4 Control Reserved GUARD AKS GPO EN R/W 33 Key 5 Control Reserved GUARD AKS GPO EN R/W 34 Key 6 Control Reserved GUARD AKS GPO EN R/W 35 Key 7 Control Reserved GUARD AKS GPO EN R/W 36 Key 8 Control Reserved GUARD AKS GPO EN R/W 37 Key 9 Control Reserved GUARD AKS GPO EN R/W 38 Key 10 Control Reserved GUARD AKS GPO EN R/W 39 Key 11 Control Reserved GUARD AKS GPO EN R/W 40 Key 0 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 41 Key 1 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 42 Key 2 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 43 Key 3 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 44 Key 4 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 45 Key 5 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 46 Key 6 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 47 Key 7 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 48 Key 8 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 49 Key 9 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 50 Key 10 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 51 Key 11 Pulse Scale PULSE3 PULSE2 PULSE1 PULSE0 SCALE3 SCALE2 SCALE1 SCALE0 R/W 52–53 Key Signal 0 Key signal 0 (MSByte) – Key signal 0 (LSByte) R 54–55 Key Signal 1 Key signal 1 (MSByte) – Key signal 1 (LSByte) R 56–57 Key Signal 2 Key signal 2 (MSByte) – Key signal 2 (LSByte) R 58–59 Key Signal 3 Key signal 3 (MSByte) – Key signal 3 (LSByte) R 60–61 Key Signal 4 Key signal 4 (MSByte) – Key signal 4 (LSByte) R 62–63 Key Signal 5 Key signal 5 (MSByte) – Key signal 5 (LSByte) R 64–65 Key Signal 6 Key signal 6 (MSByte) – Key signal 6 (LSByte) R 66–67 Key Signal 7 Key signal 7 (MSByte) – Key signal 7 (LSByte) R 68–69 Key Signal 8 Key signal 8 (MSByte) – Key signal 8 (LSByte) R 70–71 Key Signal 9 Key signal 9 (MSByte) – Key signal 9 (LSByte) R 72–73 Key Signal 10 Key signal 10 (MSByte) – Key signal 10 (LSByte) R 74–75 Key Signal 11 Key signal 11 (MSByte) – Key signal 11 (LSByte) R 76–77 Reference Data 0 Reference data 0 (MSByte) – Reference data 0 (LSByte) R 78–79 Reference Data 1 Reference data 1 (MSByte) – Reference data 1 (LSByte) R 80–81 Reference Data 2 Reference data 2 (MSByte) – Reference data 2 (LSByte) R 82–83 Reference Data 3 Reference data 3 (MSByte) – Reference data 3 (LSByte) R 84–85 Reference Data 4 Reference data 4 (MSByte) – Reference data 4 (LSByte) R

Table 5-1. Internal Register Address Allocation (Continued)

Address Use Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R/W

20

AT42QT

5.2 Address 0: Chip ID

CHIP ID: Holds the chip ID; always 0x3E.

5.3 Address 1: Firmware Version

MAJOR VERSION : Holds the major firmware version (for example revision 1.5). MINOR VERSION : Holds the minor firmware version (for example revision 1.5).

5.4 Address 2: Detection Status

CALIBRATE: This bit is set during a calibration sequence. OVERFLOW: This bit is set if the time to acquire all key signals exceeds 16 ms. SDET: This bit is set if any of the slider/wheel channels are in detect. TDET: This bit is set if any of the keys are in detect. Note: If the slider or wheel is enabled then the SDET bit will be set when it is in detect. Also the relevant Key Status bit (0 – 2) and TDET will be set. These bits can be ignored if the SDET bit is set as the slider/wheel takes priority. A change in these bytes will cause the CHANGE line to trigger.

86–87 Reference Data 5 Reference data 5 (MSByte) – Reference data 5 (LSByte) R 88–89 Reference Data 6 Reference data 6 (MSByte) – Reference data 6 (LSByte) R 90–91 Reference Data 7 Reference data 7 (MSByte) – Reference data 7 (LSByte) R 92–93 Reference Data 8 Reference data 8 (MSByte) – Reference data 8 (LSByte) R 94–95 Reference Data 9 Reference data 9 (MSByte) – Reference data 9 (LSByte) R 96–97 Reference Data 10 Reference data 10 (MSByte) – Reference data 10 (LSByte) R 98–99 Reference Data 11 Reference data 11 (MSByte) – Reference data 11 (LSByte) R

Table 5-2. Chip ID

Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

0 CHIP ID

Table 5-1. Internal Register Address Allocation (Continued)

Address Use Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 R/W

Table 5-3. Firmware Version

Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

1 MAJOR VERSION MINOR VERSION

Table 5-4. Detection Status

Address Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

2 CALIBRATE OVERFLOW – – – – SDET TDET