![](http://datasheet.mmic.net.cn/100000/IF180C52TXXX-20R_datasheet_3493957/IF180C52TXXX-20R_650.png)
650
32099I–01/2012
AT32UC3L016/32/64
28.5.4
Peripheral Events
The CAT module receives nine peripheral events, one from the AST and the remaining eight
from on-chip analog comparators. These peripheral events are connected via the Peripheral
Event System. Refer to the Peripheral Event System chapter for additional details.
28.5.5
Peripheral Direct Memory Access
The CAT module provides handshake capability for a Peripheral DMA Controller. One hand-
shake controls transfers from the Acquired Count Register (ACOUNT) to memory. A second
handshake requests burst lengths for each (X,Y) pair to the Matrix Burst Length Register
(MBLEN) when using the QMatrix acquisition method. The Peripheral DMA Controller must be
configured properly and enabled in order to perform direct memory access transfers to/from the
CAT module.
28.5.6
Analog Comparators
When the CAT module is performing QMatrix acquisition, it requires that on-chip analog compar-
ators be used as part of the process. These analog comparators are not controlled directly by
the CAT module, but by a separate Analog Comparator (AC) Interface. This interface must be
configured properly and enabled before the CAT module is used. This includes configuring the
generic clock input for the analog comparators to the proper sampling frequency.
28.5.7
Debug Operation
When an external debugger forces the CPU into debug mode, the CAT continues normal opera-
tion. If the CAT is configured in a way that requires it to be periodically serviced by the CPU
through interrupts or similar, improper operation or data loss may result during debugging.
28.6
Functional Description
28.6.1
Acquisition Types
The CAT module can perform three types of QTouch acquisition from capacitive touch sensors:
autonomous QTouch (one sensor only), QTouch group A, and QTouch group B. The CAT mod-
ule can also perform QMatrix acquisition. Each type of acquisition has an associated set of pin
selection and configuration registers that allow a large degree of flexibility.
The following schematic diagrams show typical hardware connections for QTouch and QMatrix
sensors, respectively:
Figure 28-2. CAT Touch Connections
32-bit AVR
Microcontroller
QTouch
Sensor
Cs (Sense Capacitor)
SNSKn
SNSn